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/1408540/
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/1408540/", "name": "An Assist From Above", "slug": "an assist from above", "content": "<p>\n\tAn Assist From Above is a Christian counseling ministry based in Champaign, IL. Bob &amp; Lynn Hassel offer Bible-based counseling in a variety of areas to help people with their marriages, addictions, depression, anxiety, finances, or other life issues. Meetings can be held in person in the Champaign-Urbana area or remotely via telephone or video call.</p>\n<p>\n\t<span>Assist from Above Ministries provides hope through Jesus with a twofold purpose; first by sharing the good news of the gospel so that all people will realize they are sinners separated from God by their sin and in need of a Savior and secondly, by giving hope through biblical counseling to Christians who feel overwhelmed and hopeless because of the trials and difficulties in life.</span></p>\n<ul>\n\t<li>\n\t\tWebsite: <a href=\"https://anassistfromabove.com/\">https://anassistfromabove.com/</a></li>\n\t<li>\n\t\tAddress: 611 Corey Lane, Champaign, Illinois 61822</li>\n\t<li>\n\t\tOffice Phone: <a class=\"x-el x-el-a c1-1z c1-20 c1-21 c1-22 c1-23 c1-4i c1-24 c1-b c1-3u c1-c c1-2c c1-3o c1-2e c1-d c1-e c1-f c1-g\">217-367-9918</a></li>\n\t<li>\n\t\tMobile Phone: <a class=\"x-el x-el-a c1-1z c1-20 c1-21 c1-22 c1-23 c1-4i c1-24 c1-b c1-3u c1-c c1-2c c1-3o c1-2e c1-d c1-e c1-f c1-g\">217-419-9590</a></li>\n\t<li>\n\t\tEmail: <a href=\"mailto:[email protected]\" class=\"x-el x-el-a c1-1z c1-20 c1-21 c1-22 c1-23 c1-4i c1-24 c1-b c1-3u c1-c c1-2c c1-3o c1-2e c1-d c1-e c1-f c1-g\">[email protected]</a></li>\n</ul>\n", "region": "https://zh.localwiki.org/api/v4/regions/164/", "history_comment": "Created page", "history_date": "2022-01-10T16:37:12.840", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/35138/", "history_user_ip": "74.84.115.138" }