Overview
TheNewsAPI is a news aggregation API that delivers headlines, top stories, and live news in JSON format from thousands of sources worldwide. It supports filtering by topic, language, country, and source, making it easy to build news feeds tailored to any audience. A free tier is available that lets you get started with minimal setup.
Beginner Tip
Sign up at thenewsapi.com to receive a free API token and call the /v1/news/top endpoint to retrieve top stories immediately. Use the locale and language parameters to target specific regions or languages.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"totalArticles": 100,
"articles": [
{
"title": "Tech Industry Sees Record Growth",
"source": {
"name": "TechNews",
"url": "https://technews.com"
},
"publishedAt": "2025-01-15T08:00:00Z",
"description": "The technology sector reported unprecedented growth...",
"image": "https://example.com/article-image.jpg",
"url": "https://technews.com/article/123"
}
]
} Field Reference
data[].uuid Unique identifier for the article data[].title Headline of the news article data[].url URL to the original article data[].published_at ISO 8601 date and time the article was published data[].source Domain name of the news source that published the article meta.found Total number of articles matching the query Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://api.thenewsapi.com/v1/news/top?api_token=YOUR_API_KEY&locale=us&language=en";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →Associated Press
The Associated Press Developer API gives you programmatic access to AP news content and metadata, one of the most trusted wire services in the world.
Currents
⭐ Beginner's PickCurrents API delivers the latest news from thousands of sources, blogs, and online forums in real time.
GNews
⭐ Beginner's PickGNews is a news search API that aggregates articles from thousands of sources worldwide and lets you filter by keyword, language, country, and topic.
MarketAux
MarketAux delivers real-time financial news with sentiment analysis, ticker tagging, and market statistics in a clean JSON format.
Mediastack
⭐ Beginner's PickMediastack is a simple REST API that delivers live and historical news articles from thousands of global sources.