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/1422934/
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/1422934/", "name": "\u718a\u91ce\u795e\u793e (\u66fd\u6211\u5927\u6ca2)", "slug": "\u718a\u91ce\u795e\u793e (\u66fd\u6211\u5927\u6ca2)", "content": "<p>\n\t<span class=\"image_frame image_frame_border image_right\"><img src=\"_files/sogaosawa-kumano-shrine.JPG\" style=\"width: 300px; height: 193px;\"><span style=\"width: 300px;\" class=\"image_caption\"><a href=\"%E7%86%8A%E9%87%8E%E7%A5%9E%E7%A4%BE\">\u718a\u91ce\u795e\u793e</a>\uff08<a href=\"%E6%9B%BD%E6%88%91%E5%A4%A7%E6%B2%A2\">\u66fd\u6211\u5927\u6ca2</a>\uff09</span></span><strong>\u718a\u91ce\u795e\u793e</strong>\uff08\u304f\u307e\u306e\u3058\u3093\u3058\u3083\uff09\u306f\u3001<a href=\"%E6%9B%BD%E6%88%91%E5%A4%A7%E6%B2%A2\">\u66fd\u6211\u5927\u6ca2</a>\u306b\u3042\u308b<a href=\"%E7%A5%9E%E7%A4%BE\">\u795e\u793e</a>\u3002\u6c5f\u6238\u6642\u4ee3\u306b\u306f\u540c\u6751\u306e<a href=\"%E9%8E%AE%E5%AE%88\">\u93ae\u5b88</a>\u3067\u6751\u6c11\u6301\u3001\u4f8b\u796d\u306f11\u67089\u65e5\u3060\u3063\u305f<sup>(1)</sup>\u3002</p>\n<h2>\n\t\u30ea\u30f3\u30af</h2>\n<ul>\n\t<li>\n\t\tTATSU\u300c<a href=\"https://www.mikumano.net/zkanagawa/odawara6.html\">\u718a\u91ce\u795e\u793e\uff1a\u795e\u5948\u5ddd\u770c\u5c0f\u7530\u539f\u5e02\u66fd\u6211\u5927\u6ca21955\u4ed8\u8fd1\uff08\u8a73\u7d30\u756a\u5730\u4e0d\u660e\uff09</a>\u300d\u300e<a href=\"https://www.mikumano.net/index.html\">\u307f\u718a\u91ce\u306d\u3063\u3068</a>\u300f\u4f5c\u6210\u65e5 2010\u5e7412\u670827\u65e5\u3001\u6700\u7d42\u66f4\u65b0 2020\u5e748\u670820\u65e5</li>\n\t<li>\n\t\todawara turezure\u300c<a href=\"https://odawarajinnja.blogspot.com/2020/05/no18620200525.html\">\u795e\u793e(No.186)\u30fc\u66fd\u6211\u5927\u6ca2\u3000\u718a\u91ce\u795e\u793e(2020/0525)</a>\u300d\u300e<a href=\"https://odawarajinnja.blogspot.com/\">\u5c0f\u7530\u539f\u306e\u795e\u793e\u3092\u5de1\u308b</a>\u300f2020\u5e745\u670825\u65e5</li>\n</ul>\n<h2>\n\t\u53c2\u8003\u8cc7\u6599</h2>\n<ol>\n\t<li>\n\t\t\u300e<a href=\"https://dl.ndl.go.jp/info:ndljp/pid/1179198/153\">\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-06-29T18:14:49.218", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110560/", "history_user_ip": "240f:7a:d2b9:1:2024:4992:6301:3862" }