Crypto trending
GET /api/crypto-trendingTrending coins on CoinGecko in the last 24 hours, ranked by user search activity on the site (currently ~15 results). Send GET /api/crypto-trending with no input and pay $0.001 per call over x402 or MPP (there is no free tier). It returns a JSON object with count and coins.
Includes coin id, symbol, market cap rank, current price (BTC-denominated), and score. Useful signal for detecting narrative shifts before they hit price charts.
Parameters
Crypto trending takes no parameters.
Example request
curl -i "https://agent402.tools/api/crypto-trending"
Without payment this returns HTTP 402 Payment Required with the exact price for crypto-trending; any x402 v2 or MPP client pays it and retries.
Example response
{
"count": 2,
"coins": [
{
"id": "render-token",
"symbol": "RNDR",
"name": "Render",
"marketCapRank": 38,
"priceBtc": 0.00012345,
"score": 0
},
{
"id": "sui",
"symbol": "SUI",
"name": "Sui",
"marketCapRank": 22,
"priceBtc": 0.00003421,
"score": 1
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
count | number | yes | 2 |
coins | array of objects | yes | 2 items in the example |
From an MCP client
catalog.call {
"slug": "crypto-trending",
"params": {}
}
The hosted connector at https://agent402.tools/mcp needs a payment for crypto-trending; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- There is no input to get wrong: any request to /api/crypto-trending runs the tool.
- 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 issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/crypto-trending is served as this GET, with the body as the input. - 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-trending");
Part of these workflows
Crypto trending is one step in these 4 skill packs, each sold as a single call:
- Crypto market brief - Quick crypto market snapshot: price for a specific coin, trending coins, and global market stats (total cap, BTC dominance, volume) - one call.
- Macro dashboard refresh - The full macro + crypto dashboard in one call: 5 FRED series, 5 Treasury reads, yield-curve spread, crypto market/trending/global, and live gas - the 14-tool basket recurring buyers refresh every cycle, bundled below its a la carte price.
- Crypto research - Pull live price, market structure, OHLC history, trending status, global market context, and recent news for a single coin in one pass.
- Crypto dossier - Everything about a cryptocurrency in one call: live price, 90-day history, trending status, global market context, news search, and top article extraction.
Related tools
Crypto global market
GET /api/crypto-globalGlobal crypto market snapshot: total market cap, total 24h volume, BTC dominance, ETH dominance, active coin count, acti…
Crypto price history
GET /api/crypto-historyHistorical price, market cap, and volume time series for a coin. Granularity is automatic per CoinGecko: <=1 day = 5-min…
Crypto market overview
GET /api/crypto-marketTop N coins by market capitalization with full market snapshot per coin: rank, price, 24h change, 7d change, 24h volume,…
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 %,…
Agent402 bestsellers
GET /api/bestsellersWhat agents actually pay for on a 500+ tool x402 catalog - the paid intelligence layer over Agent402's own sales ledger,…
Farcaster trending channels
POST /api/fc-trendingTrending Farcaster channels ranked by casting activity over 1d, 7d or 30d, with cast counts for all three windows, follo…