Token Price API
x402.spawndra.com/x402/services/ofr_7981aae05fb649cc
Token Price API — USD price for any token by contract address or symbol. Returns current USD prices for one or many crypto tokens as clean JSON in a single call. Accepts chain:address (e.g. base:0x8335...2913), bare 0x addresses with a chain hint, or common symbols (ETH, BTC, USDC) and CoinGecko ids. Sources live public market data from DefiLlama's free coins API (aggregated DEX/CEX prices) at cal
POST
https://x402.spawndra.com/x402/services/ofr_7981aae05fb649ccUptime100% of 1 check 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.spawndra.com/x402/services/ofr_7981aae05fb649cc", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"chain":"base","tokens":["base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","ETH","coingecko:bitcoin"]}),
});
console.log(await res.json());Example input
{
"chain": "base",
"tokens": [
"base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"ETH",
"coingecko:bitcoin"
]
}