Authorizations
Body
Common parameters shared across standard endpoints.
The keyword(s) to search for in articles. Query syntax supports logical operators (AND
, OR
, NOT
) and wildcards:
- For exact phrases, use escaped quotes:
\"technology news\"
- Use
*
for wildcards:technolog*
(cannot start with*
) - Use
+
to include and-
to exclude:+Apple
,-Google
- Boolean operators:
technology AND (Apple OR Microsoft) NOT Google
- Forbidden characters:
[
]
/
\\
:
^
and URL-encoded equivalents
Note: The API automatically inserts AND
operators between standalone terms, so strings like "machine learning"
become "machine AND learning"
. To avoid syntax errors (especially in queries with OR
operators), use literal escape "\"machine learning\""
.
For detailed syntax rules, see Advanced querying.
"\"supply chain\" AND Amazon NOT China"
The starting point in time to search from. Accepts date-time strings in ISO 8601 format and plain text strings. The default time zone is UTC.
Formats with examples:
- YYYY-mm-ddTHH:MM:SS:
2024-09-24T00:00:00
- YYYY-MM-dd:
2024-09-24
- YYYY/mm/dd HH:MM:SS:
2024/09/24 00:00:00
- YYYY/mm/dd:
2024/09/24
- English phrases:
1 day ago
,today
Note: By default, applied to the publication date of the article.
To use the article's parse date instead, set the by_parse_date
parameter to true
.
"2024-09-24T00:00:00.000Z"
The ending point in time to search up to. Accepts date-time strings in ISO 8601 format and plain text strings. The default time zone is UTC.
Formats with examples:
- YYYY-mm-ddTHH:MM:SS:
2024-09-25T00:00:00
- YYYY-MM-dd:
2024-09-25
- YYYY/mm/dd HH:MM:SS:
2024/09/25 00:00:00
- YYYY/mm/dd:
2024/09/25
- English phrases:
1 day ago
,today
,now
Note: By default, applied to the publication date of the article.
To use the article's parse date instead, set the by_parse_date
parameter to true
.
"2024-09-25T00:00:00.000Z"
The article fields to search in. Use a comma-separated string for multiple options, with a maximum of 2 in a single request.
Available options:
- Standard fields:
title
,content
,summary
,title_content
- Translation fields:
title_translated
,content_translated
,summary_translated
,title_content_translated
Note: Search in summaries and translations is only available for NLP subscription plans.
"title_content, title_content_translated"
The sorting order of the results. Possible values are:
relevancy
: The most relevant results first.date
: The most recently published results first.rank
: Highest-ranked sources first; when clustering enabled, sorts bycluster_rank
within clusters.
relevancy
, date
, rank
"date"
The location(s) to search for in articles. Format should be "City, State".
Example: ["San Francisco, California"]
[
"New York City, New York",
"Los Angeles, California"
]
The location detection methods to filter results by:
dedicated_source
: Identifies locations based on sources exclusively covering a specific location.local_section
: Identifies locations through location-specific sections within larger publications.regional_source
: Identifies locations using regional context from state-level publications.standard_format
: Identifies locations written in standard formats like "City, State" or "City, County".proximity_mention
: Identifies cities and states mentioned within 15 words of each other.ai_extracted
: Identifies locations through AI-based content analysis. Requires AI Extraction plan.
For detailed information, see Location detection methods.
[
"dedicated_source",
"proximity_mention",
"ai_extracted"
]
The language(s) of the search. The only accepted format is the two-letter ISO 639-1 code. To select multiple languages, use a comma-separated string or an array of strings.
To learn more, see Enumerated parameters > Language.
["en", "es"]
The countries where the news publisher is located. The accepted format is the two-letter ISO 3166-1 alpha-2 code. To select multiple countries, use a comma-separated string or an array of strings.
To learn more, see Enumerated parameters > Country.
["US", "CA"]
One or more news sources to narrow down the search. The format must be a domain URL. Subdomains, such as finance.yahoo.com
, are also acceptable. To specify multiple sources, use a comma-separated string or an array of strings.
["nytimes.com", "theguardian.com"]
The news sources to exclude from the search. To exclude multiple sources, use a comma-separated string or an array of strings.
["cnn.com", "wsj.com"]
The categorical URL(s) to filter your search. To filter your search by multiple categorical URLs, use a comma-separated string or an array of strings.
["wsj.com/politics", "wsj.com/tech"]
If false, returns only articles that have publicly available complete content. Some publishers partially block content, so this setting ensures that only full articles are retrieved.
false
The page number to scroll through the results. This parameter is used to paginate: scroll through results because one API response cannot return more than 1000 articles.
x >= 1
2
The number of articles to return per page. Range: 1
to 1000
.
1 <= x <= 1000
100
The minimum number of words an article must contain. To be used for avoiding articles with small content.
x >= 0
300
The maximum number of words an article can contain. To be used for avoiding articles with large content.
x >= 0
1000
If true, groups similar articles into clusters and returns clustered results. If false, returns individual articles without clustering.
To learn more, see Clustering news articles.
true
Filters articles based on their general topic, as determined by NLP analysis. To select multiple themes, use a comma-separated string or an array of strings.
To learn more, see NLP features.
Available options: Business
, Economics
, Entertainment
, Finance
, Health
, Politics
, Science
, Sports
, Tech
, Crime
, Financial Crime
, Lifestyle
, Automotive
, Travel
, Weather
, General
.
["Business", "Finance"]
Filters articles that mention specific person names, as identified by NLP analysis.
- To specify multiple names, use
AND
,OR
,NOT
operators, and\"
escape literals for exact matches. - To search in translations, combine with the translation options of the
search_in
parameter (e.g.,title_content_translated
).
To learn more, see Search by entity.
"\"Elon Musk\" OR \"Jeff Bezos\""
Filters articles that mention specific location names, as identified by NLP analysis.
- To specify multiple locations, use
AND
,OR
,NOT
operators, and\"
escape literals for exact matches. - To search in translations, combine with the translation options of the
search_in
parameter (e.g.,title_content_translated
).
To learn more, see Search by entity.
"\"San Francisco\" OR \"New York City\""
Filters articles that mention other named entities not falling under person, organization, or location categories. Includes events, nationalities, products, works of art, and more.
- To specify multiple entities, use
AND
,OR
,NOT
operators, and\"
escape literals for exact matches. - To search in translations, combine with the translation options of the
search_in
parameter (e.g.,title_content_translated
).
To learn more, see Search by entity.
"AWS OR \"Microsoft Azure\""
Filters articles that mention specific organization names, as identified by NLP analysis.
- To specify multiple organizations, use
AND
,OR
,NOT
operators, and\"
escape literals for exact matches. - To search in translations, combine with the translation options of the
search_in
parameter (e.g.,title_content_translated
).
To learn more, see Search by entity.
"\"Apple Inc\" OR Microsoft"
Filters articles based on the minimum sentiment score of their titles.
Range is -1.0
to 1.0
, where:
- Negative values indicate negative sentiment.
- Positive values indicate positive sentiment.
- Values close to 0 indicate neutral sentiment.
To learn more, see NLP features.
-1 <= x <= 1
-0.5
Filters articles based on the maximum sentiment score of their titles.
Range is -1.0
to 1.0
, where:
- Negative values indicate negative sentiment.
- Positive values indicate positive sentiment.
- Values close to 0 indicate neutral sentiment.
To learn more, see NLP features.
-1 <= x <= 1
0.5
Filters articles based on the minimum sentiment score of their content.
Range is -1.0
to 1.0
, where:
- Negative values indicate negative sentiment.
- Positive values indicate positive sentiment.
- Values close to 0 indicate neutral sentiment.
To learn more, see NLP features.
-1 <= x <= 1
-0.5
Filters articles based on the maximum sentiment score of their content.
Range is -1.0
to 1.0
, where:
- Negative values indicate negative sentiment.
- Positive values indicate positive sentiment.
- Values close to 0 indicate neutral sentiment.
To learn more, see NLP features.
-1 <= x <= 1
0.5
If true, includes English translation fields in the response (title_translated_en
, content_translated_en
, and NLP translation fields). If false, excludes translation fields.
true
Response
A successful response containing articles that match the specified search criteria. The response may include clustering information if enabled.
- Search Response
- Clustered Search Response
The response model for the Search
, Latest headlines
, and Search by
requests, including search results and metadata.
Response field behavior:
- Required fields are guaranteed to be present and non-null.
- Optional fields may be
null
/undefined
if the data couldn't be extracted during processing. - To access article properties in the
articles
response array, use array index notation. For example,articles[n].title
, wheren
is the zero-based index of the article object (0, 1, 2, etc.).
The status of the response.
The total number of articles matching the search criteria.
The current page number of the results.
The total number of pages available for the given search criteria.
The number of articles per page.
A list of articles matching the search criteria.
The user input parameters for the search.