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/1419322/
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/1419322/", "name": "\u4e0e\u4e00\u585a", "slug": "\u4e0e\u4e00\u585a", "content": "<p>\n\t<strong>\u4e0e\u4e00\u585a</strong>\uff08\u3088\u3044\u3061\u3065\u304b\uff09\u306f\u3001<a href=\"https://ja.localwiki.org/odawara/%E7%9F%B3%E6%A9%8B\" class=\"missing_link\">\u77f3\u6a4b</a>\u306b\u3042\u308b\u3001\u6cbb\u627f4\u5e74\uff081180\uff09\u306e<a href=\"https://ja.localwiki.org/odawara/%E7%9F%B3%E6%A9%8B%E5%B1%B1%E3%81%AE%E5%90%88%E6%88%A6\" class=\"missing_link\">\u77f3\u6a4b\u5c71\u306e\u5408\u6226</a>\u306e\u3068\u304d\u8a0e\u6b7b\u3057\u305f<a href=\"%E4%BD%90%E5%A5%88%E7%94%B0%E4%B8%8E%E4%B8%80\">\u4f50\u5948\u7530\u4e0e\u4e00\u7fa9\u5fe0</a>\u306e\u58b3\u5893\u3002\u77f3\u6a4b\u306e\u5357\u3001<a href=\"%E7%86%B1%E6%B5%B7%E9%81%93\">\u71b1\u6d77\u9053</a>\u304b\u3089\u77f3\u6bb542\u6bb5\u3092\u4e0a\u304c\u3063\u305f\u4e18\u306e\u4e0a\u306b\u5468\u56f2\u304c1\u4e088\u5c3a\uff08\u7d045.4m\uff09\u3001\u6a39\u9ad86\u4e08\uff08\u7d0418.2m\uff09\u306e\u6749\u306e\u53e4\u6728\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u300c\u4e0e\u4e00\u585a\u300d\u3068\u547c\u3093\u3067\u3044\u305f\u3002<sup>(1)</sup></p>\n<p>\n\t\u6749\u306e\u6728\u306e\u524d\u306b\u9ad8\u30556\u5c3a\uff08\u7d04182cm\uff09\u3001\u5e452\u5c3a\uff08\u7d0461cm\uff09\u306e\u77f3\u7891\u304c\u3042\u308a\u3001\u300c\u4f50\u5948\u7530\u4e0e\u4e00\u7fa9\u5fe0\u5893\u3001\u6cbb\u627f\u56db\u5e9a\u5b50\u5e74\uff081880\uff09\u516b\u6708\u5eff\u4e09\u65e5\u591c\u300d\u3068\u984c\u3057\u3066\u3042\u3063\u305f\u3002\u3053\u308c\u306f\u3001<a href=\"https://ja.localwiki.org/odawara/%E7%A8%B2%E8%91%89%E6%AD%A3%E5%89%87\" class=\"missing_link\">\u7a32\u8449\u7f8e\u6fc3\u5b88\u6b63\u5247</a>\u306e\u5bb6\u81e3\u30fb<a href=\"https://ja.localwiki.org/odawara/%E7%94%B0%E8%BE%BA%E4%BF%A1%E5%90%89\" class=\"missing_link\">\u7530\u8fba\u6a29\u592a\u592b\u4fe1\u5409</a>\u304c\u5efa\u7acb\u3057\u305f\u3082\u306e\u3060\u3063\u305f\u3002\u7891\u306e\u4e0a\u306b\u306f\u8986\u5c4b\u304c\u8a2d\u3051\u3066\u3042\u3063\u305f\u3002<sup>(1)</sup></p>\n<h2>\n\t\u53c2\u8003\u8cc7\u6599</h2>\n<ol>\n\t<li>\n\t\t\u300e<a href=\"%E9%A2%A8%E5%9C%9F%E8%A8%98%E7%A8%BF\">\u98a8\u571f\u8a18\u7a3f</a>\u300f</li>\n</ol>\n", "region": "https://zh.localwiki.org/api/v4/regions/2638/", "history_comment": null, "history_date": "2022-05-14T05:47:30.440", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110560/", "history_user_ip": "240f:7a:d2b9:1:b058:dd18:45d3:106e" }