{"uid":"cap_pW0fadgFQzvBSvLaX1mqi","slug":"pro-api-coingecko-com-29febcc9","name":"CoinGecko Onchain DEX Token Price (Ethereum)","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/eth/token_price/:address","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"},"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MnG6gnx2enZvkG2XYrYqQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time onchain DEX price and market data for one or more ERC-20 tokens on Ethereum by contract address","exampleAgentPrompt":"What's the current onchain DEX price and 24-hour volume for the Ethereum token at contract address 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984? Include market cap and 24hr price change too.","exampleUseCases":[{"title":"Monitor emerging token valuations for portfolio","prompt":"I need you to check the current prices and market caps for these new Ethereum tokens I'm watching. Here are their contract addresses: 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 and 0x6B175474E89094C44Da98b954EedeAC495271d0F. Give me the 24-hour price changes too so I can see which ones are moving."},{"title":"Real-time DEX liquidity analysis for swaps","prompt":"Before I execute a large swap on Uniswap, can you pull the live onchain DEX data for this token contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48? I need the current price, 24-hour volume, and total reserve value to estimate my slippage impact."},{"title":"Alert on unusual token trading activity","prompt":"Keep an eye on the Ethereum token at 0x2260FAC5E5542a773Aa44fBCfeDd86b8E8DB1C02 and watch for sudden changes in its onchain DEX price and 24-hour trading volume. Let me know if the price moves more than 10% or volume spikes significantly from typical levels."}],"resultDescription":"Returns current USD price and optional market data (market cap, 24hr volume, 24hr price change, total reserve in USD) for the specified ERC-20 token contract on the Ethereum network, sourced from onchain DEX liquidity pools via CoinGecko's GeckoTerminal data.","failureModes":["Token contract address not found on Ethereum — returns empty or null price data","Invalid contract address format — returns 400 bad request","Token has insufficient DEX liquidity — price may be missing or unreliable","API key missing or invalid — returns 401 unauthorized","Rate limit exceeded — returns 429 too many requests","Network identifier mismatch — if contract exists on another chain, no data returned for ETH"],"whenToPreferThis":"Use this endpoint when you need live onchain DEX-sourced pricing for a specific ERC-20 token on Ethereum by contract address, especially for newer or long-tail tokens not yet listed on centralized exchanges. Prefer over CoinGecko's coin ID-based price endpoint when you have a contract address but not a CoinGecko coin ID. Prefer over Base network endpoints when the token is specifically on Ethereum mainnet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:02.964Z","isFirstParty":false}