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/1422617/
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/1422617/", "name": "\u771e\u697d\u5bfa", "slug": "\u771e\u697d\u5bfa", "content": "<p>\n\t<strong>\u3053\u3053\u3067\u306f\u3001\u771f\u697d\u5bfa \u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002</strong></p>\n<p>\n\t\u5728\u6240\uff1a<a href=\"https://umap.openstreetmap.fr/ja/map/2021_10_23_540965#17/34.83049/135.59490\"><strong>\u5bcc\u7530\u753a\u56db\u4e01\u76ee\uff14\uff0d\uff12\uff14</strong></a></p>\n<p>\n\t<strong>\u3010\u30dd\u30a4\u30f3\u30c8\u3011</strong></p>\n<p>\n\t\u2460\uff0e\u5b97\u6d3e\u3000\u6d44\u571f\u771f\u5b97\u672c\u9858\u5bfa\u6d3e</p>\n<p>\n\t<strong>\u3010\u95a2\u9023\u5199\u771f\u3011</strong></p>\n<p>\n\t\u73fe\u5730\u672a\u8abf\u67fb</p>\n<p>\n\t<strong>\u3010\u53c2\u8003\u60c5\u5831\u3011</strong></p>\n<p>\n\t\u60c5\u5831\u306a\u3057</p>\n<p>\n\t\u00a0</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/960/", "history_comment": "\"\u771f\u697d\u5bfa\" \u306b\u30ea\u30cd\u30fc\u30e0\u3055\u308c\u307e\u3057\u305f", "history_date": "2022-06-26T00:02:24.041", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/36498/", "history_user_ip": "180.147.183.187" }