{"uid":"cap__LYX1kfyEvjmm3k41GkBV","slug":"token-price-by-contract-address-base-ethereum-solana-a5997ed9","name":"Token Price by Contract Address (Base, Ethereum, Solana)","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/token-price-by-contract?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"vs":{"enum":["usd"],"type":"string","default":"usd"},"chain":{"enum":["base","ethereum","solana"],"type":"string","default":"base"},"address":{"type":"string","pattern":"^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"USD Coin","chain":"base","found":true,"dex_id":"uniswap","symbol":"USDC","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","fdv_usd":1000000,"product":"scanpay.token_price","as_of_ms":1793491200000,"price_usd":1,"quote_token":{"name":"Wrapped Ether","symbol":"WETH","address":"0x2222222222222222222222222222222222222222"},"pair_address":"0x1111111111111111111111111111111111111111","price_native":0.0004,"price_source":"dexscreener","liquidity_usd":1000000,"market_cap_usd":null,"volume_24h_usd":100000,"price_change_24h_pct":0.01}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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_JtyybJYmF2v6__E7W5Qzs","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 real-time DexScreener token price, liquidity, volume, and pair info for a given contract address or mint on Base, Ethereum, or Solana.","exampleAgentPrompt":"What's the current DexScreener price, liquidity, and 24-hour volume for the USDC token at contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base?","exampleUseCases":[{"title":"DeFi token price check before trade","prompt":"Before I swap, can you look up the current USD price, liquidity, and 24h volume for the token at 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA on Base so I know the market conditions?"},{"title":"Solana memecoin price monitoring","prompt":"What's the live DexScreener price and 24-hour price change for the Solana token with mint address EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v?"},{"title":"Ethereum token market cap research","prompt":"Can you fetch the current price, FDV, and market cap for the Ethereum token at contract 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 and tell me which DEX it's primarily trading on?"}],"resultDescription":"A JSON object containing the token's name, symbol, chain, contract address, current USD price, native-token price, pair address, quote token details, liquidity in USD, 24h volume in USD, 24h price change percent, market cap, FDV, DEX ID, price source (DexScreener), and a timestamp (as_of_ms). Also includes a boolean 'found' flag indicating whether a live pair was located.","failureModes":["Token contract address not found on DexScreener — returns found: false","Invalid address format (not a valid EVM 0x address or Solana base58 mint) — rejected by schema validation","Token exists on-chain but has no active DEX pair — found: false with no price data","Unsupported chain specified — schema enforces enum of base/ethereum/solana","Network or DexScreener API timeout — upstream latency error","Payment of 0.001 USDC not provided or rejected — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need real-time DEX price data for a specific token by its exact contract address or Solana mint on Base, Ethereum, or Solana. It is ideal when you need not just a price but also liquidity depth, trading volume, pair metadata, and DEX source — all in one call. Prefer this over CoinGecko-style endpoints when the token is a newer or smaller-cap asset that may only appear on DEXes, or when you need the specific pair address and quote token for downstream DeFi operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:21.908Z","isFirstParty":false,"canonicalSlug":"token-price-by-contract-address-base-ethereum-solana-a5997ed9"}