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/1401801/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, HEAD, OPTIONS
{ "url": "https://ja.localwiki.org/api/v4/pages_history/1401801/", "name": "\u30ed\u30b1\u30c3\u30c8\u306b\u95a2\u3057\u3066", "slug": "\u30ed\u30b1\u30c3\u30c8\u306b\u95a2\u3057\u3066", "content": "<h3>\n\t\u4e32\u672c\u753a\u306b\u306f\u3001\u6c11\u9593\u521d\u306e\u30ed\u30b1\u30c3\u30c8\u5c04\u5834\u304c\u5efa\u8a2d\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30ed\u30b1\u30c3\u30c8\u306b\u95a2\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u30fb\u304a\u571f\u7523\u306a\u3069\u76db\u308a\u4e0a\u304c\u308a\u3092\u898b\u305b\u3066\u3044\u307e\u3059\u3002\u00a0</h3>\n<h3>\n\t\u30fb<a href=\"https://ja.localwiki.org/ksm/%E3%83%AD%E3%82%B1%E3%83%83%E3%83%88%E3%83%A9%E3%83%BC%E3%83%A1%E3%83%B3\">\u30ed\u30b1\u30c3\u30c8\u30e9\u30fc\u30e1\u30f3</a></h3>\n<h3>\n\t\u30fb<a href=\"https://ja.localwiki.org/ksm/%E7%BC%B6%E3%83%90%E3%83%83%E3%82%B8\">\u7f36\u30d0\u30c3\u30b8</a></h3>\n<h3>\n\t\u30fb<a href=\"https://ja.localwiki.org/ksm/%E3%81%82%E3%81%8C%E3%82%89%E3%81%AE%E3%81%9F%E3%82%8C\">\u3042\u304c\u3089\u306e\u305f\u308c</a></h3>\n<h3>\n\t\u30fb<a href=\"https://ja.localwiki.org/ksm/%E3%83%AD%E3%82%B1%E3%83%83%E3%83%88%E3%82%B5%E3%82%A4%E3%83%80%E3%83%BC\">\u30ed\u30b1\u30c3\u30c8\u30b5\u30a4\u30c0\u30fc</a></h3>\n<h3>\n\t\u30fb<a href=\"https://ja.localwiki.org/ksm/%E3%83%AD%E3%82%B1%E3%83%83%E3%83%88%E3%82%AB%E3%83%AC%E3%83%BC\">\u30ed\u30b1\u30c3\u30c8\u30ab\u30ec\u30fc</a></h3>\n<h3>\n\t\u30fb<a href=\"https://ja.localwiki.org/ksm/%E3%83%AD%E3%82%B1%E3%83%83%E3%83%88%E3%83%94%E3%83%B3%E3%83%90%E3%83%83%E3%82%B8\">\u30ed\u30b1\u30c3\u30c8\u30d4\u30f3\u30d0\u30c3\u30b8</a></h3>\n<h3>\n\t\u30fb<a href=\"https://ja.localwiki.org/ksm/%E3%83%AD%E3%82%B1%E3%83%83%E3%83%88%E5%B0%84%E5%A0%B4\">\u30ed\u30b1\u30c3\u30c8\u5c04\u5834</a></h3>\n", "region": "https://ja.localwiki.org/api/v4/regions/1431/", "history_comment": null, "history_date": "2021-09-16T02:14:04.275", "history_type": 1, "history_user": "https://ja.localwiki.org/api/v4/users/80902/", "history_user_ip": "128.22.63.11" }