# The News API (thenewsapi.com)

Category: [News feeds and APIs](https://free-web-services.com/web-services/news/)  
Page: https://free-web-services.com/web-services/news/the-news-api.html  
Documentation: https://www.thenewsapi.com/documentation

The News API collects articles from news sources worldwide and lets you search them by keyword, category, language, country, source, domain and date. Endpoints give top stories, all news, similar articles and the list of sources, with search operators for AND, OR, NOT and exact phrases. Send GET requests with your api_token and get JSON. Free with a free API key: 100 requests a day and 3 articles per request; the headlines endpoint and larger limits are paid.

- API key: Needed, free
- Pricing: Free with a free API key: 100 requests a day and 3 articles per request; the headlines endpoint and larger limits are paid.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: thenewsapi.com

Example request:

```sh
curl 'https://api.thenewsapi.com/v1/news/all?api_token=YOUR_API_KEY&search=london'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

