Crypto news headlines
POST /api/crypto-newsLatest 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. Send POST /api/crypto-news with no required fields (5 optional) and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, query, match, hours, count and 4 more.
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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | no | Optional keywords (space-separated, max 10); matched case-insensitively against title + summary. |
match | string | no | all (default): every keyword must appear; any: at least one. |
sources | array of string | no | Optional subset of source ids: coindesk, cointelegraph, decrypt, theblock, bitcoinmagazine, thedefiant, blockworks, cryptoslate. |
hours | number | no | Only items published within the last N hours (default 48, max 168). |
limit | number | no | Items to return (default 20, max 50). |
Example request
curl -i -X POST https://agent402.tools/api/crypto-news \
-H "Content-Type: application/json" \
-d '{"query":"bitcoin","limit":10}'
Without payment this returns HTTP 402 Payment Required with the exact price for crypto-news; any x402 v2 or MPP client pays it and retries.
Example response
{
"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"
}
| Field | Type | Always present | In the example |
|---|---|---|---|
source | string | yes | rss |
query | string | yes | bitcoin |
match | string | yes | all |
hours | number | yes | 48 |
count | number | yes | 2 |
items | array of objects | yes | 2 items in the example |
sources | array of objects | yes | 1 item in the example |
errors | array | yes | 0 items in the example |
fetchedAt | string | yes | 2026-08-22T12:05:00.000Z |
From an MCP client
catalog.call {
"slug": "crypto-news",
"params": {
"query": "bitcoin",
"limit": 10
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for crypto-news; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/crypto-news returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
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();
client.setSpendControls?.(false); // keep your own spending ceiling in code
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
}),
});
Related tools
Crypto technical indicators
POST /api/crypto-indicatorsTechnical indicators for one perpetual computed deterministically from Hyperliquid candles: RSI(14), MACD(12,26,9) with …
Options chain by expiry
POST /api/crypto-options-chainOptions chain for a currency and expiry on Deribit, sorted by strike: instrument, strike, call/put, bid, ask, mark, mark…
Crypto price
GET /api/crypto-priceLive crypto prices for one or many coins in any vs_currency (usd, eur, btc, eth, etc). Returns last price, 24h change %,…
Wallet token transfers (filtered)
POST /api/asset-transfersRecent token transfers for a wallet on Base, Ethereum and other EVM chains, newest first. Filtered transfer log for an E…
Block receipts (one block, summarised)
POST /api/block-receiptsEvery transaction receipt in one block, fetched as a single upstream read and summarised: tx count, succeeded vs failed,…
Crypto categories by market cap
GET /api/coin-categoriesCoin categories (Layer 1, Meme, AI, DeFi, Stablecoins, RWA, ...) ranked by market cap, with 24h market cap change %, 24h…