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/1408910/
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/1408910/", "name": "Hotel Avalon", "slug": "hotel avalon", "content": "<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/ohrphoto.oaklandhotels.017.jpg\" style=\"width: 350px; height: 208px;\"><span style=\"width: 350px;\" class=\"image_caption\">c.1930 <sup>1</sup></span></span></p>\n<p>\n\tThe <strong>Hotel Avalon</strong> was a medium-sized hotel at the northwest corner of 20th and Telegraph. The building was constructed beginning in 1906 for Dr. R.T. Stratton, and designed by architect <a href=\"Frederick%20Soderberg\">Frederick Soderberg</a>. <sup>2</sup></p>\n<p>\n\tThe ground level had retail spaces, and the upper floors were leased to William Harfst to run the hotel. The hotel had 50 rooms and 12 baths. <sup>2</sup></p>\n<p>\n\tIn 1946, there were plans to demolish the hotel and construct a new building, <sup>3</sup> but those apparently fell through, because the hotel was still listed in a 1963 classified. <sup>4</sup></p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/00727_01_1912-9-0054.jpg\" style=\"width: 269px; height: 300px;\"><span style=\"width: 269px;\" class=\"image_caption\">1912 Sanborn excerpt</span></span></p>\n<h2>\n\tLinks and References</h2>\n<ol>\n\t<li>\n\t\t<a href=\"https://oakland.access.preservica.com/file/sdb:digitalFile%7C4b714b80-ab86-4df3-ae42-a7d5cdb65918/\">ohrphoto.oaklandhotels.017</a> Oakland History Center, Oakland Public Library</li>\n\t<li>\n\t\t<a href=\"https://www.newspapers.com/clip/92672480/hotel-avalon-being-constructed/\">Still Another Hotel Designed to Accommodate New Residents</a> <em>Oakland Tribune</em> October 27, 1906</li>\n\t<li>\n\t\t<a href=\"https://www.newspapers.com/clip/92673268/plans-to-build-on-site-of-hotel-avalon/\">Building Slated on Hotel Land</a> <em>Oakland Tribune</em> July 10, 1946</li>\n\t<li>\n\t\t<a href=\"https://www.newspapers.com/clip/92672364/hotel-avalon-2010-telegraph/\">classified</a> <em>Oakland Tribune</em> June 14, 1963</li>\n</ol>\n", "region": "https://zh.localwiki.org/api/v4/regions/340/", "history_comment": null, "history_date": "2022-01-15T18:47:47.348", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/3242/", "history_user_ip": "2600:1702:2770:bc20:c8ec:6edf:d1e1:3cd5" }