/ansa/articles

POST /api/ansa/articles

Price: 5 credits

Get one ANSA article by its URL: headline, standfirst, full body text, publication and last update times, dateline city, byline, section breadcrumb, topic and named-entity tags, lead image with its caption, and media_url — the mp4 file on video items, the episode's player page on podcasts.

How to use it

Fetch one ANSA item by its full page URL, which ends in the content id — a uuid on modern items, a bare number on the 2014 archive — and .html. That id on its own does not resolve, nor does any other path carrying it, and the path is case sensitive, so pass the URL exactly as ANSA published it; web_url from any of the three listing endpoints is already in that form. content_type says what the page is and what to expect: an article has body text, a video has none and puts the mp4 in media_url, a podcast has none either — its page carries the standfirst and nothing more — and puts the episode's player page, an HTML embed rather than an audio file, in media_url, and a gallery may return neither text nor a slide list. All four return the lead image. published_at and updated_at are separate instants and often differ — read updated_at for the wire's latest revision, and note that it is the only one the listing endpoints expose. tags mixes subject labels, people and organisations in one list without marking which is which, and each of them is accepted by ansa/tags/articles; ANSA also indexes place tags, which this list rarely carries. dateline is the wire's city of origin and is frequently absent.

Parameters

Request body

Response

Errors

Response headers