Extensive & Reliable On-Chain DEX Data API
Scale Your DeFi Project Efficiently
- 2M+ tokens
- 100+ networks, including Ethereum, BNB Chain, Pulsechain, Arbitrum and more
- 800+ DEXes, including Uniswap, Pancakeswap, Orca, Raydium, Curve and more
- 2.3M+ liquidity pools
- In operation since early 2014
- 99.9% uptime
- Enterprise clients enjoy 24/7 support
- Data refreshes every 10-20 seconds, subject to the network’s availability
- All endpoint tags are cached for 1 minute
One Unified API for Crypto, NFT and DEX Data
Endpoint Category | Description |
---|---|
/onchain/simple/*/token_price/* | The simplest way to get the latest price USD price of tokens on a network, with token addresses |
/onchain/networks | Get the full list of supported networks |
/onchain/network/*dexes | Get the full list of supported dexes on a network |
/onchains/network/*/pools/* | Get liquidity pool data such as: trending pools, new pools, and market data like price, reserve, market cap, transacions, volume. Search endpoint is also available to search for pools on a network. |
/onchains/network/*/tokens/* | Get token related data like top pools, price, fdv, reserve, volume, market cap, geckoterminal score, coingecko api id. Metadata is also available, including image, website, description, and social media links. |
/onchains/network/*/ohlcvs/* | Get OHLCV historical chart data of a liquidity pool |
/onchains/network/*/trades | Get the latest 300 trades from a liquidity pool |
Why Web3 Projects Use CoinGecko API
Frequently Asked Questions
Does GeckoTerminal have an API?
GeckoTerminal API, which was previously in Beta, has now been integrated into CoinGecko API. Users can access on-chain and aggregated market data for over 2 million coins and tokens for free or on a paid plan, depending on usage.
Is CoinGecko API the same as GeckoTerminal API?
Yes, GeckoTerminal API’s DEX data endpoints have been integrated into CoinGecko API as of February 2024. Users and developers can call CoinGecko API to retrieve on-chain market data like token price and liquidity on DEXes, in addition to aggregated real-time and historical crypto prices, market data, metadata and more, which have always been available via CoinGecko API.
Where does CoinGecko API get its data?
CoinGecko aggregates cryptocurrency price and market data across 900+ centralized and decentralized exchanges, while GeckoTerminal tracks on-chain token and market data on decentralized exchanges across 110+ networks.
CoinGecko and GeckoTerminal’s data is trusted by millions worldwide. Learn more about our Methodology and how we calculate and evaluate metrics.
What on-chain data can I get from CoinGecko API?
You can get price and liquidity data for over 2 million tokens on-chain with CoinGecko API. Additionally, you can get data on liquidity pools on a network (top pools, trending pools etc.)
How often does CoinGecko API data get updated or refreshed?
Endpoints are cached between 1 to 5 minutes, and most data can be expected to update at a similar interval unless otherwise stated in our documentation. Paid API plans have a faster update frequency, i.e. 30 seconds for a /simple/price endpoint.
Specifically for on-chain data, data is typically updated 10 to 20 seconds after a transaction is finalized on the blockchain, subject to the network’s availability.
We recommend users to throttle responses accordingly to call our API efficiently (i.e. avoid wasting bandwidth by making overly-frequent calls).