{"uid":"cap_EZyoiT8oPdNpevXkLA9q_","slug":"api-anchor-x402-com-66077b88","name":"Anchor X402 Token Price Lookup","description":"USD token price (POST wrapper, body: {symbol} or {chain, contract}) — $0.001 USDC","url":"https://api.anchor-x402.com/v1/price/token","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{"chain":{"type":"string","description":"Chain slug: base, ethereum, solana, polygon, arbitrum, optimism, bsc, avalanche."},"symbol":{"type":"string","description":"Token symbol (BTC, ETH, SOL, USDC, …). Mutually exclusive with chain+contract."},"contract":{"type":"string","description":"Token contract address. Required with chain."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"usd":3120.55,"name":"Ethereum","chain":null,"source":"coingecko","symbol":"ETH","contract":null,"fetched_at":1746820000,"age_seconds":0,"market_cap_usd":375000000000,"usd_24h_change_pct":1.23}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"symbol":"ETH"}}},"response":{"usd":1818.75,"name":"Ethereum","chain":null,"source":"coingecko","symbol":"ETH","contract":null,"fetched_at":1780528971,"age_seconds":0,"market_cap_usd":219501933869.2597,"usd_24h_change_pct":-1.8953362174456942}},"exampleRequest":{"symbol":"ETH"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HsKWwYwQK2FbD7M5BAVYh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current USD price for any major cryptocurrency token, identified by symbol or by chain+contract address","exampleAgentPrompt":"What's the current USD price of ETH? Also, can you grab the price of the USDC token on Base using its contract address 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913?","exampleUseCases":null,"resultDescription":"A USD price value for the requested token, returned as a structured JSON object. The caller provides either a token symbol (e.g. BTC, ETH, SOL) or a chain slug plus contract address, and receives the current market price in USD.","failureModes":["Symbol not recognized — returns error if the token symbol is unknown or unsupported","Missing required parameter combination — chain provided without contract or vice versa returns validation error","Unsupported chain slug — unrecognized chain identifier returns an error","Token contract not found on specified chain — returns error if the contract address does not exist or is not indexed","Rate or payment failure — x402 payment not accepted results in 402 response"],"whenToPreferThis":"Use this endpoint when you need a quick, low-cost ($0.001 USDC) spot USD price for a specific token identified by either its well-known symbol or its on-chain contract address. Prefer this over general financial APIs when working in a crypto-native, agent-driven pipeline that supports x402 micropayments, or when you need contract-level precision across multiple chains including Base, Ethereum, Solana, Polygon, Arbitrum, Optimism, BSC, and Avalanche.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:41:52.132Z","isFirstParty":false}