GET

Fetch one or more Encyclopedia Categories.

Categories are in a tree structure and so each one has zero or more parents and children.

Each Category contains zero or more Topics.

Add the page to get further pages of results, e.g.:

  • categories?page=2

Fetch more data about a single Category using its slug, e.g.:

  • categories/london
GET /api/v1/categories/seafood
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Cookie, Accept

{
  "slug": "seafood",
  "title": "Seafood/fish",
  "topicCount": 25,
  "depth": 3,
  "parents": [
    "https://www.pepysdiary.com/api/v1/categories/fooddrink",
    "https://www.pepysdiary.com/api/v1/categories/food"
  ],
  "children": [],
  "topics": [
    "https://www.pepysdiary.com/api/v1/topics/12574",
    "https://www.pepysdiary.com/api/v1/topics/12575",
    "https://www.pepysdiary.com/api/v1/topics/13755",
    "https://www.pepysdiary.com/api/v1/topics/374",
    "https://www.pepysdiary.com/api/v1/topics/373",
    "https://www.pepysdiary.com/api/v1/topics/375",
    "https://www.pepysdiary.com/api/v1/topics/376",
    "https://www.pepysdiary.com/api/v1/topics/448",
    "https://www.pepysdiary.com/api/v1/topics/4865",
    "https://www.pepysdiary.com/api/v1/topics/4899",
    "https://www.pepysdiary.com/api/v1/topics/1332",
    "https://www.pepysdiary.com/api/v1/topics/4113",
    "https://www.pepysdiary.com/api/v1/topics/1150",
    "https://www.pepysdiary.com/api/v1/topics/3163",
    "https://www.pepysdiary.com/api/v1/topics/3162",
    "https://www.pepysdiary.com/api/v1/topics/4009",
    "https://www.pepysdiary.com/api/v1/topics/4006",
    "https://www.pepysdiary.com/api/v1/topics/4005",
    "https://www.pepysdiary.com/api/v1/topics/4011",
    "https://www.pepysdiary.com/api/v1/topics/4008",
    "https://www.pepysdiary.com/api/v1/topics/6129",
    "https://www.pepysdiary.com/api/v1/topics/6541",
    "https://www.pepysdiary.com/api/v1/topics/9946",
    "https://www.pepysdiary.com/api/v1/topics/8960",
    "https://www.pepysdiary.com/api/v1/topics/2671"
  ],
  "apiURL": "https://www.pepysdiary.com/api/v1/categories/seafood",
  "webURL": "https://www.pepysdiary.com/encyclopedia/fooddrink/food/seafood/"
}