{"uid":"cap_H1LBxwRLcVTnWSduL3En0","slug":"coingecko-onchain-dex-token-price-by-contract-address-af11609c","name":"CoinGecko Onchain DEX Token Price by Contract Address","description":"Query onchain DEX token price & market data based on the provided token contract addresses on a network.","url":"https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/:network/token_price/:addresses?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["network","addresses"],"properties":{"network":{"type":"string"},"addresses":{"type":"string"}}},"queryParams":{"type":"object","properties":{"include_24hr_vol":{"type":"boolean"},"mcap_fdv_fallback":{"type":"boolean"},"include_market_cap":{"type":"boolean"},"include_inactive_source":{"type":"boolean"},"include_24hr_price_change":{"type":"boolean"},"include_total_reserve_in_usd":{"type":"boolean"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["id","type","attributes"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"attributes":{"type":"object","required":["token_prices"],"properties":{"token_prices":{"type":"object","additionalProperties":{"type":"string"}},"h24_volume_usd":{"type":"object","additionalProperties":{"type":"string"}},"market_cap_usd":{"type":"object","additionalProperties":{"type":"string"}},"last_trade_timestamp":{"type":"object","additionalProperties":{"type":"integer"}},"total_reserve_in_usd":{"type":"object","additionalProperties":{"type":"string"}},"h24_price_change_percentage":{"type":"object","additionalProperties":{"type":"string"}}}}}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ua-6lS4bh7fQI7IRMBPh4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time on-chain DEX price and market data for one or more token contract addresses on a specified blockchain network.","exampleAgentPrompt":"What's the current on-chain DEX price for the token at contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on the Ethereum network — and can you also pull the 24-hour volume and price change?","exampleUseCases":[{"title":"DeFi portfolio on-chain price check","prompt":"Can you get me the current on-chain DEX prices for these two Ethereum token contracts — 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 and 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 — along with their 24-hour volume and market cap?"},{"title":"Solana token price monitoring","prompt":"Look up the live on-chain price and 24-hour price change for the Solana token at mint address So11111111111111111111111111111111111111112 using CoinGecko's DEX data."},{"title":"Base network token liquidity check","prompt":"What are the total reserves in USD and the current DEX price for the token at contract 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 on the Base network?"}],"resultDescription":"Returns a structured data object keyed by token contract address containing: current USD token price, optional 24-hour trading volume, optional market cap, optional 24-hour price change percentage, optional total reserve in USD, and optional last trade timestamp — all sourced from on-chain DEX activity.","failureModes":["Invalid or unsupported network name returns an error or empty data","Unknown or untraded contract address returns no price data","Malformed contract address format causes a 400 or empty response","Token with no recent DEX activity may return stale or null timestamps","Rate limiting or payment failure returns a 402 or 429 error","Requesting too many addresses at once may result in partial or truncated results"],"whenToPreferThis":"Prefer this endpoint when you need on-chain DEX-sourced price data for a specific token contract address rather than CoinGecko's centralized exchange aggregated prices. Ideal for DeFi applications, smart contract token price checks, or when you have a contract address but no CoinGecko coin ID. Best for Ethereum, Base, Solana, and other supported EVM/non-EVM networks where DEX liquidity is the primary price source.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:11.430Z","isFirstParty":false,"canonicalSlug":"coingecko-onchain-dex-token-price-by-contract-address-af11609c"}