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/1422503/
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/1422503/", "name": "\u5e4c\u5225\u5ddd\u306e\u7570\u5e38\u6c34\u4f4d\u305d\u306e\u5f8c", "slug": "\u5e4c\u5225\u5ddd\u306e\u7570\u5e38\u6c34\u4f4d\u305d\u306e\u5f8c", "content": "<p> \u5e4c\u5225\u5ddd\u306e\u7570\u5e38\u6c34\u4f4d\u305d\u306e\u5f8c \u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u305c\u3072\u6559\u3048\u3066\u304f\u3060\u3055\u3044</p><p> \u3000\uff15\u6708\u304b\u3089\u76ee\u7acb\u3063\u305f\u5e4c\u5225\u5ddd\u306e\u7570\u5e38\u4f4e\u6c34\u4f4d\u306f\uff15\u6708\uff13\uff11\u65e5\u306e\u96e8\u3067\u6301\u3061\u76f4\u3057\u305f\u304b\u306b\u898b\u3048\u305f\u304c\u305d\u308c\u304b\u3089\u3059\u3050\u306b\u5ddd\u5e95\u304c\u9732\u51fa\u3057\u3001\u7570\u5e38\u6c34\u4f4d\u304c\u518d\u3073\u518d\u6765\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u6700\u8fd1\u4e00\u3064\u306e\u61f8\u5ff5\u304c\u982d\u3092\u304b\u3059\u3081\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u3082\u3057\u304b\u3057\u3066\u5ddd\u306e\u5bfe\u5cb8\u306e\u6d78\u98df\u306b\u3088\u308a\u5ddd\u306e\u4e3b\u306a\u6d41\u8def\u304c\u5909\u308f\u3063\u305f\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u3044\u3046\u3053\u3068\u3060\u3002\u305d\u3046\u3059\u308b\u3068\u3082\u3046\u4ee5\u524d\u306e\u69d8\u306a\u5ddd\u306e\u59ff\u306f\u500b\u3005\u3067\u306f\u898b\u308c\u306a\u304f\u306a\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002</p><p> <span class=\"image_frame image_frame_border\"><img src=\"_files/%E5%A4%89%E6%8F%9B%20%EF%BD%9E%20DSC_0001.jpg\" style=\"width: 300px; height: 200px;\"></span></p><p> \u3000\u4ee4\u548c\uff14\u5e74\uff16\u6708\uff11\uff10\u65e5\u306e\u5e4c\u5225\u5ddd\u4e0a\u6d41</p>", "region": "https://zh.localwiki.org/api/v4/regions/351/", "history_comment": "\u65b0\u305f\u306a\u6587\u7ae0\u3068\u5199\u771f\u306e\u8ffd\u52a0", "history_date": "2022-06-23T22:38:49.086", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/57371/", "history_user_ip": "60.35.46.115" }