$0.001
per call · USD Coin on Base
USD token price (POST wrapper, body: {symbol} or {chain, contract}) — $0.001 USDC
Endpoint
POST https://api.anchor-x402.com/v1/price/token7
Calls / 30d
4
Unique payers / 30d
Sep 8
Last called
exact
Payment scheme
Call this service
TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://api.anchor-x402.com/v1/price/token", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"symbol": "ETH"
}),
});
const data = await res.json();cURL
curl -X POST \
"https://api.anchor-x402.com/v1/price/token" \
-H "Content-Type: application/json" \
-d '{"symbol":"ETH"}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"age_seconds": 0,
"chain": null,
"contract": null,
"fetched_at": 1746820000,
"market_cap_usd": 375000000000,
"name": "Ethereum",
"source": "coingecko",
"symbol": "ETH",
"usd": 3120.55,
"usd_24h_change_pct": 1.23
}Payment details
Pay to
0x127462e296fac1a7f5cf33ba57bb2f0fff5cd0b6Asset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase, Solana, Polygon
Schemesexact
Is this your API?
Pin it to the top of Onchain Data and the homepage with a featured placement.
More from Token Price & similar services
T
Token Price · Token Price
402.com.tr
Pass a Base token contract address and get the current USD price, 24h change, liquidity, and volume from DexScreener (highest-liquidity pair auto-selected). No API key required.
GETBaseOnchain Data
$0.02 / call1 calls / 30d
C
Chain · Operations
agents.chain.link
Chainlink For Agents: execute a catalog workflow by workflow name.
POSTBaseOnchain Data
$0.01 / call39k calls / 30d
C
Chain · Operations Submit
agents.chain.link
Chainlink For Agents: submit a signed operation payload.
POSTBaseOnchain Data
$0.002 / call17k calls / 30d