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/1408995/
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/1408995/", "name": "\u3042\u308b\u99ac\u9e7f\u3052\u305f\u8003\u3048", "slug": "\u3042\u308b\u99ac\u9e7f\u3051\u305f\u8003\u3048", "content": "<p>\n\t\u304c\u3093\u306f\u30d2\u30c8\u7d30\u80de\u306e\u7570\u5e38\u306a\u7d30\u80de\u5206\u88c2\u306b\u3088\u3063\u3066\u8d77\u304d\u308b\u3002</p>\n<p>\n\t1980\u5e74\u4ee3\u3001\u30ed\u30f3\u30c9\u30f3\u306e\u304c\u3093\u7814\u7a76\u6240\u3067\u50cd\u3044\u3066\u3044\u305f\u6642\u3001\u540c\u50da\u306e\u307b\u3068\u3093\u3069\u306f\u30d2\u30c8\u306e\u7d30\u80de\u5468\u671f\u306e\u5236\u5fa1\u306e\u4ed5\u7d44\u307f\u3092\u8abf\u3079\u3066\u3044\u305f\u3002</p>\n<p>\n\t\u3057\u304b\u3057\u3001\u7b46\u8005\u306f\u9175\u6bcd\u306e\u7d30\u80de\u3092\u5236\u5fa1\u3057\u3066\u3044\u308b\u300ccdc2\u300d\u3068\u3044\u3046\u907a\u4f1d\u5b50\u306e\u300c\u4eba\u9593\u7248\u300d\u304c\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8003\u3048\u305f\u3002</p>\n<p>\n\t\u9175\u6bcd\u3068\u4eba\u9593\u306f\u9060\u304f\u304b\u3051\u96e2\u308c\u3066\u3044\u3066\u3001\u6700\u5f8c\u306b\u5171\u901a\u306e\u7956\u5148\u304b\u3089\u5206\u304b\u308c\u305f\u306e\u306f2\u5104\u5e74\u304b\u308915\u5104\u5e74\u524d\u3067\u3042\u308a\u3001\u99ac\u9e7f\u3052\u305f\u8003\u3048\u3067\u3042\u308b\u3068\u8a00\u3048\u308b\u3060\u308d\u3046\u3002</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/234/", "history_comment": null, "history_date": "2022-01-17T01:36:56.624", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110619/", "history_user_ip": "2400:4053:a002:a300:c113:76c8:b14:d71a" }