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/1389358/
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/1389358/", "name": "Oakland Berkeley Border", "slug": "oakland berkeley border", "content": "<p>\n\tWondering where the actual legal borders exist between the Cities of <a href=\"Oakland\">Oakland</a> and <a href=\"Berkeley\">Berkeley</a> and/or between <a href=\"Oakland\">Oakland</a> and <a href=\"Emeryville\">Emeryville</a>?</p>\n<p>\n\tYou're not alone. The boundary line is confusing, especially because the <a href=\"Claremont%20Hotel\">Claremont Hotel</a> and much of the residential area on the hills above the hotel are located in Oakland but with Berkeley mailing addresses. Google Maps and some other online sources further this confusion by showing the mailing addresses.</p>\n<p>\n\tThis page presents a map of these borders based on the available sources listed below.</p>\n<h3>\n\tSources:</h3>\n<ul>\n\t<li>\n\t\t<a href=\"http://gisapps1.mapoakland.com/councildistricts/\">Oakland Council District Locator</a> (access to info on all 7 Council Districts)</li>\n\t<li>\n\t\t<a href=\"https://www.cityofberkeley.info/uploadedFiles/Clerk/Elections/2016/CouncilDistrict_8_2016.pdf\">Berkeley District 8 map</a> (including area just north of <a href=\"Rockridge\">Rockridge</a>, around the <a href=\"Claremont%20Hotel\">Claremont Hotel</a>, and portions of the Lawrence Berkeley National Lab just east of the Lawrence Hall of Science)</li>\n\t<li>\n\t\t<a href=\"https://www.cityofberkeley.info/uploadedFiles/Clerk/Elections/2016/CouncilDistrict_6_2016.pdf\">Berkeley District 6 map</a> (including area just northeast of the Lawrence Hall of Science)</li>\n\t<li>\n\t\t<a href=\"https://www.cityofberkeley.info/uploadedFiles/Clerk/Elections/2016/CouncilDistrict_7_2016.pdf\">Berkeley District 7 map</a> (including area just north of <a href=\"Fairview%20Park\">Fairview Park</a> AKA Lower Rockridge)</li>\n\t<li>\n\t\t<a href=\"https://www.cityofberkeley.info/uploadedFiles/Clerk/Elections/2016/CouncilDistrict_3_2016.pdf\">Berkeley District 3 Map</a> (including area north of <a href=\"Bushrod\">Bushrod</a> and <a href=\"Santa%20Fe\">Santa Fe</a>)</li>\n\t<li>\n\t\t<a href=\"https://www.cityofberkeley.info/uploadedFiles/Clerk/Elections/2016/CouncilDistrict_2_2016.pdf\">Berkeley District 2 map</a> (including area north of <a href=\"Paradise%20Park\">Paradise Park</a>, <a href=\"Golden%20Gate\">Golden Gate</a> and <a href=\"Emeryville\">Emeryville</a>)</li>\n</ul>\n<h3>\n\tLinks and References</h3>\n<ul>\n\t<li>\n\t\t<a href=\"http://nmap.ouroakland.net\">Our Oakland neighborhood map</a> nmap.ouroakland.net</li>\n</ul>\n", "region": "https://zh.localwiki.org/api/v4/regions/340/", "history_comment": "updating link to Oakland's website", "history_date": "2021-03-30T06:45:21.892", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/9357/", "history_user_ip": "" }