Simple Price Endpoint
Get current price and market data for cryptocurrencies by symbol or CoinGecko ID.Endpoint
x402 Payment Required
This endpoint uses CoinGecko’s x402 API. If x402 payment fails, it automatically falls back to CoinGecko’s free API to ensure data availability.Parameters
Target currency (e.g., “usd”, “eur”, “btc”)
Comma-separated symbols (e.g., “btc,eth,sol”). Either
symbols or ids is required.Comma-separated CoinGecko IDs (e.g., “bitcoin,ethereum,solana”). Either
symbols or ids is required.Include market cap in response
Include 24-hour volume
Include 24-hour price change percentage
Include last update timestamp
Price precision (e.g., “full”)
Example Request
Example Response
Onchain Endpoints
Access CoinGecko’s onchain data for DEX pools and tokens across multiple networks.Search Pools
Search for DEX pools by name, symbol, or contract address.Endpoint
Parameters
Search query (name, symbol, or contract address)
Network ID (e.g., “solana”, “base”, “eth”)
Page number for pagination
Comma-separated fields: base_token, quote_token, dex
Example Request
Trending Pools
Get trending DEX pools by network.Endpoint
Parameters
Network ID (e.g., “base”, “solana”, “eth”)
Time duration for trending calculation (e.g., “5m”, “1h”, “24h”)
Page number
Additional fields to include
Example Request
Token Data
Get detailed onchain data for a specific token.Endpoint
Parameters
Network ID (e.g., “base”, “solana”, “eth”)
Token contract address
Additional data to include (e.g., “top_pools”)
Include token composition data
Example Request
Token Price
Get simple price data for onchain tokens by contract address.Endpoint
Parameters
Network ID
Token contract address (comma-separated for multiple)
Include market cap
Include 24-hour volume
Include 24-hour price change
Example Request
Error Responses
- 400 Bad Request - Missing required parameters
- 502 Bad Gateway - CoinGecko upstream request failed
- 503 Service Unavailable - CoinGecko x402 payer unavailable
Data Source Header
Responses includeX-Data-Source header:
coingecko-pro-x402- Data from paid CoinGecko Pro APIcoingecko-free- Fallback data from free CoinGecko API (simple-price only)