API Directory › 📰 News › NewsData.io
API KeyHTTPSCORS

NewsData.io API

News and crypto news API with historical archives and a free plan.

Category
Auth
API Key
HTTPS
Yes
CORS
Yes
Open NewsData.io docs ↗

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

https://newsdata.io/api/1

Authentication

Sign up for a free API key and pass it as ?apikey=YOUR_KEY.

Code examples

curl
curl -s "https://newsdata.io/api/1/latest?apikey=$NEWSDATA_KEY&q=inflation&language=en&country=us"
Python (paginate)
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 / totalResultssuccess and the match count
results[].title / link / descriptionHeadline, URL, snippet
results[].pubDate / source_idTimestamp and source
results[].category[] / country[] / languageClassification
nextPageToken to pass as page= for the next batch

Common errors

401 UnauthorizedBad or missing apikey.
422 UnprocessableInvalid parameter value (e.g. unknown country code).
429 TooManyRequestsDaily 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related News APIs

← Back

More News APIs · All 196 APIs