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/1421982/
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/1421982/", "name": "\u82b1\u84ee\u7a7a\u8ecd\u9632\u7a7a\u8ecd\u4e8b\u5b78\u6821", "slug": "\u82b1\u84ee\u7a7a\u8ecd\u9632\u7a7a\u8ecd\u4e8b\u5b78\u6821", "content": "<p>\n\t<strong>\u7a7a\u8ecd\u9632\u7a7a\u5b78\u6821</strong>\u662f\u4e00\u6240\u5df2\u906d\u88c1\u64a4\u7684\u8ecd\u6821\uff0c\u7528\u65bc\u57f9\u8a13\u9632\u7a7a\u57fa\u790e\u5e79\u90e8\uff0c\u4e26<span style=\"\">\u627f\u64d4\u4e86\u9632\u7a7a\u6307\u63ee\u8207\u9632\u7a7a\u90e8\u968a\u8a13\u7df4\u7684\u8077\u80fd\u3002</span></p>\n<p>\n\t<strong>\u6821\u53f2</strong></p>\n<p>\n\t1933\u5e74\uff0c\u822a\u7a7a\u7f72\u5728\u676d\u5dde\u958b\u8fa6\u9ad8\u5c04\u70ae\u968a\u5b78\u54e1\u73ed\u548c\u9632\u7a7a\u7814\u7a76\u73ed\u3002</p>\n<p>\n\t1934\u5e74\uff0c\u5169\u500b\u8a13\u7df4\u73ed\u5728<span style=\"\">\u7b67\u6a4b</span>\u5408\u4f75\u70ba\u9632\u7a7a\u5b78\u6821<strong>\u3002</strong></p>\n<p>\n\t1935\u5e74\uff0c\u9077\u81f3\u5357\u4eac\uff0c\u66f4\u540d\u4e2d\u592e\u9632\u7a7a\u5b78\u6821\u3002</p>\n<p>\n\t1937\u5e74\uff0c\u6297\u6230\u7206\u767c\uff0c\u5357\u4eac\u6dea\u9677\u524d\u9077\u81f3<span style=\"\">\u6b66\u6f22\uff0c</span><span style=\"\">\u4f46\u906d\u5230\u56b4\u91cd\u640d\u5931\u3002</span></p>\n<p>\n\t1938\u5e74\uff0c\u9077\u81f3\u8cb4\u967d\u3002</p>\n<p>\n\t\u6297\u6230\u52dd\u5229\u5f8c\uff0c\u5e7e\u5ea6\u906d\u5230\u7e2e\u7de8\u3002</p>\n<p>\n\t1947\u5e74\uff0c\u9077\u81f3\u5317\u5e73\u3002</p>\n<p>\n\t1948\u5e74\uff0c\u66f4\u540d\u70ba\u7a7a\u8ecd\u9632\u7a7a\u5b78\u6821\u3002</p>\n<p>\n\t1949\u5e74\uff0c\u79fb\u81f3\u81fa\u7063\uff0c\u8a2d<span style=\"\">\u5740</span>\u65bc\u82b1\u84ee\u5409\u5b89\u5357\u57d4\u3002</p>\n<p>\n\t1984\u5e74\uff0c\u906d\u5230\u88c1\u64a4\u3002</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2645/", "history_comment": "\u4fee\u6b63", "history_date": "2022-06-14T07:15:14.025", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/113419/", "history_user_ip": "58.115.195.76" }