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/1421851/
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/1421851/", "name": "\u5409\u5b89\u6751\u5730\u540d\u63a2\u6e90", "slug": "\u5409\u5b89\u6751\u5730\u540d\u63a2\u6e90", "content": "<p>\n\t\u8a72\u6751\u65e5\u64da\u6642\u671f\u70ba\u65e5\u79fb\u6c11\u6751\u300c\u4e2d\u5712\u300d\uff0c\u65e5\u5927\u6b63\u4e8c\u3001\u4e09\u5e74\u9593\uff081913\u30011914\uff09\u5f62\u6210\u4e00\u90e8\u843d\uff0c\u6210\u70ba\u79fb\u6c11\u6751\u516c\u5171\u8a2d\u65bd\u6240\u5728\uff0c\u8209\u51e1\u5409\u91ce\u6751\u79fb\u6c11\u6307\u5c0e\u6240\uff0c\u5f8c\u70ba\u5409\u91ce\u6751\u5c45\u4f4f\u6c11\u6703\u3001\u5409\u91ce\u5c0b\u5e38\u5c0f\u5b78\u7b49\u90fd\u5728\u6b64\u3002\u6c11\u570b\u4e09\u5341\u56db\u5e74\uff081945\uff09\uff0c\u672c\u9109\u8a2d\u9109\u516c\u6240\u65bc\u5409\u5b89\u6751\uff0c\u5373\u4eca\u4e4b\u73fe\u5740\u3002\u8f44\u5167\u73fe\u670927\u9130\uff0c\u9762\u7a4d4.7345\u5e73\u65b9\u516c\u91cc\uff0c\u65bc\u6c11\u570b92\u5e74\uff0823\uff098\u6708\u5e95\u7e3d\u4eba\u53e3\u6578\u70ba4,947\u4eba\u3002 \u6751\u6c11\u4ee5\u52d9\u8fb2\u70ba\u4e3b\uff0c\u683d\u690d\u7a3b\u7c73\u3001\u7518\u8517\u3001\u828b\u982d\u3001\u97ed\u83dc\uff1b\u65e5\u64da\u6642\u671f\u690d\u6709\u300c\u5409\u91ce\u4e00\u865f\u300d\u7a3b\u7c73\uff0c\u66fe\u4e0a\u8ca2\u65e5\u672c\u5929\u7687\u3002\u56e0\u6b64\u7a3b\u7c73\u96e3\u7167\u9867\u3001\u6536\u6210\u5c11\uff0c\u8f03\u5c11\u4eba\u7a2e\u3002\u7518\u8517\u66fe\u5728\u5149\u5fa9\u5f8c\u76db\u540d\u4e00\u6642\uff0c\u8207\u5176\u5b83\u683d\u7a2e\u828b\u982d\u7684\u9109\u93ae\u5982\u5927\u7532\u3001\u516c\u9928\u76f8</p>\n<p>\n\t\u00a0</p>\n<p>\n\t\u5317\u4ee5\u6176\u5357\u4e94\u8857\u63a5\u4e2d\u5712\u6392\u6c34\u6e9d\u9130\u6176\u8c50\u6751\uff0c\u6771\u4ee5\u5409\u8208\u8def\u4e00\u6bb5\u9130\u5b9c\u660c\u6751\u3001\u5357\u660c\u6751\u3001\u7a3b\u9999\u6751\uff0c\u5357\u4ee5\u5409\u660c\u4e09\u8857\u9130\u798f\u8208\u6751\uff0c\u897f\u501a\u4e2d\u592e\u5c71\u8108\u63a5\u79c0\u6797\u9109\u3002</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2645/", "history_comment": "\u5409\u5b89\u6751\u5730\u540d\u63a2\u6e90", "history_date": "2022-06-12T12:52:01.248", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/112661/", "history_user_ip": "2001:b400:e232:42f5:8812:2e6:690d:3a0e" }