Search news articles
newsapi_search_articlesSearch news articles from 150k+ global sources. Filter by keywords, concepts, sources, locations, language, and date for targeted results.
Instructions
Search ~150k news/blog/press-release sources worldwide (newsapi.ai / Event Registry). Filter by keywords, concepts, categories, sources, locations, language and date. For entities (companies, people, places) prefer concept_uris over keywords – resolve them first with newsapi_suggest. Each call consumes API tokens; queries older than 31 days cost more. Returns compact results unless response_format=raw.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language filter, ISO 639-2 three-letter codes, e.g. eng, deu, fra, spa, ita, zho. | |
| page | No | ||
| count | No | Results per page, max 100. | |
| sort_by | No | date (newest first), rel (relevance), sourceImportance, … | date |
| date_end | No | Latest publishing date, YYYY-MM-DD. | |
| keywords | No | Keyword(s) or phrase(s) to search for. | |
| sort_asc | No | ||
| data_type | No | Content types. Default: news only. | |
| days_back | No | Convenience: sets date_start to today minus N days (ignored if date_start is set). | |
| body_chars | No | Characters of article body to return: 0 = none, -1 = full text. Default 300. | |
| date_start | No | Earliest publishing date, YYYY-MM-DD. | |
| result_lang | No | Preferred language for concept labels (eng, deu, …). | |
| source_uris | No | Source URIs (usually domains like heise.de, theverge.com) – via newsapi_suggest kind=sources. | |
| concept_uris | No | Concept URIs (Wikipedia URLs) – get them via newsapi_suggest kind=concepts. | |
| event_filter | No | Filter by whether articles were clustered into an event. | |
| category_uris | No | Category URIs, e.g. dmoz/Computers/Artificial_Intelligence or news/Technology – via newsapi_suggest kind=categories. | |
| location_uris | No | Content about these locations (Wikipedia URLs) – via newsapi_suggest kind=locations. | |
| max_sentiment | No | ||
| min_sentiment | No | Min sentiment -1..1 (only English content has sentiment). | |
| advanced_query | No | Advanced Query Language object, e.g. {"$query":{"$and":[{"keyword":"AI"},{"$or":[{"sourceUri":"heise.de"},{"sourceUri":"golem.de"}]}]},"$filter":{"isDuplicate":"skipDuplicates"}}. If given, it REPLACES all simple filters above (except sort/paging/output options). | |
| ignore_keywords | No | Exclude results mentioning any of these keywords. | |
| response_format | No | compact (default): trimmed, token-friendly JSON. raw: the unmodified API response. | compact |
| concept_operator | No | ||
| duplicate_filter | No | Syndicated copies of the same article. Default skipDuplicates. | skipDuplicates |
| include_concepts | No | Include extracted concepts (entities) per article. | |
| keyword_location | No | Where keywords must appear: body (default), title (high precision), or body,title. | |
| keyword_operator | No | Whether ALL (and) or ANY (or) keywords must match. | and |
| source_group_uris | No | Source group URIs (curated lists such as top news sources) – via newsapi_suggest kind=source_groups. | |
| ignore_source_uris | No | Exclude these sources. | |
| include_categories | No | ||
| keyword_search_mode | No | phrase (default): words of a phrase near each other; exact: exact match; simple: words anywhere. | |
| source_location_uris | No | Only sources based in these locations (Wikipedia URLs, e.g. http://en.wikipedia.org/wiki/Germany). | |
| end_source_rank_percentile | No | 10..100 step 10; e.g. 30 = only the top 30% most important sources. | |
| force_max_data_time_window | No | Restrict search to the last 7 or 31 days. Cheaper: queries reaching beyond 31 days consume more tokens (archive). | |
| start_source_rank_percentile | No | 0..90 step 10; 0 = most important sources. |