/ansa/articles/search

POST /api/ansa/articles/search

Price: 1 credit

Search the ANSA wire archive by keyword, optionally narrowed to one desk, regional wire or international edition, to an editorial genre, to an index tag or to a recent window. Returns listing entries with headline, a matching text excerpt, section label, last update time and the lead image.

How to use it

Keyword search over the whole ANSA archive, which reaches back to at least 2014 and holds the national wire, the Italian regional wires, the verticals and the ANSAMed, Europa-UE and NuovaEuropa editions in one index. A keyword that matches nothing still returns a few dozen loosely related items rather than an empty list, so judge relevance from the rows, not from the fact that rows came back. sort defaults to date, which orders by the item's last update, not by its first publication; switch to relevance when the query is a topic rather than a time window. period counts whole calendar days, so last_week reaches back to the start of the day seven days ago. Filters combine. Each row is a listing card, not the article: snippet is an excerpt around the keyword match and is not the standfirst, and there is no body text or byline here — feed web_url into ansa/articles for those.

Parameters

Request body

Response

Errors

Response headers