NewsData.io API
News and crypto news API with historical archives and a free plan.
What it does
newsdata.io aggregates news from 80,000+ sources across 200+ countries and 80+ languages, with latest-news, crypto-news, source-list and (paid) historical archive endpoints. Results include sentiment, category and (paid) full-content fields.
Base URL
Authentication
Sign up for a free API key and pass it as ?apikey=YOUR_KEY.
Code examples
curl -s "https://newsdata.io/api/1/latest?apikey=$NEWSDATA_KEY&q=inflation&language=en&country=us"
import requests
params = {"apikey": KEY, "q": "solar", "language": "en"}
r = requests.get("https://newsdata.io/api/1/latest", params=params, timeout=10).json()
print(r["totalResults"], "results")
for a in r["results"][:5]:
print(a["pubDate"], a["title"])
# next page:
params["page"] = r["nextPage"]Rate limits & quotas
Free plan: about 200 credits/day, where 1 credit = 1 request returning up to 10 articles. The latest endpoint covers roughly the last 48 hours; the archive and full content field are paid. Pagination uses an opaque nextPage token, not page numbers. Over the limit: HTTP 429.
Key response fields
| status / totalResults | success and the match count |
| results[].title / link / description | Headline, URL, snippet |
| results[].pubDate / source_id | Timestamp and source |
| results[].category[] / country[] / language | Classification |
| nextPage | Token to pass as page= for the next batch |
Common errors
| 401 Unauthorized | Bad or missing apikey. |
| 422 Unprocessable | Invalid parameter value (e.g. unknown country code). |
| 429 TooManyRequests | Daily credit allowance exhausted, or too many requests per second. |
When to use it (and alternatives)
Good for broad international coverage and topic monitoring on a free budget, and the only one here with a dedicated crypto-news endpoint. For full article text on free, use The Guardian; for the largest English source list, NewsAPI.org.
FAQ
How does pagination work?
Each response includes a nextPage string. Pass it back as page=<token> on the next request. There are no numeric page params, and each page costs another credit.
Can I get the full article body?
The content field is populated only on paid plans. Free responses give title + description + link.
How far back can I search?
The free /latest endpoint covers about the last 2 days. Historical search (/archive) back several years is a paid feature.
New to APIs?
Short guides for working with this API — and any other.