Skip to content

JSON API

CEO's front end system provides a more simplified, unauthenticated API for fetching basic data.

Appending .json to just about any URL will return JSON encoded data:

GET /section/{slug}.json

Return JSON object with the following keys:

  • section - Section object
  • articles - Article list
  • pagination - Pagination object

GET /article/{year}/{month}/{slug}.json

Return JSON object with the following keys:

  • article - Article object

GET /staff/{slug}.json

Return JSON object with the following keys:

  • author - Author object
  • articles - Article list
  • media - Media list
  • posts - Blog post list

GET /search.json

Valid query parameters:

Parameter Label Values Required
a Advanced [0,1] Yes
s Subject Search query Yes
ti Title Any string No
ty Type [article,media,page,post] No
tg Tag Any string No
au Author Any string No
o Order [title,date] No

Example query:

GET /search.json?a=1&s=Tupperware&au=Test+Testerson

Return JSON object with the following keys:

  • items - Unhydrated search result objects, could be of any type
  • total - Number of objects found in total
  • pagination - Pagination object
  • searchParams - The original search parameters