/elpais/articles/search

POST /api/elpais/articles/search

Price: 5 credits

Search El Pais articles by keyword across the whole archive. Returns listing entries with headline, standfirst, publication time, byline and linked authors, kicker, thumbnail, the body word count El Pais publishes and its subscription badge.

How to use it

Keyword search over El Pais. keyword is the only filter the site offers: there is no date range, no section facet and no sort option. Set edition to en to search english.elpais.com instead of the Spanish site; the two editions have separate newsrooms and share no articles. Each entry carries id, article_title, description, web_url, published_at, language, publication, content_type, section, kicker, byline, authors, dateline, has_subscription_badge, has_video, word_count and image. word_count is El Pais's own count of the body words and is absent on the older archive templates; has_subscription_badge is the subscription icon El Pais prints on modern Spanish cards, never on English or archive cards, so false there means unmarked rather than open and elpais/articles holds the authoritative tier. Feed id or web_url into elpais/articles for the body. Results are ordered by relevance mixed with recency, not strictly by date. No result total is reported: the figure El Pais prints above its results is a match count it will not fully hand out, measured 5431 claimed against 3624 articles actually reachable for 'gasoducto medgaz', so ask for the count you want and read how many came back. A keyword nothing matches is not an error: the call returns an empty list.

Parameters

Request body

Response

Errors

Response headers