query |
required |
Natural-language topic or question |
k |
10 |
Articles to return (1-100) |
days |
7 |
How many days back to search when allow_all_dates is false |
allow_all_dates |
false |
Search the full indexed coverage window instead of days |
trust_gte |
- |
Minimum source trust (0.0-1.0) |
score_gte |
4 |
Minimum match score on 0-10 scale (set 0 to disable the floor) |
score_lte |
- |
Optional maximum match score on 0-10 scale |
sort_by |
best_score |
best_score, similarity, date_desc, date_asc |
language, country, sentiment, category |
- |
Optional filters. Country codes are ISO-2 uppercase (US, GB). Sentiment: positive, negative, neutral. |
domain |
- |
Include only these source domains (e.g. cnn.com, yahoo.com). |
exclude_domain |
- |
Exclude these source domains (e.g. spam.net). Do not repeat any domain from domain. |
topic |
- |
News API topic tags (case-insensitive). |
person, organization, location |
- |
Entity names from News API metadata (case-insensitive, e.g. apple, england). |
ticker |
- |
Stock ticker symbols (e.g. AAPL, MSFT; case-insensitive). |
source_type |
- |
local_news, newsroom, or gov_news (case-insensitive). Use local_news for local news outlets. |
political_bias, trust_category |
- |
Publisher trust metadata filters (case-insensitive). |
domain_rank_gte, domain_rank_lte |
- |
Optional source domain rank range (integers). |
allow_multiple_chunks_per_article |
false |
When true, return multiple chunks from the same article instead of one per article. |