News API
REST API for querying and retrieving live news headlines from over 150,000 sources.
Open the official app on newsapi.org
This tool is hosted by its maintainers. Click below to open newsapi.org in a new tab — it's their official demo.
Browse news tools →What's next with News API?
Choose how you want to get started.
Use it free
Open the official tool or demo — no account needed.
Self-host it
Run the open-source version on your own infrastructure.
What is News API?
NewsAPI is a RESTful API that provides access to a vast collection of news articles and blog posts from over 150,000 global sources. It allows developers to programmatically retrieve current and historical news data, enabling the creation of news aggregation platforms, data-driven applications, and real-time information systems. The API is designed to streamline the process of fetching news content by offering structured JSON responses that can be easily integrated into web applications, mobile apps, or data analysis workflows. Developers, data scientists, and businesses use NewsAPI to overcome the challenge of manually curating news content, saving time and effort while ensuring access to up-to-date information. By leveraging NewsAPI, users can build custom news dashboards, monitor industry trends, or analyze public sentiment through news data, without needing to manage the complexities of news sourcing and distribution.
How it works
NewsAPI is implemented using standard HTTP protocols and returns data in JSON format. It relies on a server-side architecture that indexes and processes news articles from over 150,000 sources. The API is compatible with any HTTP client that can send GET requests and parse JSON responses. Developers can integrate NewsAPI into applications using programming languages like Python, JavaScript, or Java, leveraging libraries such as requests, fetch, or HttpClient. The service operates without requiring any client-side dependencies, and data flows from the server to the client through the HTTP protocol. Privacy is maintained by ensuring that user data is not stored or shared, and API keys are used for authentication rather than personal identifiers.
How to use it
- 1Obtain an API key by registering on the NewsAPI website. 2. Construct an HTTP GET request with the desired parameters, such as q for search terms, from and to for date ranges, and sortBy for sorting order. 3. Append the API key to the request URL as a query parameter. 4. Send the request using a tool like curl, Postman, or a programming language's HTTP client library. When using NewsAPI, ensure that all parameters are correctly formatted and that the API key is included in the request. For example, to retrieve all articles about Tesla from the last month sorted by recent first, the request URL would be: GET https://newsapi.org/v2/everything? q=tesla &from=2026-07-14&sortBy=publishedAt&apiKey=API_KEY.
What it can do
- news api
Use cases
Assumptions and limitations
Assumptions
- source: https://newsapi.org/
- license: Proprietary — free to use
- privacy: Opens an external demo
Limitations
- API key exposure -> Unauthorized access -> Store keys securely in server-side environments
- Rate limiting -> Temporary access restrictions -> Implement request throttling in client applications
- Source availability -> Incomplete data sets -> Verify source coverage before critical data analysis
- Historical data gaps -> Missing articles -> Cross-reference with other news sources for comprehensive coverage
- Data freshness -> Delayed updates -> Use recent date ranges for real-time applications
Understanding the result
REST API for querying and retrieving live news headlines from over 150,000 sources.
Tool details
- Clearly flagged when a network request is needed.
- No account, no sign-up, and no tracking of your content.
- Powered by (MIT).
- Built with
- (https://newsapi.org/)
- License
- MIT
- Runs locally
- No — requires a network request
- Verification
- Not yet verified
- Input
- Query
- Output
- Text
Built with https://newsapi.org/. OpenToolVault provides the discovery and browser interface while crediting the original project maintainers.
- Built with
- License
- MIT
Open-source project
OpenToolVault is an independent directory. We are not affiliated with or endorsed by this project.
References
- / — GitHub Repository
Upstream project · GitHub
- Proprietary License
Upstream project
Frequently asked
How do I start using NewsAPI?
To start using NewsAPI, visit the NewsAPI website and register for an API key. Once you have your API key, you can make HTTP GET requests to the API endpoints by appending the key to the request URL as a query parameter. For example, to retrieve the latest headlines from TechCrunch, you would use the endpoint: GET https://newsapi.org/v2/top-headlines? sources=techcrunch &apiKey=YOUR_API_KEY. Ensure that all parameters are correctly formatted and that the API key is included in the request.
How does NewsAPI handle different date ranges?
NewsAPI allows developers to specify date ranges using the 'from' and 'to' parameters in the request URL. These parameters define the start and end dates for the news articles to be retrieved. For instance, to fetch articles about Tesla from July 14, 2026, to July 31, 2026, you would use the parameters: from=2026-07-14&to=2026-07-31. The API processes these dates to filter and return relevant articles within the specified time frame.
How can I retrieve articles from a specific source?
To retrieve articles from a specific source, use the 'sources' parameter in the request URL. For example, to get the latest headlines from TechCrunch, you would use the endpoint: GET https://newsapi.org/v2/top-headlines? sources=techcrunch &apiKey=YOUR_API_KEY. This parameter allows developers to target specific news outlets or blogs, ensuring that the retrieved articles come from the desired source.
How does NewsAPI compare to other news APIs like Google News API or Bing News API?
NewsAPI differs from other news APIs like Google News API or Bing News API in its data sources and API design. NewsAPI aggregates news from over 150,000 sources worldwide, while Google News API focuses on curated news from a select set of sources. Bing News API provides news from Microsoft's news sources and partners. NewsAPI offers more granular control over search parameters and supports both real-time and historical news retrieval, making it suitable for applications requiring detailed news filtering and analysis.
What should I do if I receive an error message about exceeding the rate limit?
If you receive an error message about exceeding the rate limit, it means you have made more requests than allowed within a specific time frame. To resolve this, implement request throttling in your client application to ensure you stay within the allowed limits. Additionally, consider upgrading to a higher-tier API plan if you require more request volume. Always store your API key securely and avoid exposing it in client-side code to prevent unauthorized access and potential rate limit issues.