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/1371003/
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/1371003/", "name": "West Oakland Mural", "slug": "west oakland mural", "content": "<p>\n\tThere's a large rainbow <a href=\"murals\">mural</a> on Sycamore immediately west of the underpass that goes under <a href=\"Interstate%20980\">980</a> in the <a href=\"Hoover-Foster\">Hoover-Foster</a> <a href=\"neighborhoods\">neighborhood</a>. It says \"Oakland\" in big letters and in the upper left it says \"West\" making it read \"West Oakland.\" \u00a0It also reads \"West Oakland\" in the lower left.</p>\n<p>\n\tIf you have more info about it, please add.</p>\n<p>\n\tArtists are Slang 500, Tigran and Pash</p>\n<p>\n\tCool big picture <a href=\"https://www.flickr.com/photos/boortz47/9095667924/\">here</a>\u00a0and <a href=\"https://www.flickr.com/photos/quintanaphotography/8356663264/\">here</a>.</p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/16731716276_3297d490a0_k.jpg\" style=\"width: 700px; height: 224px;\"><span style=\"width: 700px;\" class=\"image_caption\">ants mural portion. photo\u00a0CC BY-NC-ND 2.0 by\u00a0<br>\n\tWilliam Newton</span></span></p>\n<p>\n\t\u00a0</p>\n<p>\n\t\u00a0</p>\n", "region": "https://es.localwiki.org/api/v4/regions/340/", "history_comment": "artist info", "history_date": "2020-08-03T10:56:49.842", "history_type": 1, "history_user": "https://es.localwiki.org/api/v4/users/10864/", "history_user_ip": "75.3.245.85" }