Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Every call spends tokens from the plan: a search of the last 30 days is cheap, and each older year searched costs more. Suggest lookups are the cheapest way to resolve a name into the URI the filters need.
- Filters take URIs, not names: resolve a concept, category, source, author or place with the event-registry.suggest.* calls first.
- Languages are ISO 639-3 codes (eng, deu, spa…), not two-letter codes. Dates are YYYY-MM-DD.
- The text-analytics calls (annotation, categorisation, sentiment) and the minute streams are not in this entry.
Endpoints
Search news articles
- Costs 1 token a call for the last 30 days, 5 per searched year for older articles; aggregates cost 5 (archive 10), concept trends 10 (archive 50).
- Repeat a list parameter to give several values (keyword=a&keyword=b); arrays are sent that way.
Get articles by URI
Search news events
- Costs 5 tokens a call for the last 30 days, 20 per searched year for older events; aggregates cost 5 (archive 10) or 10 (archive 50) for the complex ones.