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/1422447/
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/1422447/", "name": "\u7b52\u4e95\u6c60\u516c\u5712\uff08\u5317\u90e8\uff09", "slug": "\u7b52\u4e95\u6c60\u516c\u5712(\u5317\u90e8)", "content": "<p>\n\t<strong>\u3053\u3053\u3067\u306f\u3001\u7b52\u4e95\u6c60\u516c\u5712 \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.83151/135.59489\"><strong>\u9ad8\u69fb\u5e02\u5bcc\u7530\u753a\u56db\u4e01\u76ee\uff12\uff0d\uff15</strong></a></p>\n<p>\n\t<strong>\u3010\u30dd\u30a4\u30f3\u30c8\u3011</strong></p>\n<p>\n\t\u2460\uff0e\u685c\u30b9\u30dd\u30c3\u30c8\u306e\u516c\u5712\u3002</p>\n<p>\n\t\u2461\uff0e\u9ad8\u69fb\u307e\u3061\u304b\u3069\u907a\u7523\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u6b74\u53f2\u30dd\u30a4\u30f3\u30c8\u3067\u3082\u3042\u308b\u3002</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\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\uff1a<a href=\"https://ittekoyo.com/tutuiike/\"><strong>\u7b52\u4e95\u6c60\u516c\u5712</strong></a></p>\n<p>\n\t\u00a0</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/960/", "history_comment": "\"\u7b52\u4e95\u6c60\u516c\u5712\" \u306b\u30ea\u30cd\u30fc\u30e0\u3055\u308c\u307e\u3057\u305f", "history_date": "2022-06-23T02:43:21.854", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/36498/", "history_user_ip": "180.147.183.187" }