Article and section API

The FLOW Article API is used to retrieve the data for a given article or layout page e.g. sections, topics, authors.

Endpoint

/api/{publicationDomain}

Where publicationDomain is the domain e.g. example.com

Arguments

ArgumentsDescriptionExample
pathPath of the page/
pathPath of the page/news
pathPath of the page/news/article-headline-12345.html
nidthe ID of an article/api/independent.co.uk?nid=12345

Example API calls based on examples above:

/api/independent.co.uk?path=/
/api/independent.co.uk?path=/news
/api/independent.co.uk?path=/news/article-headline-12345.html
/api/independent.co.uk?nid=12345

Responses

The response will be on of the following types/status:

  • redirect
  • 404 (status)
  • article
  • section

Redirect response

{
  "type": "redirect",
  "destination": "/climate-change/news/cop26-climate-actionaid-johnson-sharma-b1950046.html"
}

404 response

{
  "status": 404
}