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/1421792/
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/1421792/", "name": "\u5317\u660c\u570b\u6c11\u5c0f\u5b78", "slug": "\u5317\u660c\u570b\u6c11\u5c0f\u5b78", "content": "<p>\n\t\u3000\u3000\u539f\u70ba\u5b9c\u660c\u570b\u5c0f\u5317\u660c\u5206\u6821\uff0c\u5f8c\u65bc\u6c11\u570b 55 \u5e74 9 \u6708\u7368\u7acb\u8a2d\u6821\uff0c\u5b9a\u540d\u70ba\u82b1\u84ee\u7e23\u5409\u5b89\u9109\u5317\u660c\u570b\u5c0f\u3002</p>\n<p>\n\t\u3000\u3000\u56e0<span style=\"\">\u52dd\u5b89\u6751\u3001\u5317\u660c\u6751\u4e5f\u65e5\u76ca\u7e41\u83ef\uff0c\u79fb\u5165\u4eba\u53e3\u773e\u591a\uff0c\u9010\u6f38\u5f62\u6210\u65b0\u8208\u7684\u5546\u696d\u5340\uff0c</span><span style=\"\">\u73ed\u7d1a\u6578\u7531\u539f\u5148 5 \u73ed\u589e\u70ba32\u73ed\u3002\u5f8c\u56e0\u5c11\u5b50\u5316\uff0c\u73ed\u7d1a\u6578\u7e2e\u6e1b\u4e26\u56fa\u5b9a\u70ba 27 \u73ed\uff0c\u4ea6\u9650\u5b9a\u70ba\u300c\u5c0f\u4e00\u65b0\u751f\u984d\u6eff\u5b78\u6821\u300d\u3002</span>\u4e26\u9644\u8a2d\u6709<span style=\"\">\u300c\u81ea\u7acb\u5e7c\u7a1a\u5712\u300d\uff08\u6c11 70 \u5e74\u6210\u7acb\uff09\u3002</span></p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2645/", "history_comment": null, "history_date": "2022-06-11T11:45:58.843", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/113414/", "history_user_ip": "2001:b400:e25b:66d3:fdaf:16e1:c185:19e5" }