x402.agentindex.world/token-price
Token price API by contract address, for Base, Ethereum, Solana, BSC, Arbitrum, Polygon and 80+ chains. For each token: live USD price from its most liquid DEX pair, 5m / 1h / 6h / 24h price change, 24h volume, liquidity, FDV, market cap, 24h buys and sells, pair age, plus total liquidity and volume across all pairs. Up to 30 addresses per call when chain is given. Works for new memecoins with no
POST
https://x402.agentindex.world/token-priceUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.agentindex.world/token-price", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"addresses":["0x4200000000000000000000000000000000000006"],"chain":"base"}),
});
console.log(await res.json());Example input
{
"addresses": [
"0x4200000000000000000000000000000000000006"
],
"chain": "base"
}