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/1423014/
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/1423014/", "name": "Pay Less Drug Market Centre", "slug": "pay less drug market centre", "content": "<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p01%20-%20exterior.jpg\" style=\"width: 350px; height: 212px;\"><span style=\"width: 350px;\" class=\"image_caption\">1939 <sup>1</sup></span></span></p>\n<p>\n\tThe <strong>Pay Less Drug Market Centre</strong> was a large drugstore and marketplace at 19th and Telegraph, opening in 1939. It included a grocery, lunch counter, and a <a href=\"MacFarlane's%20Candy%20Company\">MacFarlane's Candy</a> shop. The building took almost half the block, and much of the rest was set aside for free parking.</p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p18%20-%20logo.jpg\" style=\"width: 600px; height: 182px;\"></span></p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/00727_01_1951-9-0064%20-%20market%20centre.jpg\" style=\"width: 600px; height: 147px;\"><span style=\"width: 600px;\" class=\"image_caption\">1951 Sanborn excerpt</span></span></p>\n<h3>\n\tPhotos</h3>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p05%20-%20electrical.jpg\" style=\"width: 389px; height: 300px;\"><span style=\"width: 389px;\" class=\"image_caption\">electrical department</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p07%20-%20liquor.jpg\" style=\"width: 390px; height: 300px;\"><span style=\"width: 390px;\" class=\"image_caption\">liquor department</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p08%20-%20drugs.jpg\" style=\"width: 417px; height: 300px;\"><span style=\"width: 417px;\" class=\"image_caption\">pharmaceuticals</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p09%20-%20drugs.jpg\" style=\"width: 344px; height: 300px;\"><span style=\"width: 344px;\" class=\"image_caption\">prescriptions</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p10-11%20-%20overview.jpg\" style=\"width: 480px; height: 300px;\"></span><br>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p13%20-%20panorama.jpg\" style=\"width: 556px; height: 300px;\"></span><span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p16%20-%20refrigerators.jpg\" style=\"width: 300px; height: 295px;\"><span style=\"width: 300px;\" class=\"image_caption\">refrigerators</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p17%20-%20night.jpg\" style=\"width: 462px; height: 300px;\"><span style=\"width: 462px;\" class=\"image_caption\">night shot</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/Oakland_Tribune_Tue__May_16__1939%20-%20p20%20-%20macfarlanes.jpg\" style=\"width: 374px; height: 300px;\"><span style=\"width: 374px;\" class=\"image_caption\">MacFarlane's Candy</span></span></p>\n<h2>\n\tLinks and References</h2>\n<ol>\n\t<li>\n\t\t<a href=\"https://www.newspapers.com/clip/104717779/new-payless-store-market-center-p1/\">Pay Less Market Special Edition</a> <em>Oakland Tribune</em> May 16, 1939</li>\n</ol>\n", "region": "https://zh.localwiki.org/api/v4/regions/340/", "history_comment": "saving", "history_date": "2022-06-30T17:54:47.365", "history_type": 0, "history_user": "https://zh.localwiki.org/api/v4/users/3242/", "history_user_ip": "2600:1702:2770:bc20:8516:5cb2:1573:e6fb" }