// DATA
NewsAPI
Breaking news and article search across 150k+ sources.
Endpoints
2
From
$0.02
Settle
~400ms
All routes, one base URL.
base https://mpp.t2000.ai/newsapi
MethodPathFrom
POST$0.02
/v1/headlines
Top breaking headlines filtered by country/category/source ONLY (e.g. country=us, category=business). Sparse: returns few or ZERO results for keyword topics. For a topic or keyword (e.g. "crypto", "bitcoin"), use /v1/search instead.
POST$0.02
/v1/search
Search ALL articles by keyword across 150k+ sources (comprehensive). Use this for any topic/keyword query (e.g. "crypto headlines"), optionally with date range, language, sortBy. Prefer this over /v1/headlines for topic searches.
Two requests. Gasless.
First call returns a 402 with a payment quote. Pay it. Retry with the Payment header. The gateway forwards the response.
curl
$ curl -X POST \
https://mpp.t2000.ai/newsapi/v1/headlines \
-H "Content-Type: application/json" \
-d '{ "model": "…", "input": "…" }'
# → 402 Payment Required
# → Payment header { quote, recipient, expiry }
$ retry with Payment header
# → 200 OK · response forwarded@t2000/sdk
const r = await t.pay({
url: 'https://mpp.t2000.ai/newsapi/v1/headlines',
body: { /* NewsAPI payload */ },
});
// → r.json() · 200 OK · gasless · ~400ms