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/1371023/
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/1371023/", "name": "Users/NAParish", "slug": "users/naparish", "content": "<p>\n\t<span style=\"\">Berkeley resident from 1984-86 and 1989-1997, and UC Berkeley grad student from 1984-86 and 1994-97.</span><span style=\"\">\u00a0</span>Oakland resident from 1986-1989 and 1997-present; Oakland attorney since 1997. Chair of Oakland's <a href=\"Landmarks%20Preservation%20Advisory%20Board\">Landmarks Preservation Advisory Board</a> from 2006-2008. Amateur historian, especially interested in railroads and buildings that no longer exist, and the changing pattern of roads/freeways/land use. \u00a0On Twitter at <a href=\"https://twitter.com/NAParish\">https://twitter.com/NAParish</a>. Some of my pix are posted on <a href=\"http://www.flickr.com/photos/naparish/sets\">Flickr</a>. \u00a0</p>\n<p>\n\t\u00a0</p>\n<h3>\n\tComments</h3>\n<hr>\n<p>\n\tWelcome! Wow, the Landmarks Advisory Board! You are among friends here :). Let me know if you ever have any questions. And if you'd like to participate in discussion with other Oak Wiki people, our listserv is at <a href=\"https://groups.google.com/forum/?fromgroups#!forum/oaklandwiki\">https://groups.google.com/forum/?fromgroups#!forum/oaklandwiki</a> . (Also, I recently received an envelope of CD's that contain landmarks-related media from Nicole (the city's online engagement manager). We are working on a technical solution that will let us import and create entries (with a map) for every landmark.) - <a href=\"Users%2Fmk30\">mk30</a></p>\n<p class=\"indent1\">\n\tThx for the welcome.\u00a0 That would be great if you can import the landmarks entries.\u00a0 I could easily spend hours 'n hours (time I really don't have at the moment) on this site, so I will have to ration myself.\u00a0</p>\n<p>\n\tHello NAParish!\u00a0 Wonderful contributions!\u00a0 And thank you for your kind words ... it's much appreciated!\u00a0 Just came across all your Oakland photos on Flickriver when I was searching for Oak Knoll Naval Hospital ... <em><strong>VERY</strong></em> gorgeous!! <a href=\"http://oaklandwiki.org/Users/JL\">JP</a></p>\n<hr>\n<p>\n\tHi NAParish,<br>\n\t<br>\n\tAbout RRRComputer, yes it is a legitimate business in Oakland, but the page is written as ad copy: \"...We collect and donate laptops to children in the San Francisco Bay Area. Our goal helps provide low income children the right technology and help serve our local community. We embrace a culture...\"\u00a0<br>\n\tOriginal <a href=\"https://localwiki.org/oakland/RRR_computer/_history/1\">here</a></p>\n<p>\n\tI take it as a given that pages on the wiki are not supposed to be self-promotional.\u00a0 They should be descriptive.</p>\n<p>\n\tI spend part of every day fighting spam on the wiki, mostly on the main space, and every now and then check out whatever is going on elsewhere, and all the \"We\" and \"Our\" stuff says Spam to me.\u00a0 If it were my wiki, I wouldn't let it stand as written, but it could certainly be re-written in more neutral language (and maybe with a major toning down of all the solicitation).<br>\n\t<br>\n\tBut some sites have different standards on this stuff, and Oakland is pretty much <a href=\"https://localwiki.org/Users/Gene\">Gene</a>'s baby, so if it's OK with him, I won't argue.</p>\n<p>\n\tPeace,<br>\n\tMarc Wanner</p>\n<p class=\"indent1\">\n\tI would say keep it. They're a\u00a0501(c)(3) non-profit, and apart from the \"we\" / self-promotional tone, seems OK.</p>\n<p class=\"indent1\">\n\tGene</p>\n", "region": "https://es.localwiki.org/api/v4/regions/340/", "history_comment": null, "history_date": "2020-08-03T13:34:26.838", "history_type": 1, "history_user": "https://es.localwiki.org/api/v4/users/3242/", "history_user_ip": "2600:1702:2770:bc20:795c:118a:c7a0:495b" }