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/1408867/
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/1408867/", "name": "\u5c0f\u7530\u539f\u57ce", "slug": "\u5c0f\u7530\u539f\u57ce", "content": "<p>\n\t\u5c0f\u7530\u539f\u57ce\u3068\u3044\u3048\u3070\u3001\u304b\u3064\u3066\u5c0f\u7530\u539f\u306b\u5b58\u5728\u3057\u305f\u3001\u5317\u6761\u6c0f\u306e\u672c\u62e0\u5730\u3068\u3057\u3066\u77e5\u3089\u308c\u305f\u4e2d\u4e16\u306e\u57ce\u90ed\u3067\u3042\u308b\u3002\u6700\u8fd1\u306e\u5c0f\u7530\u539f\u57ce\u306f\u3001\u5c0f\u7530\u539f\u5e02\u304c\u7ba1\u7406\u3057\u3066\u3044\u308b\u3001\u8fd1\u4e16\u306e\u57ce\u90ed\u3092\u6a21\u3057\u305f\u5efa\u9020\u7269\u3067\u3042\u308b\u3002<span class=\"image_frame image_frame_border\"><img src=\"_files/P5260004.JPG\" style=\"width: 300px; height: 225px;\"></span></p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2638/", "history_comment": null, "history_date": "2022-01-14T20:04:09.189", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110560/", "history_user_ip": "240f:7a:d2b9:1:20f7:e40d:d2ea:3f84" }