Global news search over GDELT. An agent sends a query, pays $0.003 in USDC, and gets matching articles plus a coverage-volume timeline back in the same response. The $0.002 pulse route returns only what is new since your last cursor. No API key, no account, no subscription.
git clone https://github.com/nirholas/x402-news-wire
cd x402-news-wire && npm install
npm run dev
| Route | Price | Returns |
|---|---|---|
GET /query | $0.003 | Matching articles (title, URL, domain, language, source country, seen date) and a coverage-volume timeline over the timespan |
GET /pulse | $0.002 | New articles since the caller's cursor, a `nextCursor` for the following poll, and a `truncated` flag |
GET /, GET /health, GET /.well-known/x402 |
free | Service info, liveness, discovery manifest |
Every paid route returns the purchased artifact in the 200 response body.
The 402 challenge advertises both. Your client picks whichever it can sign.
base-sepolia · base on mainnetsolana · solana-devnet on devnetimport { wrapFetchWithPayment, createSigner } from "x402-fetch";
const signer = await createSigner("base-sepolia", process.env.PRIVATE_KEY!);
const payFetch = wrapFetchWithPayment(fetch, signer);
const res = await payFetch(
"http://localhost:4022/query?q=semiconductor%20export%20controls×pan=3d&maxRecords=25"
);
const artifact = await res.json(); // purchased artifact, in-response