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.


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/1419680/
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/1419680/", "name": "Water Management", "slug": "water management", "content": "<p class=\"MsoNormal\">\n\tLocation: Corporation Yard 202</p>\n<p class=\"MsoNormal\">\n\tHours: <em>hours not stated</em></p>\n<p class=\"MsoNormal\">\n\tWebsite: <a href=\"https://sustain.sfsu.edu/\">https://sustain.sfsu.edu/</a></p>\n<p class=\"MsoNormal\">\n\tEmail: sustain.sfsu.edu</p>\n<p class=\"MsoNormal\">\n\tPhone: 415-338-7164</p>\n<p class=\"MsoNormal\">\n\tThe department of Sustainability at SFSU has developed a water management plan to environmentally benefit the community by installing water filling stations in every campus building, replaced old water fixtures with low flow models, installed new irrigation systems on lawns to help crops grow, and groundwater infiltration that comes from the rain is reused.</p>\n<p class=\"MsoNormal\">\n\tThe best way to reach the staff during this pandemic is through email. The departments mission is to educate the students and faculty about their welfare and about embracing the principles of water sustainability by keeping everyone informed.</p>\n<p class=\"MsoNormal\">\n\t\u00a0</p>\n<p class=\"MsoNormal\">\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/Screen%20Shot%202020-10-09%20at%201.30.57%20AM.png\" style=\"width: 300px; height: 249px;\"></span><span class=\"image_frame image_frame_border\"><img src=\"_files/sfsu%20water%20pic.jpg\" style=\"width: 300px; height: 225px;\"></span><span class=\"image_frame image_frame_border\"><img src=\"_files/SFSF%20logo.png\"><span style=\"width: 200px;\" class=\"image_caption\">SFSU Water Features</span></span></p>\n<p class=\"MsoNormal\">\n\t<strong>External links</strong></p>\n<p>\n\t<a href=\"https://calwep.org/resource/multiple-benefits-of-landscape-transformation-human-health-well-being/.\">https://calwep.org/resource/multiple-benefits-of-landscape-transformation-human-health-well-being/. Accessed 26 Sept. 2020.</a></p>\n<p>\n\t<strong><a href=\"https://www.usgs.gov/special-topic/water-science-school/science/infiltration-and-water-cycle?qt-science_center_objects=0#qt-science_center_objects\">https://www.usgs.gov/special-topic/water-science-school/science/infiltration-and-water-cycle?qt-science_center_objects=0#qt-science_center_objects</a></strong></p>\n<p>\n\t\u00a0</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2156/", "history_comment": null, "history_date": "2022-05-18T18:59:31.627", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/97887/", "history_user_ip": "" }