Agent402 / tools / crypto-news

Crypto news headlines

$0.004 per call · USDC via x402 · POST /api/crypto-news

Latest crypto headlines aggregated from the public RSS/Atom feeds of 8 major outlets (coindesk, cointelegraph, decrypt, theblock, bitcoinmagazine, thedefiant, blockworks, cryptoslate), normalized to title, url, source, publishedAt and a plain-text summary, deduplicated by URL and sorted newest first. Optional keyword filter on title + summary (all keywords must match, or match=any), source subset, time window (hours, max 168) and limit (max 50). Feeds are cached 5 minutes; a feed that fails is listed in errors[] and never blocks the rest. No key, no LLM.

TRY IN PLAYGROUND →

Input

FieldTypeDescription
querystringOptional keywords (space-separated, max 10); matched case-insensitively against title + summary.
matchstringall (default): every keyword must appear; any: at least one.
sourcesarrayOptional subset of source ids: coindesk, cointelegraph, decrypt, theblock, bitcoinmagazine, thedefiant, blockworks, cryptoslate.
hoursnumberOnly items published within the last N hours (default 48, max 168).
limitnumberItems to return (default 20, max 50).

Example output

{
  "source": "rss",
  "query": "bitcoin",
  "match": "all",
  "hours": 48,
  "count": 2,
  "items": [
    {
      "title": "Bitcoin holds above a key level as ETF inflows resume",
      "url": "https://www.coindesk.com/markets/2026/08/22/example",
      "source": "coindesk",
      "sourceName": "CoinDesk",
      "publishedAt": "2026-08-22T12:00:00.000Z",
      "summary": "Spot ETF inflows returned for a third day while funding stayed neutral."
    },
    {
      "title": "Miners add hashrate ahead of the next difficulty adjustment",
      "url": "https://decrypt.co/123456/example",
      "source": "decrypt",
      "sourceName": "Decrypt",
      "publishedAt": "2026-08-22T10:30:00.000Z",
      "summary": "Network hashrate set a new high this week."
    }
  ],
  "sources": [
    {
      "id": "coindesk",
      "name": "CoinDesk",
      "items": 25,
      "matched": 1,
      "cached": false
    }
  ],
  "errors": [],
  "fetchedAt": "2026-08-22T12:05:00.000Z"
}

Try it - see the 402 challenge (free)

curl -i -X POST https://agent402.tools/api/crypto-news \
  -H "Content-Type: application/json" \
  -d '{"query":"bitcoin","limit":10}'

The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/crypto-news", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "query": "bitcoin",
    "limit": 10
  }),
});
Wallet-only. This tool reaches the network/browser/storage, so it is paid in USDC via x402 (no proof-of-work tier).

Related tools

Crypto order book

$0.003 · GET /api/crypto-orderbook

L2 order-book snapshot for a spot pair: best bid/ask, mid price, spread (absolute + %), and the top N aggregated price l…

try in playground →

Stablecoin peg monitor

$0.003 · GET /api/stablecoin-peg

Live $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or …

try in playground →

Wallet balance (native + ERC-20)

$0.002 · POST /api/wallet-balance

Look up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, A…

try in playground →