{"uid":"cap_AAN0b-PdNkq6kMMq4H-Pk","slug":"pro-api-coingecko-com-ee5a86cc","name":"CoinGecko Pro Onchain Token Price — Base Network (0x00c9c681)","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/0x00c9c681d803d27d9c2e1e8612de073db0c5c390","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"],"properties":{"token_prices":{"type":"object","required":["0x00c9c681d803d27d9c2e1e8612de073db0c5c390"],"properties":{"0x00c9c681d803d27d9c2e1e8612de073db0c5c390":{"type":"string"}}}}}}}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"include_24hr_vol":true,"include_market_cap":true,"include_inactive_source":true,"include_24hr_price_change":true}},"output":{"type":"object","example":{"0x00c9c681d803d27d9c2e1e8612de073db0c5c390":{"usd":1.25,"usd_24h_vol":50000,"usd_24h_change":2.5,"usd_market_cap":500000000}}}},"response":{"data":{"id":"aa5f724b-c679-4e7c-9bf1-e5df01195a9a","type":"simple_token_price","attributes":{"token_prices":{"0x00c9c681d803d27d9c2e1e8612de073db0c5c390":"0.00000003460677697"},"h24_volume_usd":{"0x00c9c681d803d27d9c2e1e8612de073db0c5c390":"0.0"},"market_cap_usd":{"0x00c9c681d803d27d9c2e1e8612de073db0c5c390":null},"last_trade_timestamp":{"0x00c9c681d803d27d9c2e1e8612de073db0c5c390":"1780917829"},"h24_price_change_percentage":{"0x00c9c681d803d27d9c2e1e8612de073db0c5c390":"0.0"}}}}},"exampleRequest":{"include_24hr_vol":true,"include_market_cap":true,"include_inactive_source":true,"include_24hr_price_change":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_TxD1KWJPEVd-aC798WsRz","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 real-time onchain DEX price and market data for a specific token contract (0x00c9c681d803d27d9c2e1e8612de073db0c5c390) on the Base network via CoinGecko Pro.","exampleAgentPrompt":"What's the current onchain price and 24-hour price change for the token at contract 0x00c9c681d803d27d9c2e1e8612de073db0c5c390 on the Base network, and can you also include its market cap and 24-hour trading volume from CoinGecko's onchain DEX data?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the current onchain DEX price of the token in USD, and optionally 24-hour volume, market cap, 24-hour price change percentage, and total reserve in USD — sourced from DEX liquidity pools on the Base network.","failureModes":["Token contract address not found on Base network — returns empty or null price data","Network unavailable or CoinGecko Pro API downtime — HTTP 503","Invalid or malformed contract address — HTTP 400 or empty response","Token is inactive and include_inactive_source not set — returns no data","Payment not processed (x402 payment required) — HTTP 402"],"whenToPreferThis":"Use this endpoint when you need real-time onchain DEX price data specifically for the token at 0x00c9c681d803d27d9c2e1e8612de073db0c5c390 on the Coinbase Base network, as opposed to CoinGecko's centralized exchange price feeds. Ideal for DeFi applications, arbitrage monitoring, or portfolio trackers that require DEX-sourced pricing rather than CEX aggregates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:31:06.018Z","isFirstParty":false}