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/1422842/
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/1422842/", "name": "Attica Central School District", "slug": "attica central school district", "content": "<h1>\n\tFacilities</h1>\n<hr>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\tSchool</td>\n\t\t\t<td>\n\t\t\t\tAddress</td>\n\t\t\t<td>\n\t\t\t\tDate Built</td>\n\t\t\t<td>\n\t\t\t\tPrinciple</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<a href=\"Prospect%20Elementary%20School\">Prospect Elementary School</a></td>\n\t\t\t<td>\n\t\t\t\t31 Prospect St. Attica, NY 14011</td>\n\t\t\t<td>\n\t\t\t\t1923?</td>\n\t\t\t<td>\n\t\t\t\tKelly Beitz</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<a href=\"Attica%20Middle%20School\">Attica Middle School</a></td>\n\t\t\t<td>\n\t\t\t\t3338 East Main St. Attica, NY 14011</td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\tPaul Clark</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<a href=\"Attica%20High%20School\">Attica High School</a></td>\n\t\t\t<td>\n\t\t\t\t3338 East Main St. Attica, NY 14011</td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\tJosh Audsley</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<a href=\"Sheldon%20Elementary%20School\">Sheldon Elementary School</a></td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\tN/A</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<h2>\n\tSuperintendent</h2>\n<hr>\n<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\tImage</td>\n\t\t\t<td>\n\t\t\t\tName</td>\n\t\t\t<td>\n\t\t\t\tEducation</td>\n\t\t\t<td>\n\t\t\t\tStart Date</td>\n\t\t\t<td>\n\t\t\t\tEnd Date</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<span class=\"image_frame image_frame_border\"><img src=\"_files/dr.%20illg.jpg\" style=\"width: 300px; height: 295px;\"></span></td>\n\t\t\t<td>\n\t\t\t\t<a href=\"Kiel%20Illg%20PH.D.\">Kiel Illg PH.D.</a></td>\n\t\t\t<td>\n\t\t\t\tDoctorate of Philosophy in Kinesiology from West Virginia Universoty</td>\n\t\t\t<td>\n\t\t\t\tJuly 1st, 2022</td>\n\t\t\t<td>\n\t\t\t\tN/A</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<span class=\"image_frame image_frame_border\"><img src=\"_files/tim%20hayes.jpg\" style=\"width: 240px; height: 300px;\"></span></td>\n\t\t\t<td>\n\t\t\t\t<a href=\"Timothy%20Hayes\">Timothy Hayes</a></td>\n\t\t\t<td>\n\t\t\t\tCertificate of Advanced Study in Education Administration from SUNY Brockport</td>\n\t\t\t<td>\n\t\t\t\tJanuary 1st, 2022</td>\n\t\t\t<td>\n\t\t\t\tJune 30th, 2022</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<span class=\"image_frame image_frame_border\"><img src=\"_files/bryce%20thompson.png\"></span></td>\n\t\t\t<td>\n\t\t\t\t<a href=\"Bryce%20Thompson\">Bryce Thompson</a></td>\n\t\t\t<td>\n\t\t\t\tMaster's in Instructional Strategies from Buffalo State</td>\n\t\t\t<td>\n\t\t\t\tJune 29th, 2002</td>\n\t\t\t<td>\n\t\t\t\tDecember 30th, 2021</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t<a href=\"Joseph%20L.%20Rossetti\">Joseph L. Rossetti</a></td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\tAugust 1997</td>\n\t\t\t<td>\n\t\t\t\tJune 28th, 2002</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t<a href=\"Edward%20Anthony%20Stores\">Edward Anthony Stores</a></td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t1983</td>\n\t\t\t<td>\n\t\t\t\t1997</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t<a href=\"Charlotte%20E.%20Brayer\">Charlotte E. Brayer</a></td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t1983</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t<a href=\"Dr.%20Raymond%20Kwak\">Dr. Raymond Kwak</a></td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t<a href=\"Richard%20Melvin%20Willover\">Richard Melvin Willover</a></td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t\t<td>\n\t\t\t\t\u00a0</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\t\u00a0</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2590/", "history_comment": null, "history_date": "2022-06-28T10:56:54.998", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/109161/", "history_user_ip": "2603:7081:c06:f892:818a:2699:9e19:43ae" }