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/1403790/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, HEAD, OPTIONS
{ "url": "https://ja.localwiki.org/api/v4/pages_history/1403790/", "name": "\u9ad8\u69fb\u5e02\u4e2d\u5357\u90e8", "slug": "\u9ad8\u69fb\u5e02\u4e2d\u5357\u90e8", "content": "<p>\n\t<strong>\u9ad8\u69fb\u5e02\u4e2d\u5357\u90e8 \u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002</strong></p>\n<p>\n\t\u3000\u203b\u3000<a href=\"https://umap.openstreetmap.fr/ja/map/2021_10_23_540965#13/34.8440/135.6417\"><strong>\u914d\u7f6e\u56f3\u304b\u3089\u306e\u691c\u7d22</strong></a></p>\n<p>\n\t\uff11\uff0e<strong><a href=\"%EF%BC%AA%EF%BC%B2%E9%AB%98%E6%A7%BB%E9%A7%85\">\uff2a\uff32\u9ad8\u69fb\u99c5</a></strong>\u3000\u3000\u3000\u3000\uff1a</p>\n<p>\n\t\uff11\uff0e<strong><a href=\"%E5%A4%A7%E5%A1%9A%E3%81%AE%E5%A0%A4%E9%98%B2%E5%88%87%E3%82%8C\">\u5927\u585a\u306e\u5824\u9632\u5207\u308c</a></strong>\u3000\u3000\uff1a</p>\n<p>\n\t\u00a0</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/960/", "history_comment": null, "history_date": "2021-10-23T20:44:09.687", "history_type": 1, "history_user": "https://ja.localwiki.org/api/v4/users/36498/", "history_user_ip": "182.165.235.219" }