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/1423110/
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/1423110/", "name": "\u4e8c\u4f53\u306e\u4e8c\u5bae\u91d1\u6b21\u90ce\u50cf", "slug": "\u4e8c\u4f53\u306e\u4e8c\u5bae\u91d1\u6b21\u90ce\u50cf", "content": "<p>\n\t<span class=\"image_frame image_frame_border image_right\"><img src=\"_files/overlapped-kinjiroes.JPG\" style=\"width: 300px; height: 225px;\"><span style=\"width: 300px;\" class=\"image_caption\">\u4e8c\u4f53\u306e\u4e8c\u5bae\u91d1\u6b21\u90ce\u50cf</span></span><strong>\u4e8c\u4f53\u306e\u4e8c\u5bae\u91d1\u6b21\u90ce\u50cf</strong>\uff08\u306b\u305f\u3044\u306e\u306b\u306e\u307f\u3084\u304d\u3093\u3058\u308d\u3046\u305e\u3046\uff09\u306f\u3001<a href=\"%E6%A0%A2%E5%B1%B1\">\u6822\u5c71</a>\u306b\u3042\u308b\u300c\u4e8c\u5bae\u5c0a\u5fb3\u69cb\u9020\u7406\u8ad6\u767a\u7965\u4e4b\u5730\u300d\u306e\u5357\u5411\u304d\u306e<a href=\"%E4%BA%8C%E5%AE%AE%E5%B0%8A%E5%BE%B3\">\u4e8c\u5bae\u91d1\u6b21\u90ce</a>\u306e\u77f3\u50cf\u3068\u3001\u305d\u306e\u6b63\u9762\u306b\u5efa\u3064\u7121\u9298\u306e\u6771\u5411\u304d\u306e\u4e8c\u5bae\u91d1\u6b21\u90ce\u306e\u77f3\u50cf\u3002\u3044\u308f\u308c\u306f\u4e0d\u8a73\u3002<sub>\uff082022\u5e74\u8abf\u67fb\uff09</sub></p>\n<p>\n\t\u00a0</p>\n<p>\n\t\u00a0</p>\n<p>\n\t\u00a0</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2638/", "history_comment": null, "history_date": "2022-07-02T03:57:42.593", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110560/", "history_user_ip": "240f:7a:d2b9:1:392c:893f:34d9:5db1" }