Authorizations
Body
The time period for which you want to get the latest headlines.
Format examples:
7d
: Last seven days30d
: Last 30 days1h
: Last hour24h
: Last 24 hours
"7d"
Filters articles by geographic locations using structured GeoNames data. All location criteria within an object must be met (internal AND
). Multiple objects are combined using the geonames_operator
parameter.
For detailed information, see GeoNames filtering.
[
{
"name": "New York City",
"country": "US",
"feature_class": "A"
},
{
"name": "San Francisco",
"admin1": { "name": "California" },
"localization_score": { "min": 7 }
}
]
The operator to combine multiple geonames
objects. If AND
, all geonames objects must match. If OR
, at least one geonames object must match.
AND
, OR
"AND"
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 the latest headlines since the specified time with GeoNames location data. The response may include clustering information if enabled.
The response model for the Search advanced
, Latest headlines advanced
, and Search by
requests.
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.