{"uid":"cap_q5UYNfn5MnF89Z5n_FTBj","slug":"pro-api-coingecko-com-c6055aec","name":"CoinGecko Onchain Solana Token Price","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/solana/token_price/:solana_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_ApSQ4DcR0K7tdVsNGgyW3","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 DEX price and market data for a Solana token by its contract address using CoinGecko's on-chain data feed.","exampleAgentPrompt":"What's the current on-chain DEX price, 24-hour volume, and market cap for the Solana token at contract address So11111111111111111111111111111111111111112?","exampleUseCases":[{"title":"Monitor memecoin price movements","prompt":"I need to track the latest USD price and 24-hour price change for this Solana memecoin with contract address EPjFWaLb3odcccccccccccccccccccccccccccccc. Has it pumped or dumped in the last day?"},{"title":"Check DEX liquidity for token swaps","prompt":"Before I swap into this Solana token, can you check the current on-chain DEX price and total reserve in USD for contract address TokenkegQfeZyiNwAJsyFbPVwwQQfuKvpQeP8vqiGGc?"},{"title":"Track portfolio token market data","prompt":"Pull the real-time market cap and 24-hour trading volume for these Solana tokens in my portfolio: EPjFWaLb3odcccccccccccccccccccccccccccccc and TokenkegQfeZyiNwAJsyFbPVwwQQfuKvpQeP8vqiGGc. How are they performing?"}],"resultDescription":"Returns a JSON object containing the token's current USD price sourced from on-chain DEX activity on Solana, along with optional fields including 24-hour trading volume, market capitalization, 24-hour price change percentage, and total reserve in USD — keyed by the token contract address.","failureModes":["Invalid or non-existent Solana contract address returns empty or error response","Token not listed on any Solana DEX returns no price data","Payment failure (402) if x402 USDC payment is not provided or insufficient","Rate limiting if API key quota is exceeded","Network or upstream CoinGecko API outage returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need real-time on-chain DEX price data specifically for a Solana network token identified by its contract address, rather than a CoinGecko coin ID. Prefer this over the standard CoinGecko simple price endpoint when you need DEX-native pricing (not just exchange aggregates) and have a Solana contract address rather than a named coin slug.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:00:18.150Z","isFirstParty":false}