
The News endpoint lets you search and retrieve news articles using keywords, phrases, dates, countries, languages, categories, sources, content types, and other filters.
The News endpoint combines the functionality previously available through the Latest and Archive endpoints into a single search interface.
Resource URL
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY
Request Method: GET
Response Format
JSON
Authentication
Required
Rate Limited
1800 Credits
per 15 min (Paid Plans)
How Search Works
The API searches for the exact keywords you enter, not contextual or related terms.
Search by a Single Keyword
Tesla returns articles containing the keyword Tesla in supported article fields.artificial intelligence without quotation marks returns articles containing both artificial and intelligence, even if the words appear separately."artificial intelligence" with quotation marks returns articles matching the exact phrase, with both words appearing together in the specified order.Search by Keyword
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q=artificial+intelligence
Combine Multiple Filters
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q=artificial+intelligence&country=us&language=en
Search Historical News
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q=artificial+intelligence&from_date=2026-09-01&to_date=2026-09-22
Use from_date and to_date to search news within a specific date range.
Search Recent News
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q=artificial+intelligence&timeframe=6
Use timeframe to limit the search to a recent period. The value represents the number of hours. For example, timeframe=6 searches for articles published within the last 6 hours.
The following parameters are available in the News endpoint.
| Name | Required | Description | Default Value | Example |
|---|---|---|---|---|
Search & Content Filters | ||||
q_in_title | Optional | Searches for keywords or phrases only in article titles. The value must be URL-encoded. The maximum character limit depends on your subscription plan. Refer to the Query Character Limit section. Cannot be used with q or q_in_meta in the same request. | - | q_in_title=pizza |
q_in_meta | Optional | Searches for keywords or phrases in the article title, URL, meta keywords, and meta description. The value must be URL-encoded. The maximum character limit depends on your subscription plan. Refer to the Query Character Limit section. Cannot be used with q or q_in_title in the same request. | - | q_in_meta=pizza |
q | Optional | Searches for keywords or phrases across the article title, content, URL, meta keywords, and meta description. The value must be URL-encoded. The maximum character limit depends on your subscription plan. Refer to the Query Character Limit section. | - | q=pizza |
id | Optional | Search for specific news articles using their unique id. You can include up to 50 article IDs in a single request, subject to your subscription plan's limit. | - | id=id_1,id_2 |
datatype | Optional | Filters articles by content type. Supported values include news, blog, multimedia, forum, pressrelease, review, research, opinion, analysis, and podcast. Free and Basic plans support up to 5 values; Professional and Corporate plans support up to 10. | - | datatype=news,blog |
category | Optional | Filters articles by category. Free and Basic plans support up to 5 categories per request. Professional and Corporate plans support up to 10 categories. | - | category=sports,top |
exclude_category | Optional | Excludes specific categories from the search. Free and Basic plans support up to 5 categories per request. Professional and Corporate plans support up to 10 categories. Cannot be used together with category. | - | exclude_category=top |
content | Optional | Controls whether articles containing the content response object are returned. Use 1 to request articles with full content and 0 to request articles without full content. | - | content=1 |
image | Optional | Filters articles based on whether they contain a featured image. Use 1 for articles with an image and 0 for articles without an image. | - | image=1 |
video | Optional | Filters articles based on whether they contain video content. Use 1 for articles with video and 0 for articles without video. | - | video=1 |
Location, Language & Time Filters | ||||
country | Optional | Filters articles by country. Free and Basic plans support up to 5 countries per request. Professional and Corporate plans support up to 10 countries. | - | country=au,jp |
exclude_country | Optional | Excludes articles from specified countries. Free and Basic plans support up to 5 countries per request. Professional and Corporate plans support up to 10 countries. Cannot be used together with country. | - | exclude_country=au,jp |
language | Optional | Filters articles by language. Free and Basic plans support up to 5 languages per request. Professional and Corporate plans support up to 10 languages. | - | language=fr,en |
exclude_language | Optional | Excludes articles written in specified languages. Free and Basic plans support up to 5 languages per request. Professional and Corporate plans support up to 10 languages. Cannot be used together with language. | - | exclude_language=fr,en |
region | Optional | Filters news by geographical region. A region can represent a city, district, county, state, country, or continent. Available to Corporate users. Up to 5 regions can be included by default and can be customized up to 10. | - | region=california |
timeframe | Optional | Limits the search to a recent time period. For hours, use a value from 1 to 720. For minutes, use 1m to 43200m. Use either hours or minutes, not both. | - | timeframe=6 or timeframe=30m |
to_date | Optional | Specifies the end date for the search. Use YYYY-MM-DD or YYYY-MM-DD HH:MM:SS. If omitted, the search can continue up to the current date, subject to your plan and endpoint rules. | - | to_date=2026-09-22 |
from_date | Optional | Specifies the start date for the search. Use YYYY-MM-DD or YYYY-MM-DD HH:MM:SS. This parameter is primarily used to search historical news. | - | from_date=2026-09-01 |
Source, Quality & Intelligence Controls | ||||
creator | Optional | Searches by the name of the article author or content creator. Free and Basic plans support up to 5 creators; Professional and Corporate plans support up to 10. | - | creator=chintan haria |
source_url | Optional | Searches for articles from specific news sources using their website URLs. Free and Basic plans support up to 5 domains per request. Professional and Corporate plans support up to 10 domains. | - | source_url=bbc.com,nytimes.com |
exclude_source_url | Optional | Excludes articles from specified news sources using their website URLs. Free and Basic plans support up to 5 domains per request. Professional and Corporate plans support up to 10 domains. | - | exclude_source_url=nytimes.com,bbc.com |
source_priority | Optional | Filters results by source priority. Supported values are top, medium, and low. top includes the top 10% of news sources, medium includes the top 30%, and low includes the top 50%. | - | source_priority=top |
organization | Optional | Searches for articles related to specific organizations. Available to Corporate users. Up to 10 organizations can be included in a request. | - | organization=uber,apple |
sentiment | Optional | Filters articles based on sentiment. Supported values are positive, negative, and neutral. | - | sentiment=positive |
sentiment_score | Optional | Filters articles by sentiment score. The score is out of 100 for each sentiment label: positive, neutral, and negative. Returns articles with a sentiment score greater than or equal to the specified value. Works only when the sentiment parameter is included in the query. | - | sentiment_score=70 |
tag | Optional | Filters articles using AI-classified tags. Up to 10 tags can be included in a request. Available to Professional and Corporate users. Corporate Yearly plans can also use custom AI tags. | - | tag=food,tourism |
remove_duplicate | Optional | Filters duplicate articles using NewsData.io's internal duplicate-detection algorithm. Use 1 to enable duplicate filtering. This does not guarantee that every article returned represents a unique article. | - | remove_duplicate=1 |
Request Control & Response Handling | ||||
apikey | Required | You need to add your API Key while accessing the NewsData.io API. | - | apikey=YOUR_API_KEY |
exclude_field | Optional | Excludes selected fields from the response object. Multiple response fields can be excluded in one request. The id field cannot be excluded. | - | exclude_field=source.icon_url,published_at,url |
page | Optional | Retrieves the next page of results using the next_page value returned in the previous response. | - | page=NEXT_PAGE_VALUE |
size | Optional | Specifies the number of articles returned per request. Free users can request up to 10 articles; paid users can request up to 50. | - | size=25 |
sort | Optional | Controls the order of search results. Supported values include pubdatedesc, pubdateasc, relevancy, source, and fetched_at. If omitted, results are sorted by publication date with the newest articles first. When using sort=relevancy, at least one of the search parameters q, q_in_title, or q_in_meta must be provided. | pubdatedesc | sort=pubdateasc |
url | Optional | Searches for a specific article using its URL. | - | url=https://example.com/article |
timezone | Optional | Specifies the timezone used to format the response timestamps. It does not affect the news search itself. Use a valid IANA timezone identifier. | - | timezone=Asia/Kolkata |
| Name | Type | Description |
|---|---|---|
| status | string | success for a successful request. |
| total_results | integer | Number of articles matching the request over the whole date range, not just this page. |
| results | list of objects | The articles on this page, in the order set by sort. Each article has the fields in the rows below. |
| next_page | string | Pass this as the page parameter to get the next page; null when there are no more results. |
| id | string | Unique article identifier (32 characters). |
| title | string | Article headline. |
| meta_description | string | Short article description (meta description). |
| content | string | Full article text. null when content=0. Plans without full-content access get the notice ONLY AVAILABLE IN PAID PLANS. |
| url | string | Article URL. |
| published_at | string | Publish date-time in RFC 3339. With the timezone parameter, it is returned in that timezone. |
| fetched_at | string | When NewsData.io collected the article, in RFC 3339. The timezone follows the timezone parameter. |
| datatype | string | Content type, such as news, blog, or podcast. Defaults to news. |
| language | string | Language name, such as english. |
| country | list of strings | Country names the article belongs to, such as india. |
| category | list of strings | Article categories, such as business. |
| keyword | list of strings | Article keywords. |
| creator | list of strings | Article author or authors. |
| duplicate | boolean | Indicates whether the article is a duplicate of another article. |
| media.image_url | string | Article image URL. |
| media.video_url | string | Article video URL. |
| source.name | string | Source display name. |
| source.url | string | Source website URL. |
| source.icon_url | string | Source icon URL. |
| source.priority | integer | Source ranking; lower values indicate a higher-ranked source. |
| ai.summary | string | AI-generated article summary. Plans without access get the notice ONLY AVAILABLE IN PAID PLANS. |
| ai.sentiment | object | Article sentiment containing the sentiment label and scores. |
| ai.sentiment.label | string | Overall sentiment: positive, neutral, or negative. |
| ai.sentiment.score | object | Sentiment percentage breakdown. |
| ai.tag | list of strings | AI-classified topic tags. |
| ai.region | list of strings | AI-extracted regions, each represented as a comma-joined place, such as paris,france. Plans without access get the notice ONLY AVAILABLE IN CORPORATE PLANS. |
| ai.organization | list of strings | AI-extracted organization names. Plans without access get the notice ONLY AVAILABLE IN CORPORATE PLANS. |
Keyword Search
Recent News
Historical News
from_date and to_date to search news within a specific date range.| Plan | Historical Data Access |
|---|---|
| Free | 30 Days |
| Basic | 6 months |
| Professional | 2 years |
| Corporate | 10 years |
apikey parameter is required for every request.from_date and/or to_date together with a search or filtering parameter supported by the endpoint.1. Search for a Keyword
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q=artificial+intelligence
2. Search Recent News
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q=artificial+intelligence&timeframe=6
3. Search Historical News
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q=artificial+intelligence&from_date=2026-09-01&to_date=2026-09-22
4. Search by Country and Language
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&country=us&language=en
5. Search by Category
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&category=technology,science
6. Search by News Source
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&source_url=bbc.com,nytimes.com
7. Search by Title
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q_in_title=artificial+intelligence
8. Search Historical Technology News
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&category=technology&from_date=2026-09-01&to_date=2026-09-22
The News endpoint supports pagination for retrieving additional results.
The response contains a next_page value when more results are available. Pass that value to the page parameter in your next request:
Next page request
https://newsdata.io/api/2/news?apikey=YOUR_API_KEY&q=artificial+intelligence&page=NEXT_PAGE_VALUE
Use the next_page value exactly as returned by the endpoint.
The number of articles returned in a request depends on your plan:
You can use the size parameter to request a specific number of articles within your plan's limit.
Was this page helpful?