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/1419327/
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/1419327/", "name": "\u306d\u3058\u308a\u7551", "slug": "\u306d\u3057\u308a\u7551", "content": "<p>\n\t<strong>\u306d\u3058\u308a\u7551</strong>\uff08\u306d\u3058\u308a\u3070\u305f\u3051\uff09\u3001<strong>\u306d\u3062\u304c\u7551</strong>\uff08\u306d\u3062\u304c\u3070\u305f\u3051\uff09\u306f\u3001\u77f3\u6a4b\u306e<a href=\"%E4%B8%8E%E4%B8%80%E5%A1%9A\">\u4e0e\u4e00\u585a</a>\u306e\u4e18\u306e\u4e0b\u3001<a href=\"%E7%86%B1%E6%B5%B7%E9%81%93\">\u71b1\u6d77\u9053</a>\u306e\u9053\u6cbf\u3044\u306b\u3042\u3063\u305f\u3001<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>\u304c<a href=\"%E4%BF%A3%E9%87%8E%E6%99%AF%E4%B9%85\">\u4fe3\u91ce\u4e94\u90ce\u666f\u4e45</a>\u3068\u7d44\u307f\u6253\u3061\u3057\u305f\uff08\u305d\u306e\u3068\u304d\u3001<a href=\"%E9%95%B7%E5%B0%BE%E5%AE%9A%E6%99%AF\">\u9577\u5c3e\u65b0\u516d\u5b9a\u666f</a>\u304c\u6765\u3066\u7fa9\u5fe0\u3092\u8a0e\u3061\u53d6\u3063\u305f\uff09\u6240\u3068\u8a00\u308f\u308c\u3066\u3044\u305f\u5834\u6240\u3002<sup>(1)</sup></p>\n<p>\n\t\u300e\u98a8\u571f\u8a18\u7a3f\u300f\u306f\u3001\u300e<a href=\"%E6%BA%90%E5%B9%B3%E7%9B%9B%E8%A1%B0%E8%A8%98\">\u6e90\u5e73\u76db\u8870\u8a18</a>\u300f\u306b\u3001\u300c\u5f13\u624b\u306f\u6d77\u3001\u59bb\u624b\u306f\u5c71\u3001\u9053\u306f\u72ed\u3057\u300d\u306a\u3069\u3068\u8a18\u3057\u3066\u3042\u308b\u306e\u306f\u3001\u5f53\u5730\u306e\u5730\u5f62\u3068\u3088\u304f\u5408\u3063\u3066\u3044\u308b\u3001\u3068\u8a55\u3057\u3066\u3044\u308b<sup>(1)</sup>\u3002</p>\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/1179210/77\">\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-14T06:05:58.651", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110560/", "history_user_ip": "240f:7a:d2b9:1:b058:dd18:45d3:106e" }