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 objectarticles
- Article listpagination
- 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 objectarticles
- Article listmedia
- Media listposts
- 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 typetotal
- Number of objects found in totalpagination
- Pagination objectsearchParams
- The original search parameters