/elpais/articles

POST /api/elpais/articles

Price: 10 credits

Get one El Pais article by its URL: headline, standfirst, full body text, publication and update times, byline and authors with their biography, dateline, section breadcrumb, topic tags, keywords, lead image with caption and credit, in-body images, embedded video, audio and social posts, related links and the subscription tier El Pais assigns to the piece. Covers the Spanish site, the separate English edition and the paper archive back to 1976.

How to use it

Fetch one El Pais article by its full URL. Both URL shapes work: the modern '/{section}/{YYYY-MM-DD}/{slug}.html' and the paper-archive '/diario/{YYYY}/{MM}/{DD}/{section}/{id}_{id}.html'. The path form other El Pais endpoints return as id is accepted as well; an 'en/' prefix on it selects english.elpais.com and a 'cd/' prefix the business daily Cinco Dias, whose articles appear on El Pais section fronts. Returns article_title, description, text (the complete body), published_at and updated_at (unix), language (es or en), publication (el-pais, el-pais-english or cinco-dias), section, sections (breadcrumb), kicker, tags and keywords, authors with alias, bio and portrait, dateline, image with caption and credit, images, videos, audio_url, embeds (quoted social posts and players) and related_articles, whose placement says whether the link sat in the body or in the footer box. is_premium marks a subscriber-only piece and is_metered marks one behind the metered wall; content_restriction carries El Pais's own raw tier string. text is returned in full in every case, walled pieces included, because El Pais applies the wall in the browser rather than server-side. is_premium, is_metered, content_restriction, content_type and content_id come from a config block the English edition does not publish, so on english.elpais.com they are always false or empty. Photo galleries and video pages carry no body prose, so text is empty on them while the images and videos are returned. There is no comment count: El Pais loads comments from Disqus after the page renders.

Parameters

Request body

Response

Errors

Response headers