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/1403774/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, HEAD, OPTIONS
{ "url": "https://ja.localwiki.org/api/v4/pages_history/1403774/", "name": "Green Book", "slug": "green book", "content": "<p>\n\t<span class=\"image_frame image_frame_border image_right\"><img src=\"_files/1940%20cover.jpg\" style=\"width: 259px; height: 350px;\"><span style=\"width: 259px;\" class=\"image_caption\">1940 edition <sup>2</sup></span></span></p>\n<p>\n\tThe <strong>Green Book</strong> (<strong>The Negro Motorist Green Book</strong>) was a guide for Black travelers across the U.S. and later other parts of North America listing hotels and other businesses that were known to be safe for Blacks. It was created and published beginning in 1936 by New York postman Victor Hugo Green. Green died in 1960, and his wife Alma Green took over publication.\u00a0<sup>1</sup></p>\n<p>\n\tFrom the introduction of the 1948 book:</p>\n<p class=\"indent1\">\n\t<em>With the introduction of this travel guide in 1936, it has been our idea to give the Negro traveler information that will keep him from running into difficulties, embarrassments and to make his trips more enjoyable.</em></p>\n<p class=\"indent1\">\n\t<em>It will be a great day for us to suspend this publication for then we can go wherever we please, and without embarrassment. But until that time comes we shall continue to publish this information for your convenience each year.</em> <sup>2</sup></p>\n<p>\n\tThey later published railroad, airline, and international editions.</p>\n<p>\n\t<a href=\"tags%2Fgreen%20book\" class=\"plugin includetag includepage_showtitle\">List of pages tagged \"green book\"</a></p>\n<h2>\n\tLinks and References</h2>\n<ol>\n\t<li>\n\t\t<a href=\"https://en.wikipedia.org/wiki/The_Negro_Motorist_Green_Book\">The Negro Motorist Green Book</a> on Wikipedia</li>\n\t<li>\n\t\t<a href=\"https://digitalcollections.nypl.org/collections/the-green-book#/?tab=about\">Green Book</a> New York Public Library Digital Collections</li>\n</ol>\n", "region": "https://ja.localwiki.org/api/v4/regions/340/", "history_comment": null, "history_date": "2021-10-23T18:57:43.847", "history_type": 0, "history_user": "https://ja.localwiki.org/api/v4/users/3242/", "history_user_ip": "2600:1702:2770:bc20:7c79:c5ab:526:db58" }