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/1419613/
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/1419613/", "name": "\u6176\u5929\u5bae", "slug": "\u6176\u5929\u5bae", "content": "<p>\n\t\u4e3b\u795e\uff1a<span style=\"\">\u7384\u5929\u4e0a\u5e1d</span></p>\n<p>\n\t\u5efa\u7acb\uff1a1972\u5e74</p>\n<p>\n\t\u5730\u5740\uff1a<span style=\"\">\u82b1\u84ee\u7e23\u5409\u5b89\u9109\u6176\u8c50\u67513\u6bb5390\u865f</span></p>\n<p>\n\t\u6176\u5178\uff1a</p>\n<ol>\n\t<li>\n\t\t\u8fb2\u66c6\u4e09\u6708\u4e09\u65e5\uff1a\u7384\u5929\u4e0a\u5e1d\u8a95\u8fb0\u65e5</li>\n\t<li>\n\t\t\u8fb2\u66c6\u4e03\u6708\u4e8c\u5341\u4e5d\u65e5\uff1a\u666e\u6e21\u796d\u5178</li>\n</ol>\n<hr>\n<p>\n\t\u3000\u3000\u524d\u8eab\u662f\u65e5\u6cbb\u6642\u671f\u7684\u571f\u5730\u516c\u5edf\uff0c\u6240\u4f9b\u5949\u7684\u7384\u5929\u4e0a\u5e1d\u795e\u50cf\uff0c\u5206\u9748\u81ea\u5357\u6295\u677e\u67cf\u5751\u53d7\u5929\u5bae\uff0c\u539f\u5728\u6176\u5929\u5bae\u8463\u4e8b\u76e7\u4e01\u8ca1\u7684\u7236\u89aa\u5bb6\u4e2d\u5949\u7940\uff0c\u5f8c\u7531\u6751\u6c11\u8f2a\u6d41\u8acb\u56de\u5bb6\u5949\u7940\uff0c\u5f8c\u4f86\u4fe1\u5f92\u65e5\u6f38\u589e\u591a\uff0c\u4fbf\u7531\u6751\u6c11\u6578\u4f4d\u4ee5\u535c\u7210\u4e3b\u65b9\u5f0f\uff0c\u8f2a\u6d41\u8acb\u56de\u5bb6\u5949\u7940\u3002\u6c11\u570b61\u5e74\u8acb\u793a\u571f\u5730\u516c\u5728\u73fe\u5740\u5efa\u5edf<span style=\"\">\u4e26\u8acb\u798f\u5fb7\u6b63\u795e\u93ae\u5b88\u5167\u6bbf\u6b63\u524d\u4e2d\u592e\u4f4d\u7f6e</span>\uff0c\u70ba\u6176\u8c50\u6751\u6751\u6c11\u53ca\u9644\u8fd1\u6751\u91cc\u5c45\u6c11\u4e4b\u4fe1\u4ef0\u4e2d\u5fc3\uff0c<span style=\"\">\u4fe1\u5f92\u4e3b\u8981\u96c6\u4e2d\u65bc\u6176\u8c50\u6751\uff0c\u4ee5\u6cb3\u6d1b\u4eba\u3001\u5ba2\u5bb6\u4eba\u70ba\u591a\uff0c\u4e5f\u6709\u5c11\u6578\u5916\u7701\u4eba\u8207\u539f\u4f4f\u6c11\uff0c\u5c6c\u65bc\u5730\u5340\u6027\u7684\u5edf\u5b87\u3002</span></p>\n<p>\n\t\u3000\u3000\u8fb2\u66c6\u4e09\u6708\u4e09\u65e5\u7384\u5929\u4e0a\u5e1d\u8a95\u8fb0\uff0c\u662f\u6176\u5929\u5bae\u6700\u91cd\u8981\u7684\u796d\u5178\uff0c\u9664\u4e86\u4fe1\u5f92\u796d\u62dc\u3001\u5927\u6232\u795d\u58fd\u5916\uff0c\u4e26\u6709\u6176\u8c50\u6751\u8207\u5409\u5b89\u6751\u4e8c\u6751\u4e4b\u7e5e\u5883\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u4e8c\u6708\u4fe1\u5f92\u5011\u6703\u96c6\u9ad4\u5305\u79df\u904a\u89bd\u8eca\uff0c\u966a\u8457\u4e3b\u7940\u7384\u5929\u4e0a\u5e1d\u795e\u50cf\u56de\u5a18\u5bb6\u81f3\u5357\u6295\u6c11\u9593\u9109\u677e\u67cf\u5751\u53d7\u5929\u5bae\u9032\u9999\u3002\u8fb2\u66c6\u4e03\u6708\u4e8c\u5341\u4e5d\u65e5\u666e\u6e21\u796d\u5178\uff0c\u516b\u6708\u79ae\u6597\u6cd5\u6703\u3001\u5341\u6708\u8b1d\u5e73\u5b89\u53ca\u6625\u7bc0\u5b89\u592a\u6b72\u548c\u6b72\u5e73\u5b89\u3002</p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/%E6%85%B6%E5%A4%A9%E5%AE%AE%202.jpg\" style=\"width: 300px; height: 200px;\"></span></p>\n<p>\n\t\u00a0</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/2645/", "history_comment": "\u6176\u5929\u5bae", "history_date": "2022-05-18T06:34:40.746", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/112454/", "history_user_ip": "2001:b400:e284:a66f:e1ec:a45a:7225:7424" }