Page Instance

API endpoint that allows pages to be viewed and edited.

Tags

Tags can be found in the tags attribute. You can update just the tags by issuing a PATCH here with just the tags attribute present, e.g.:

{"tags": ["park", "fun"]}

To update a page and not change the tags, simply exclude the tags field from your update.

To delete all tags from the page, issue a request with tags set to [].

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.
  • tags -- Filter by tag. E.g. tags=park for all pages tagged 'park', or tags=park,wifi for all pages tagged 'park' and also tagged 'wifi'.

Ordering

You can order the result set by providing the ordering query parameter with the value of one of:

  • slug

You can reverse ordering by using the - sign, e.g. -slug.

GET /api/v4/pages/952/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, PUT, DELETE, HEAD, OPTIONS, PATCH
{ "url": "https://ja.localwiki.org/api/v4/pages/952/", "name": "Geocaching", "slug": "geocaching", "content": "<h2>What is Geocaching?</h2>\n<p>\n<a href=\"http://en.wikipedia.org/wiki/Geocaching\">Wikipedia:</a> Geocaching is an outdoor sport that involves the use of a Global Positioning System (\"GPS\") receiver to find a \"geocache\" (or \"cache\") placed anywhere in the world. A typical cache is a small, waterproof container containing a logbook and \"treasure\". Geocaching is a unique take on a traditional Easter-egg hunt in that it uses two recent technologies, the GPS and the Internet. \n</p>\n\n <ul><li>\n <a href=\"http://www.geocaching.com\">Geocaching - The Official Global GPS Cache Hunt Site</a> \n</li>\n\n </ul><p>\nIf you don't feel like making the financial investment in a GPS, you can give <a href=\"LetterBoxing\">LetterBoxing</a> a try (or just try to find them without a GPS; one person has found over 800 without a GPS at all). \n</p>\n<h2>Geocaching in Conway</h2>\n<p>\nConway has lots of geocaches spread all throughout the area. You probably walk by a couple every day not even knowing it. Please don't ruin the fun of the \"sport\" by revealing the location or details of caches you find. It would also be taboo to map them. Have Fun! \n</p>\n<p>\n<strong>(<a href=\"http://www.geocaching.com/seek/nearest.aspx?lat=35.0463999&amp;lng=-92.49009430000001&amp;dist=100\">http://www.geocaching.com/seek/nearest.aspx?lat=35.0463999&amp;lng=-92.49009430000001&amp;dist=100</a>) Swell list</strong></p><strong><em>\n<h2>Other Similar Activities</h2>\n<h3>Waymarking</h3>\n<p>\nA sister to geocaching, waymarking is about finding and visiting interesting locations. <a href=\"http://www.waymarking.com/\">http://www.waymarking.com/</a> \n</p>\n<h3>Geohashing</h3>\n<p>\n<a href=\"Geohashing\">Geohashing</a> is a way of generating a new random point each day at which people may congregate. \n</p>\n<h2>Local Groups</h2>\n</em></strong>", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }