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/1421914/
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/1421914/", "name": "\u5b9c\u660c\u570b\u4e2d", "slug": "\u5b9c\u660c\u570b\u4e2d", "content": "<p>\n\t\u3000\u6c11\u570b\u4e94\u5341\u4e03\u5e74\uff0c\u5949\u7701\u4ee4\u6b63\u5f0f\u8a2d\u6821\uff0c\u7e23\u5e9c\u6d3e\u4efb\u5b9c\u660c\u570b\u5c0f\u6821\u9577\u6797\u8ce2\u9054\u5148\u751f\u70ba\u7c4c\u5099\u4e3b\u4efb\uff0c\u7531\u5b9c\u660c\u570b\u5c0f\u6350\u8d08\u5be6\u7fd2\u7528\u57302.3\u516c\u9803\u70ba\u5efa\u6821\u7528\u5730\u3002\u65bc\u6c11\u570b\u4e94\u5341\u516b\u5e74\u56db\u6708\u4e8c\u5341\u516b\u65e5\u7834\u571f\u5960\u57fa\u3002\u958b\u59cb\u8208\u5de5\u5efa\u7bc9\uff0c\u540c\u5e74\u516b\u6708\u958b\u59cb\u62db\u751f\u3002</p>\n<ol>\n\t<li>\n\t\t<strong>\u6210\u9577\u8207\u6cbf\u9769\uff1a</strong>\n\t\t<p>\n\t\t\t(1)\u6c11\u570b58\u5e74\u5f35\u6e05\u5fb7\u5148\u751f\u5949\u6d3e\u70ba\u9996\u4efb\u6821\u9577\u3002</p>\n\t\t<p>\n\t\t\t(2)\u6c11\u570b62\u5e74\u8a2d\u5b9c\u660c\u6c34\u7489\u5206\u90e8\uff08\u6c11\u570b87\u5e746\u670830\u65e5\uff0c\u5206\u90e8\u89e3\u6563\u3002\uff09</p>\n\t\t<p>\n\t\t\t(3)\u6c11\u570b62\u5e74\u674e\u8a69\u96f2\u5148\u751f\u63a5\u4efb\u6821\u9577\u3002</p>\n\t\t<p>\n\t\t\t(4)\u6c11\u570b63\u5e74\u8d77\u589e\u8a2d\u5b9c\u660c\u88dc\u6821\u3002</p>\n\t\t<p>\n\t\t\t(5)\u6c11\u570b73\u5e74\u8d77\uff0c\u5e2b\u8cc7\u652f\u63f4\u82b1\u84ee\u76e3\u7344\u6b63\u5fb7\u88dc\u6821\u3002</p>\n\t\t<p>\n\t\t\t(6)\u6c11\u570b76\u5e74\u6f58\u677e\u6839\u5148\u751f\u5949\u8abf\u4efb\u6821\u9577\u3002</p>\n\t\t<p>\n\t\t\t(7)\u6c11\u570b82\u5e74\u5289\u5bb6\u6c34\u5148\u751f\u63a5\u4efb\u6821\u9577\u3002</p>\n\t\t<p>\n\t\t\t(8)\u6c11\u570b89\u5e74\u9673\u6587\u8ca1\u5148\u751f\u63a5\u4efb\u6821\u9577\u3002</p>\n\t\t<p>\n\t\t\t(9)\u6c11\u570b97\u5e74\u76e7\u9032\u7fa9\u5148\u751f\u63a5\u4efb\u6821\u9577\u3002</p>\n\t\t<p>\n\t\t\t(10)\u6c11\u570b98\u5e74\u5f6d\u68ee\u9732\u5148\u751f\u63a5\u4efb\u6821\u9577\u3002</p>\n\t\t<p>\n\t\t\t(11)\u00a0\u6c11\u570b104\u5e74\u516b\u6708\uff0c\u73fe\u4efb\u6821\u9577\u9673\u7389\u660e\u5148\u751f\u5230\u4efb\u3002</p>\n\t\t<p>\n\t\t\t<strong>\u4e8c\u3001\u6211\u5011\u7684\u5730\u7406\u4f4d\u7f6e</strong></p>\n\t\t<p>\n\t\t\t\u00a0 \u00a0\u00a0\u00a0\u00a0\u5b9c\u660c\u570b\u4e2d\u4f4d\u65bc\u5409\u5b89\u9109\u4e4b\u6771\u5317\u65b9\uff0c\u82b1\u84ee\u5e02\u90fd\u6703\u5340\u908a\u7de3\uff0c\u8207\u6821\u707a\u76f8\u9130\u7684\u9053\u8def\u6709\u5b9c\u660c\u4e00\u8857\u3001\u82b1\u6771\u9435\u8def\uff0c\u508d\u6709\u5b9c\u660c\u570b\u5c0f\u3001\u555f\u667a\u5b78\u6821\u3002</p>\n\t</li>\n</ol>\n", "region": "https://zh.localwiki.org/api/v4/regions/2645/", "history_comment": "\u5b9c\u660c\u570b\u4e2d", "history_date": "2022-06-13T06:46:37.418", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/112661/", "history_user_ip": "2001:b400:e232:42f5:745d:e1ba:e6fb:cccf" }