← Tools Reference

News API

News API integration (Data, Social). Imported from open-connector.

API key4 toolshttps://newsapi.org
GET
news_api_get_everything
Search every article published by News API using the official everything endpoint.

/v2/everything

11 parameters
ParamTypeRequiredDescription
qstringoptionalKeywords or phrases to search for in the article title and body.
fromstringoptionalThe oldest date or date-time allowed for articles in the result set.
tostringoptionalThe newest date or date-time allowed for articles in the result set.
sortBystringoptionalThe order used to sort article results.
sourcesstringoptionalA comma-separated list of source identifiers to include.
domainsstringoptionalA comma-separated list of domains to include.
excludeDomainsstringoptionalA comma-separated list of domains to exclude.
languagestringoptionalThe ISO 639-1 language code used by the request.
qInTitlestringoptionalKeywords or phrases to search for only in article titles.
pageSizeintegeroptionalThe number of results to return per page.
pageintegeroptionalThe page number to return.
GET
news_api_get_top_headlines
Retrieve current top and breaking headlines using the official top headlines endpoint.

/v2/top-headlines

6 parameters
ParamTypeRequiredDescription
qstringoptionalKeywords or phrases to search for in the article title and body.
countrystringoptionalThe country code to retrieve headlines for.
categorystringoptionalThe news category filter.
sourcesstringoptionalA comma-separated list of source identifiers to include.
pageSizeintegeroptionalThe number of results to return per page.
pageintegeroptionalThe page number to return.
GET
news_api_get_sources
List available news sources using the official sources endpoint.

/v2/top-headlines/sources

3 parameters
ParamTypeRequiredDescription
categorystringoptionalThe source category filter.
languagestringoptionalThe ISO 639-1 language code used by the source listing request.
countrystringoptionalThe country code to retrieve sources for.
GET
news_api_get_v1_articles
Provide a compatibility wrapper for the legacy v1 articles action using top headlines with one source.

/v2/top-headlines

2 parameters
ParamTypeRequiredDescription
sourcestringrequiredThe legacy single-source identifier.
sortBystringoptionalThe legacy v1 sort order requested by the caller.