{"uid":"cap_nRosxoR-jsn0ix3GYzo6_","slug":"pro-api-coingecko-com-c8ff9930","name":"CoinGecko Onchain DEX Token Price - Base Network (Multi-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/base/token_price/0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b,0x4200000000000000000000000000000000000006?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"},"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":{"request":{"input":{"type":"http","method":"GET","queryParams":{"include_24hr_vol":true,"include_market_cap":true,"include_24hr_price_change":true}},"output":{"type":"object","example":{"0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b":{"usd":1.25,"usd_24h_vol":500000,"usd_24h_change":2.5,"usd_market_cap":1000000},"0x4200000000000000000000000000000000000006":{"usd":2000,"usd_24h_vol":5000000,"usd_24h_change":1.2,"usd_market_cap":10000000000}}}},"response":{"data":{"id":"27702f45-717b-4e5f-8aae-26d1c8ef01d9","type":"simple_token_price","attributes":{"token_prices":{"0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b":"0.75658867641122","0x4200000000000000000000000000000000000006":"2422.6"},"h24_volume_usd":{"0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b":"17458959.6785316","0x4200000000000000000000000000000000000006":"648690845.628892"},"market_cap_usd":{"0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b":"496566262.6167855","0x4200000000000000000000000000000000000006":"575910400.5830622"},"h24_price_change_percentage":{"0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b":"3.7368916562","0x4200000000000000000000000000000000000006":"3.1683842944"}}}}},"exampleRequest":{"include_24hr_vol":true,"include_market_cap":true,"include_24hr_price_change":true},"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_gXc1ufC9h017zYk7izRLT","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, 24h volume, market cap, and price change for multiple token contract addresses on the Base network.","exampleAgentPrompt":"What's the current onchain price, 24h trading volume, market cap, and 24h price change for tokens 0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b and 0x4200000000000000000000000000000000000006 on the Base network?","exampleUseCases":null,"resultDescription":"A JSON object keyed by contract address, each containing the current USD price, 24h trading volume in USD, market capitalization in USD, and 24h price change percentage sourced from onchain DEX data on the Base network.","failureModes":["Invalid or unrecognized contract address returns empty or missing data for that address","Network not supported returns 404 or error response","Rate limit exceeded returns 429 Too Many Requests","Payment failure (x402) blocks the request before data is returned","Inactive or low-liquidity token may return null or incomplete market data fields"],"whenToPreferThis":"Use this endpoint when you need real-time onchain DEX price data for one or more specific ERC-20 token contract addresses on the Base network, especially when you want volume, market cap, or 24h change alongside the price. Prefer this over CoinGecko's coin-ID-based simple price endpoint when you only have a contract address and not a CoinGecko coin ID, or when you specifically need DEX-sourced onchain data rather than aggregated CEX/DEX prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:44:51.497Z","isFirstParty":false,"canonicalSlug":"pro-api-coingecko-com-c8ff9930"}