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/1422967/
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/1422967/", "name": "30\u65e5 \u5e02\u4fdd\u5065\u30bb\u30f3\u30bf\u30fc\uff1aCOVID-19 \u5c0f\u7530\u539f\u5e02\u306e\u611f\u67d3\u8005\u6570\u306e\u63a8\u79fb 6\u670830\u65e5", "slug": "30\u65e5 \u5e02\u4fdd\u5065\u30bb\u30f3\u30bf\u30fccovid-19 \u5c0f\u7530\u539f\u5e02\u306e\u611f\u67d3\u8005\u6570\u306e\u63a8\u79fb 6\u670830\u65e5", "content": "<p>\n\t\u5c0f\u7530\u539f\u5e02\u306eCOVID-19\u611f\u67d3\u8005\u6570\u306e\u63a8\u79fb\uff082022\u5e746\u670830\u65e5\u307e\u3067\uff09</p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"https://ja.localwiki.org/odawara/30%E6%97%A5%20%E5%B8%82%E4%BF%9D%E5%81%A5%E3%82%BB%E3%83%B3%E3%82%BF%E3%83%BC%EF%BC%9ACOVID-19%20%E5%B0%8F%E7%94%B0%E5%8E%9F%E5%B8%82%E3%81%AE%E6%84%9F%E6%9F%93%E8%80%85%E6%95%B0%E3%81%AE%E6%8E%A8%E7%A7%BB%206%E6%9C%8830%E6%97%A5/_files/covid19-odawara-20220630.gif\" style=\"width: 300px; height: 280px;\"></span><span class=\"image_frame image_frame_border\"><img src=\"https://ja.localwiki.org/odawara/30%E6%97%A5%20%E5%B8%82%E4%BF%9D%E5%81%A5%E3%82%BB%E3%83%B3%E3%82%BF%E3%83%BC%EF%BC%9ACOVID-19%20%E5%B0%8F%E7%94%B0%E5%8E%9F%E5%B8%82%E3%81%AE%E6%84%9F%E6%9F%93%E8%80%85%E6%95%B0%E3%81%AE%E6%8E%A8%E7%A7%BB%206%E6%9C%8830%E6%97%A5/_files/covid19-odawara-gr-20220630.gif\" style=\"width: 300px; height: 279px;\"></span></p>\n<p>\n\t\u8cc7\u6599\uff1a\u5c0f\u7530\u539f\u5e02\u798f\u7949\u5065\u5eb7\u90e8\u5065\u5eb7\u3065\u304f\u308a\u8ab2\uff08\u4fdd\u5065\u30bb\u30f3\u30bf\u30fc\uff09 \u611f\u67d3\u75c7\u5bfe\u7b56\u4fc2\u300c<a href=\"https://www.city.odawara.kanagawa.jp/emergency/coronavirus/p29234.html\">\uff08\u65b0\u578b\u30b3\u30ed\u30ca\u30a6\u30a4\u30eb\u30b9\u611f\u67d3\u75c7\u95a2\u9023\u60c5\u5831\uff09\u611f\u67d3\u8005\u60c5\u5831 \u5c0f\u7530\u539f\u5e02\u306e\u611f\u67d3\u8005\u6570\u306e\u63a8\u79fb</a>\u300d\u5c0f\u7530\u539f\u5e02\u516c\u5f0f\u30b5\u30a4\u30c8\u30c8\u30c3\u30d7\u3001\u6700\u7d42\u66f4\u65b0\u65e5\uff1a2022\u5e746\u670830\u65e5\u3088\u308a</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2638/", "history_comment": null, "history_date": "2022-06-30T03:34:21.299", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110560/", "history_user_ip": "240f:7a:d2b9:1:759e:ea3:b2df:612a" }