Token Price · Price Token

by Token Price

POSTBaseSolanaPolygon

$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/token

7

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 to0x127462e296fac1a7f5cf33ba57bb2f0fff5cd0b6
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Polygon
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Token Price & similar services