What this API does
The News API is a service that provides developers with access to over 75,000 news sources, offering real-time headlines, articles, and blog posts. It supports advanced features such as keyword searching, filtering by categories, sources, regions, languages, and date ranges.
How it works
Developers can make HTTP GET requests to retrieve news articles. The API enables searching for specific topics, filtering by source or category, and accessing top headlines in various regions. All responses are provided in clean JSON format, making integration straightforward with SDKs in Python, JavaScript, and PHP.
Authentication
The News API requires an API key for usage. Developers can sign up for a free account to obtain an API key, which must be included in requests to access the API functionalities.
Example usage
/v2/top-headlines?country=us&apiKey=YOUR_API_KEY- Fetches top headlines from the United States./v2/everything?q=technology&apiKey=YOUR_API_KEY- Searches for all articles related to technology./v2/top-headlines?category=business&apiKey=YOUR_API_KEY- Retrieves top business headlines globally.
Limits
The News API allows up to 100 free requests per day for development purposes. Additional usage may require a paid plan depending on the rate limits and request volume needed.
Ideal use cases
- Building news aggregation applications for real-time information.
- Creating dashboards for sentiment analysis of news articles.
- Integrating news content into chatbots for user engagement.