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/1408990/
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/1408990/", "name": "\u300c\u907a\u4f1d\u5b50\u300d\u306e\u767a\u898b", "slug": "\u907a\u4f1d\u5b50\u306e\u767a\u898b", "content": "<p>\n\t\u7b46\u8005(\u30dd\u30fc\u30eb\u30fb\u30ca\u30fc\u30b9)\u306b\u306f\u4e8c\u4eba\u306e\u5a18\u3068\u56db\u4eba\u306e\u5b6b\u304c\u304a\u308a\u3001\u305d\u308c\u305e\u308c\u500b\u6027\u7684\u3067\u3042\u308b\u304c\u3001\u8eab\u9577\u3084\u77b3\u306e\u8272\u3001\u53e3\u3084\u9f3b\u306e\u30ab\u30fc\u30d6\u3001\u72ec\u7279\u306a\u4ed5\u8349\u3084\u9854\u306e\u8868\u60c5\u306a\u3069\u3001\u3088\u304f\u4f3c\u3066\u3044\u308b\u3082\u306e\u3082\u3042\u308c\u3070\u3001\u307b\u3069\u3093\u3069\u4f3c\u3066\u3044\u306a\u3044\u3082\u306e\u3082\u3042\u308b\u3002\u305d\u3053\u306b\u306f\u4f55\u4e16\u4ee3\u306b\u3082\u308f\u305f\u308b\u9023\u7d9a\u6027\u304c\u898b\u3089\u308c\u308b\u3002</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/234/", "history_comment": "\"\u907a\u4f1d\u5b50\u306e\u767a\u898b\" \u306b\u30ea\u30cd\u30fc\u30e0\u3055\u308c\u307e\u3057\u305f", "history_date": "2022-01-17T01:07:32.394", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/110618/", "history_user_ip": "14.9.160.1" }