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/1422941/
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/1422941/", "name": "\u7afa\u571f\u5bfa\u5893\u5730\u6539\u4fee\u7891", "slug": "\u7afa\u571f\u5bfa\u5893\u5730\u6539\u4fee\u7891", "content": "<p>\n\t<span class=\"image_frame image_frame_border image_right\"><img src=\"_files/tikudoji-cemetery-improvement-memorial.JPG\" style=\"width: 225px; height: 300px;\"><span style=\"width: 225px;\" class=\"image_caption\">\u7afa\u571f\u5bfa \u5893\u5730\u6539\u4fee\u7891</span></span><strong>\u7afa\u571f\u5bfa\u5893\u5730\u6539\u4fee\u7891</strong>\uff08\u3061\u304f\u3069\u3058\u307c\u3061\u304b\u3044\u3057\u3085\u3046\u3072\uff09\u306f\u3001<a href=\"%E4%B8%8A%E6%9B%BD%E6%88%91\">\u4e0a\u66fd\u6211</a>\u306e<a href=\"%E7%AB%BA%E5%9C%9F%E5%AF%BA\">\u7afa\u571f\u5bfa</a>\u306e\u5893\u5730\u5165\u308a\u53e3\u306b\u5efa\u3066\u3089\u308c\u3066\u3044\u308b\u5893\u5730\u6539\u4fee\u5de5\u4e8b\u306e\u8a18\u5ff5\u7891\u3002<sup>(1)</sup></p>\n<p>\n\t\u7891\u6587\u306b\u3088\u308b\u3068\u3001\u540c\u5bfa\u306e\u5893\u5730\u306f1923\u5e74\uff08\u5927\u6b6312\uff099\u67081\u65e5\u306e<a href=\"%E9%96%A2%E6%9D%B1%E5%A4%A7%E9%9C%87%E7%81%BD\">\u95a2\u6771\u5927\u9707\u707d</a>\u306b\u3088\u3063\u3066\u5168\u9762\u7684\u306b\u5d29\u6f2c\u3057\u305f\u305f\u3081\u3001\u5883\u5185\u306b\u5893\u5730\u3092\u65b0\u8a2d\u3057\u305f\u304c\u3001\u96d1\u7136\u3068\u3057\u305f\u307e\u307e\u5e74\u6708\u304c\u7d4c\u904e\u3057\u305f\u305f\u3081\u3001\u6a80\u4fe1\u5f92\u304c\u5893\u5730\u306e\u533a\u753b\u6574\u7406\u3092\u8a08\u753b\u3057\u30011969\u5e74\uff08\u662d\u548c44\uff092\u6708\u306b\u8d77\u5de5\u3001\u540c\u5e748\u6708\u306b\u7ae3\u5de5\u3057\u305f<sup>(1)</sup>\u3002</p>\n<p>\n\t\u7dcf\u5de5\u4e8b\u8cbb100\u4e07\u5186\u306f\u5bc4\u9032\u306b\u3088\u308a\u8cc4\u308f\u308c\u305f\u3002\u6a80\u4fe1\u5f92400\u4f59\u4eba\u304c\u6276\u5f79\u306e\u52e4\u52b4\u5949\u4ed5\u3092\u3057\u305f\u3002<sup>(1)</sup></p>\n<h2>\n\t\u53c2\u8003\u8cc7\u6599</h2>\n<ol>\n\t<li>\n\t\t\u7afa\u571f\u5bfa\u5165\u308a\u53e3\u306e1969\u5e74\uff08\u662d\u548c44\uff098\u670815\u65e5\u4ed8 \u5927\u4ed9\u5c71\u7afa\u571f\u5bfa18\u4e16 \u6e56\u6708\u552f\u4fe1\u53df\uff08\u8a8c\uff09\u300c\u5893\u5730\u6539\u4fee\u7891\u300d\u306b\u3088\u308b\u30022022\u5e74\u8abf\u67fb\u3002</li>\n</ol>\n", "region": "https://zh.localwiki.org/api/v4/regions/2638/", "history_comment": null, "history_date": "2022-06-29T20:14:03.108", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/110560/", "history_user_ip": "240f:7a:d2b9:1:2024:4992:6301:3862" }