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/1371005/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, HEAD, OPTIONS
{ "url": "https://es.localwiki.org/api/v4/pages_history/1371005/", "name": "USS Oakland", "slug": "uss oakland", "content": "<p>\n\t<span style=\"\" class=\"image_frame image_frame_border\"><img src=\"_files/DSCN0324.JPG\" style=\"width: 300px; height: 400px;\"><span style=\"width: 300px;\" class=\"image_caption\">USS Oakland mast<br>\n\t<em>photo CC SA-BY-NC from <a href=\"Our%20Oakland\">Our Oakland</a></em></span></span></p>\n<p>\n\tThe <strong>USS Oakland</strong> was a WWII anti-aircraft cruiser. It launched in 1942 and was part of the US Navy until 1949, and earned 9 battle stars. It was scrapped in 1959, but the mainmast and nameplate were salvaged and presented to the city in 1965. The mainmast was displayed at <a href=\"Jack%20London%20Square\">Jack London Square</a> for about 30 years, but the mainmast was restored and they were moved to a prominent display at <a href=\"Middle%20Harbor%20Shoreline%20Park\">Middle Harbor Shoreline Park</a>\u00a0in 2003.</p>\n<h3>\n\tPhotos</h3>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/USS_Oakland_(CL-95)_in_San_Francisco_Bay_on_2_August_1943_(NH_98442).jpg\" style=\"width: 450px; height: 353px;\"><span style=\"width: 450px;\" class=\"image_caption\"><em>USS Oakland</em> 1943<br>\n\t<em>public domain via <a href=\"https://commons.wikimedia.org/wiki/File:USS_Oakland_(CL-95)_in_San_Francisco_Bay_on_2_August_1943_(NH_98442).jpg\">Wikipedia</a></em></span></span></p>\n<p>\n\t<span style=\"\" class=\"image_frame image_frame_border\"><img src=\"_files/DSCN0319.JPG\" style=\"width: 325px; height: 225px;\"><em><span style=\"width: 325px;\" class=\"image_caption\">CC SA-BY from\u00a0<a href=\"Our%20Oakland\">Our Oakland</a></span></em></span><span style=\"\" class=\"image_frame image_frame_border\"><img src=\"_files/DSCN0323.JPG\" style=\"width: 300px; height: 225px;\"><em><span style=\"width: 300px;\" class=\"image_caption\">CC SA-BY from\u00a0<a href=\"Our%20Oakland\">Our Oakland</a></span></em></span><span class=\"image_frame image_frame_border\"><img src=\"_files/1-DSC_8452.JPG\" style=\"width: 340px; height: 225px;\"><em><span style=\"width: 340px;\" class=\"image_caption\">CC SA-BY <a href=\"Our%20Oakland\">Our Oakland</a></span></em></span></p>\n<h2>\n\tLinks and References</h2>\n<ul>\n\t<li>\n\t\t<a href=\"https://en.wikipedia.org/wiki/USS_Oakland_(CL-95)\">USS Oakland (CL-95)</a> on Wikipedia</li>\n\t<li>\n\t\t<a href=\"https://www.baycrossings.com/uss-oakland-honored/\">USS Oakland Honored</a>\u00a0<em>Bay Crossings</em> August 1, 2003</li>\n\t<li>\n\t\t<a href=\"https://www.mercurynews.com/2018/10/19/wwii-sailor-95-wants-one-last-look-at-the-uss-oakland/\">WWII sailor, 95, wants one last look at the USS Oakland</a> <em>SJ Mercury News</em> October 19, 2018</li>\n</ul>\n", "region": "https://es.localwiki.org/api/v4/regions/340/", "history_comment": "Adding info about the mast's former display at JLS; more info is needed on that aspect", "history_date": "2020-08-03T11:28:50.970", "history_type": 1, "history_user": "https://es.localwiki.org/api/v4/users/9357/", "history_user_ip": "45.30.91.192" }