{"uid":"cap_U_q1xXKQ0NXRC43H-f6CS","slug":"pro-api-coingecko-com-df8dbec7","name":"CoinGecko Pro Onchain Token Price - Base Network (0x0004a2c7)","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/0x0004a2c7a40d97add19a428dae3fab4654c0c4a8","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":{"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","h24_volume_usd","market_cap_usd","h24_price_change_percentage"],"properties":{"token_prices":{"type":"object","required":["0x0004a2c7a40d97add19a428dae3fab4654c0c4a8"],"properties":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":{"type":"null"}}},"h24_volume_usd":{"type":"object","required":["0x0004a2c7a40d97add19a428dae3fab4654c0c4a8"],"properties":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":{"type":"string"}}},"market_cap_usd":{"type":"object","required":["0x0004a2c7a40d97add19a428dae3fab4654c0c4a8"],"properties":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":{"type":"null"}}},"h24_price_change_percentage":{"type":"object","required":["0x0004a2c7a40d97add19a428dae3fab4654c0c4a8"],"properties":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":{"type":"string"}}}}}}}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"include_24hr_vol":true,"mcap_fdv_fallback":true,"include_market_cap":true,"include_inactive_source":true,"include_24hr_price_change":true,"include_total_reserve_in_usd":true}},"output":{"type":"object","example":{"data":{"id":"token-price-query","type":"simple_token_price","attributes":{"token_prices":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":{"price_usd":0.00125,"market_cap_usd":5000000,"volume_usd_24h":250000,"total_reserve_in_usd":1000000,"price_change_percentage_24h":2.5}}}}}}},"response":{"data":{"id":"1b7cd805-ab46-49da-acc0-0912748ee5ab","type":"simple_token_price","attributes":{"token_prices":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":"8196006.21045734"},"h24_volume_usd":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":"0.0"},"market_cap_usd":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":"8.032086086248193e+18"},"last_trade_timestamp":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":"1733607809"},"total_reserve_in_usd":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":"0.003853261365097351272071678814599752484983589045899667"},"h24_price_change_percentage":{"0x0004a2c7a40d97add19a428dae3fab4654c0c4a8":"0.0"}}}}},"exampleRequest":{"include_24hr_vol":true,"mcap_fdv_fallback":true,"include_market_cap":true,"include_inactive_source":true,"include_24hr_price_change":true,"include_total_reserve_in_usd":true},"tags":["x402"],"displayCostAmount":"0.010000","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.010000/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_8UFLQ9jEnv343467UQ6BD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns onchain DEX price and market data for a specific token contract (0x0004a2c7a40d97add19a428dae3fab4654c0c4a8) on the Base network via CoinGecko's GeckoTerminal data.","exampleAgentPrompt":"What's the current onchain price and 24-hour volume for the token at contract address 0x0004a2c7a40d97add19a428dae3fab4654c0c4a8 on the Base network? Include market cap and price change too.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the token's current USD price sourced from onchain DEX liquidity pools on Base, along with optional fields: 24hr trading volume, market cap, 24hr price change percentage, and total reserve in USD — all indexed by the contract address.","failureModes":["Token contract address not found on Base network — returns empty data or 404","Invalid or inactive token contract returns no price data","Network identifier mismatch causes no results","Rate limit or authentication failure returns 401/429","Token has insufficient liquidity on DEX — price may be stale or unavailable"],"whenToPreferThis":"Use this endpoint when you specifically need onchain DEX-sourced price data for this exact token contract on the Base network, rather than CEX prices. Ideal for DeFi applications, portfolio trackers, or agents monitoring Base-native tokens that may not be listed on centralized exchanges. Prefer this over the generic simple/price endpoint when you need DEX liquidity-based pricing or reserve data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:30:25.599Z","isFirstParty":false}