Historical Page Instance

API endpoint for viewing page history.

Filter fields

You can filter the result set by providing the following query parameters:

  • name -- Filter by name, exact.
  • slug -- Filter by page slug. Supports the standard lookup types
  • region -- Filter by region. Allows for chained filtering on all of the filters available on the region resource, e.g. region__slug.

And the usual set of historical filter fields:

  • history_user - filter by the user resource of the editor, if user was logged in. Allows for chained filtering on all of the filters available on the user resource, e.g. history_user__username.
  • history_user_ip - filter by the IP address of the editor.
  • history_date - filter by history date. Supports the standard lookup types
  • history_type - filter by history type id, exact.

Ordering

You can order the result set by providing the ordering query parameter with the value of one of:

  • slug
  • history_date

You can reverse ordering by using the - sign, e.g. -slug.

GET /api/v4/pages_history/1408755/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, HEAD, OPTIONS
{ "url": "https://zh.localwiki.org/api/v4/pages_history/1408755/", "name": "Blake Block", "slug": "blake block", "content": "<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/Davies%20Building%20and%20Blake%20Block%20-%201892.jpg\" style=\"width: 500px; height: 325px;\"><span style=\"width: 500px;\" class=\"image_caption\">Davis Building and Blake Block, 11th &amp; Washington (1892) <sup>1</sup></span></span></p>\n<p>\n\tThe <strong>Blake Block</strong>\u00a0or <strong>M. K. Blake Building\u00a0</strong>was a building at the southwest corner of Washington and 12th Streets. The building was \"modernized\" in 1932, modified again in the 1950s, and eventually demolished to allow construction of the City Center project.</p>\n<p>\n\thttps://oac.cdlib.org/ark:/13030/kt7779q966/?brand=oac4</p>\n<p>\n\thttps://calisphere.org/collections/26782/?q=&amp;sort=a&amp;rq=blake</p>\n<p>\n\thttps://www.newspapers.com/clip/92488104/landmark-to-be-remodeled/</p>\n<p>\n\thttps://www.newspapers.com/clip/92488155/remodeling-contract-for-blake-building/</p>\n<h2>\n\tLinks and References</h2>\n<ol>\n\t<li>\n\t\tOakland, Calif. illustrated in photo-gravure from recent negatives, A. (Adolph) Witteman, 1892, courtesy of Oakland History Center, Oakland Public Library and\u00a0<a href=\"http://imgzoom.cdlib.org/Fullscreen.ics?ark=ark:/13030/kt787027fz/z10&amp;order=11&amp;brand=oac4\">Online Archive of California</a></li>\n</ol>\n", "region": "https://zh.localwiki.org/api/v4/regions/340/", "history_comment": "Adding link to 1982 photo, and providing links for someone else (with more time) to flesh out the page", "history_date": "2022-01-13T08:30:27.632", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/9357/", "history_user_ip": "2601:643:8700:220:53e:d378:d8eb:28dc" }