/politico/articles/search

POST /api/politico/articles/search

Price: 20 credits

Search the POLITICO archive across every edition — Europe, UK, France, Germany and the cross-published US desk. Combine a full-text query with policy section, tag, author and post-type filters and a publication date range. Each match carries the headline, an opening excerpt, the publication timestamp, the credited authors, the policy sections and the tag list.

How to use it

Search POLITICO stories and newsletter issues. count says how many to return; every other field is a filter. keyword is the full-text query, sections takes policy section slugs, tag_ids and author_ids take the identifiers published by politico/facets, post_types restricts to article, newsletter, sponsored-content or pro-free, and published_after/published_before take unix timestamps that line up with published_at. Without a keyword the newest stories come first, and with one the closest text matches come first; to walk back through the archive move published_before earlier. Each item has id, article_title, web_url, excerpt, published_at, post_types, image, authors[], sections[] and tags[] — pass id to politico/articles for the full body, except where web_url ends in a #{id} anchor, which marks a live-blog entry and must be passed as the whole web_url. At most 1000 stories are reachable for one set of filters, however many match; to go deeper move published_before earlier and search again.

Parameters

Request body

Response

Errors

Response headers