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/1408986/
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/1408986/", "name": "Front Page", "slug": "front page", "content": "<h1>\n\t\u672c\u5dde\u6700\u5357\u7aef\u306e\u753a\u3067\u3042\u308b\u4e32\u672c\u753a\u306e LocalWiki \u00a0\u3078\u3088\u3046\u3053\u305d\uff01</h1>\n<p>\n\t\u4e32\u672c\u753a\u306e\u9b45\u529b\u3042\u3075\u308c\u308b\u60c5\u5831\u3092\u3001\u3069\u3093\u3069\u3093\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\uff01\u8ab0\u3067\u3082\u7de8\u96c6\u53ef\u80fd\u306a\u306e\u3067\u3001\u8ffd\u8a18\u3059\u308b\u60c5\u5831\u304c\u3042\u308c\u3070\u3069\u3093\u3069\u3093\u66f8\u304d\u8fbc\u3093\u3067\u4e0b\u3055\u3044\u3002</p>\n<p>\n\t\u00a0</p>\n<h2>\n\t<strong><a href=\"https://ja.localwiki.org/ksm/cgs%E9%83%A8%E3%81%8A%E3%81%99%E3%81%99%E3%82%81%E3%81%AE%E8%A6%B3%E5%85%89%E3%82%B9%E3%83%9B%E3%83%83%E3%83%88\">\u89b3\u5149\u5730</a>\u3000\u3000\u3000\u3000\u3000</strong><strong><a href=\"https://ja.localwiki.org/ksm/cgs%E3%81%8A%E3%81%99%E3%81%99%E3%82%81%E3%81%AE%E9%A3%B2%E9%A3%9F%E5%BA%97\">\u98f2\u98df\u5e97</a>\u3000\u3000\u3000\u3000\u3000</strong><strong><a href=\"https://ja.localwiki.org/ksm/cgs%E9%83%A8%E3%81%8A%E3%81%99%E3%81%99%E3%82%81%E3%81%AE%E5%AE%BF%E6%B3%8A%E6%96%BD%E8%A8%AD\">\u5bbf\u6cca\u65bd\u8a2d</a>\u3000\u3000\u3000\u3000</strong><a href=\"https://ja.localwiki.org/ksm/cgs%E9%83%A8%E3%81%8A%E3%81%99%E3%81%99%E3%82%81%E3%81%AE%E5%9C%9F%E7%94%A3\"><strong>\u571f\u7523</strong></a></h2>\n<h2>\n\t\u00a0</h2>\n<h2>\n\t<strong><a href=\"https://ja.localwiki.org/ksm/%E5%85%AC%E5%85%B1%E6%96%BD%E8%A8%AD\">\u516c\u5171\u65bd\u8a2d</a>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <a href=\"%E9%89%84%E9%81%93%E9%96%A2%E4%BF%82%EF%BC%88%E5%8F%A4%E5%BA%A7%E5%B7%9D%E7%94%BA%E3%82%82%E5%90%AB%E3%82%80%EF%BC%89\">\u9244\u9053\u95a2\u4fc2\uff08\u53e4\u5ea7\u5ddd\u753a\u3082\u542b\u3080\uff09</a></strong></h2>\n<p>\n\t\u00a0</p>\n<h2>\n\t<strong>\u25ce\u4e32\u672c\u753a\u5185\u306e\u516c\u5712</strong></h2>\n<p>\n\t\u00a0</p>\n<h2>\n\t<a href=\"https://ja.localwiki.org/ksm/%E3%83%AD%E3%82%B1%E3%83%83%E3%83%88%E3%81%AB%E9%96%A2%E3%81%97%E3%81%A6\">\u2605\u30ed\u30b1\u30c3\u30c8\u95a2\u4fc2</a></h2>\n<p>\n\t<a style=\"\" href=\"https://ja.localwiki.org/ksm/%E7%BC%B6%E3%83%90%E3%83%83%E3%82%B8/_edit\"><strong>\u200b</strong></a></p>\n", "region": "https://zh.localwiki.org/api/v4/regions/1431/", "history_comment": null, "history_date": "2022-01-17T00:40:48.072", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/80902/", "history_user_ip": "128.22.63.11" }