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/1408641/
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/1408641/", "name": "Odyssey Psychotherapy", "slug": "odyssey psychotherapy", "content": "<p>\n\t<strong>Odyssey Psychotherapy and Counseling</strong></p>\n<table style=\"width: 496px;\">\n\t<tbody>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"width: 484px;\">\n\t\t\t\t\u00a0</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"width: 484px; background-color: rgb(232, 236, 239);\">\n\t\t\t\t<strong>Location</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"width: 484px;\">\n\t\t\t\t<p>\n\t\t\t\t\t<a href=\"https://www.google.com/maps/place/Odyssey+Psychotherapy/@38.546014,-121.7478007,17z/data=!3m1!4b1!4m5!3m4!1s0x8084d0e4a4dabe1b:0x2935f7b195b136f!8m2!3d38.546014!4d-121.745612\">260 Russell Blvd, Ste D-1, Davis, CA 95616</a></p>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"width: 484px;\">\n\t\t\t\t\u00a0</td>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"width: 484px; background-color: rgb(232, 236, 239);\">\n\t\t\t\t<strong>Established</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"width: 484px;\">\n\t\t\t\t2017</td>\n\t\t</tr>\n\t\t<tr>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"width: 484px;\">\n\t\t\t\t\u00a0</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\t<a href=\"%5B%5BInclude(Departed%20Business)%5D%5D\" class=\"plugin includepage\">Include page [(Departed Business)]</a></p>\n", "region": "https://zh.localwiki.org/api/v4/regions/62/", "history_comment": null, "history_date": "2022-01-11T11:38:25.131", "history_type": 1, "history_user": "https://zh.localwiki.org/api/v4/users/10198/", "history_user_ip": "67.181.130.108" }