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.


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/1408120/
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/1408120/", "name": "B&Bs", "slug": "b&bs", "content": "<h1>\n\tB&amp;Bs on the South Shore</h1>\n<h2>\n\tLunenburg</h2>\n<p>\n\t<a href=\"https://www.alicionbb.com/\">Alicion B&amp;B</a><br>\n\tProprieters:\u00a0 Christopher and Joe<br>\n\t66 McDonald Street, Lunenburg, Nova Scotia, B0J 2C0<br>\n\tTel 902.634.9358<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://www.ashleahouse.com/\">Ashlea House</a><br>\n\t42 Falkland Street, Lunenburg, Nova Scotia, BOJ 2CO<br>\n\tTel 902-634-7150<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://www.bluenoselodge.ca/\">Bluenose Lodge</a><br>\n\t10 Falkland Street, Lunenburg, NS, B0J 2C0, Canada<br>\n\tTel 902-634-8851<br>\n\[email protected]<br>\n\t<br>\n\t<a href=\"https://brigantineinn.com/\">Brigantine Inn</a><br>\n\t82 Montague Street, Lunenburg, Nova Scotia<br>\n\tTel: 1-800-360-1181<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://captainsbellbandb.com\">Captain's Bell B&amp;B</a><br>\n\t289 Pelham Street, Lunenburg, Nova Scotia B0J 2C0<br>\n\tTel 902-442-1655<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://lunenburgarmshotel.ca/\">Lunenburg Arms Hotel</a><br>\n\t94 Pelham Street, Lunenburg, NS, Canada<br>\n\tTel: +1 (902) 640-4040<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://www.lunenburginn.com/\">Lunenburg Inn</a><br>\n\tProprieters: Donna &amp; Deryl Rideout<br>\n\t26 Dufferin Street, Lunenburg, Nova Scotia\u00a0\u00a0 B0J 2C0<br>\n\tTel 902-634-3963<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://marinerking.com/\">The Mariner King Historic Inn</a><br>\n\t15 King Street, Lunenburg, Nova Scotia, Canada, B0J 2C0<br>\n\tTel: 902-634-8509<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://www.pelhamhouse.ca/\">Pelham House BnB</a><br>\n\tProprieters: Michael &amp; David<br>\n\t224 Pelham Street, Lunenburg, Nova Scotia, B0J 2C0<br>\n\tEmail: [email protected]<br>\n\tTel: 902-634-7113</p>\n<p>\n\t<a href=\"https://www.rumrunnerinn.com/\">Rum Runner Inn</a><br>\n\t66 Montague Street, Lunenburg, NS<br>\n\t1-902-634-9200<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://www.saltshakerdeli.com/\">Salt Shaker Deli and Inn</a><br>\n\t124 Montague Street, Lunenburg, NS, B0J 2C0<br>\n\tTel (902) 640-3434<br>\n\t<br>\n\t<a href=\"https://www.sailinn.ca/\">Sail Inn</a><br>\n\t99 Montague Street, Lunenburg, Nova Scotia<br>\n\tTel 902-579-7601<br>\n\[email protected]</p>\n<p>\n\t<a href=\"https://smugglerscoveinn.ca/\">Smuggler's Cove Inn &amp; Suites</a><br>\n\t139 Montague Street,Lunenburg, Nova Scotia B0J 2C0<br>\n\tTel:(902) 634-7500<br>\n\[email protected]</p>\n", "region": "https://zh.localwiki.org/api/v4/regions/161/", "history_comment": "list of B&Bs in Lunenburg", "history_date": "2021-12-31T12:22:45.537", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/5965/", "history_user_ip": "" }