CoinGecko
Client-executable: 73
OpenAPI 3.1:
/openapi/coingecko.jsonCoinGecko market data: prices, market caps, OHLC candles, exchanges, derivatives, treasuries, categories, NFTs, dominance and search.
Independent service, not affiliated with CoinGecko. CoinGecko is a trademark of its owner.
What you can get
- Spot prices, market caps, 24h volumes and OHLC candles for coins and token contracts
- Historical price and market-cap charts, exchange tickers and derivatives exchanges
- Global market metrics, BTC dominance, Fear & Greed history, categories and NFTs
- Public company and government crypto treasury holdings
First request
Example: GET /simple/price. Send your key in the X-Hub-Key header.
curl -sS -H "X-Hub-Key: $API_HUB_KEY" \
"https://openapihub.dev/run/coingecko/simple/price?ids=bitcoin,ethereum&vs_currencies=usd&include_24hr_change=true"Response
The provider's JSON arrives unchanged in data. Abridged example; values change with the market.
{
"source": "coingecko",
"status": 200,
"data": {
"bitcoin": {"usd": 91420, "usd_24h_change": 2.41},
"ethereum": {"usd": 3120.5, "usd_24h_change": 1.87}
}
}Limits and key
80 requests per second per key, bursts up to 160, 60 requests in flight. On 429, wait for Retry-After. Limits · Pricing · OpenAPI JSON
Get a free key in the Telegram bot: one key per account, issued in a few seconds.
Use cases
All endpoints
Charts
GET
/data/etl2/price_charts/{coin_id}/{vs_currency}/{range}.json — Historical price and volume chart series from CoinGecko's chart CDN (supports 24_hours through max).GET
/data/etl2/market_cap/{coin_id}/{vs_currency}/{range}.json — Historical market cap and volume chart series for a coin from CoinGecko's chart CDN.GET
/web/etl2/ohlc/{coin_id}/series/{vs_currency}/{range}.json — Web OHLC candlestick and volume series for a coin (includes full max history).GET
/web/en/coins/{coin_id}/financials_chart_data — Protocol financial time series (fees, revenue and related on-chain metrics) for a DeFi token.GET
/web/etl2/global_charts/{vs_currency}/total_market_cap — Global total crypto market cap time series.GET
/web/etl2/global_charts/{vs_currency}/defi_market_cap — Global DeFi sector market cap time series.GET
/web/etl2/global_charts/{vs_currency}/stablecoin_market_cap — Global stablecoin supply and market cap breakdown time series.GET
/web/etl2/global_charts/{vs_currency}/altcoin_market_cap — Global altcoin (ex-BTC) market cap time series.GET
/web/etl2/stablecoin_charts/{vs_currency}/backing_mechanism — Stablecoin market cap history broken down by backing mechanism (fiat, crypto, algorithmic).GET
/web/etl2/stablecoin_charts/{vs_currency}/fiat_currency — Stablecoin market cap history broken down by pegged fiat currency.Chat
Coins
GET
/coins/{coin_id}/market_chart — Historical price, market cap and volume series; granularity is auto.GET
/coins/{id}/contract/{contract_address} — Full coin metadata and market data resolved by asset platform and token contract address.GET
/coins/{id}/contract/{contract_address}/market_chart — Historical price, market cap and volume series for a token contract address.GET
/coins/{id}/contract/{contract_address}/market_chart/range — Historical price, market cap and volume series for a token contract within a unix timestamp range.GET
/coins/{coin_id}/market_chart/range — Historical price, market cap and volume series for a coin within a unix timestamp range.GET
/coins/{coin_id}/history — Historical snapshot (price, market cap, volume) for a coin on a specific DD-MM-YYYY date.Derivatives
GET
/derivatives/exchanges — Derivatives exchanges ranked by open interest and 24h futures/perpetuals volume.GET
/derivatives/exchanges/{id} — Derivatives exchange metadata, open interest and optional contract tickers.GET
/data/etl2/price_charts/{coin_id}/derivatives.json — Historical open interest and funding rate series for a coin.Dominance
GET
/web/etl2/bitcoin_dominance/market_share_breakdown — Current market-share split between BTC, ETH, stablecoins and others.GET
/web/etl2/bitcoin_dominance/max — Full BTC dominance history as [timestamp_ms, percentage] points.GET
/web/etl2/bitcoin_dominance/{range} — BTC dominance series for a selected window (24_hours, 7_days, 30_days, 365_days).Exchanges
GET
/exchanges/{id} — Exchange detail including trust score, 24h BTC volume, coin/pair counts and top tickers.GET
/exchanges/{id}/tickers — Paginated market tickers for one exchange with spread, volume and trust score.GET
/exchanges/{id}/volume_chart — Historical exchange trading volume in BTC as [timestamp_ms, volume_btc_str] rows.GET
/web/etl2/exchange_charts/coins_listed — Historical count of coins listed across CEX and DEX venues.GET
/web/etl2/exchange_charts/derivatives_volume — Historical aggregate CEX vs DEX derivatives trading volume.Markets
GET
/global/decentralized_finance_defi — Global DeFi market cap, ETH market cap ratio, trading volume and top coin dominance.GET
/web/etl2/charts/categories/heatmap_data — Sector-level category treemap heatmap with market cap, volume and 24h change.GET
/web/etl2/charts/categories/market_cap_chart_data — Top category market cap time series over the selected duration.GET
/data/etl2/charts/categories/{category}/coins_heatmap_data — Per-category coin treemap heatmap cells with market cap, volume and change.Movers
GET
/web/coins/top_gainers_losers_price_percentage_change — Percentage-change slice backing the gainers and losers table.NFT
GET
/nfts/{id} — Detailed NFT collection metrics: floor price, market cap, volume, ATH, supply and holders.GET
/nfts/{asset_platform_id}/contract/{contract_address} — Detailed NFT collection metrics resolved by asset platform and collection contract address.GET
/web/en/charts/nft/treemap-chart-data — NFT collection treemap data with market cap, floor price and percentage change.Prices
GET
/simple/token_price/{id} — Spot price, market cap and 24h metrics for ERC-20/SPL token contracts on one asset platform.Reference
GET
/token_lists/{asset_platform_id}/all.json — Uniswap-format token list for an asset platform with addresses, symbols, decimals and logos.GET
/entities/list — Publicly listed companies and government entities tracked for crypto treasury holdings.GET
/public_treasury/{entity_id} — Detailed crypto treasury holdings, valuation and mNAV metrics for one tracked entity.GET
/web/geckoterminal/token_is_valid — Whether a contract address resolves on a GeckoTerminal network.Search
GET
/web/en/search_v2/trending_geckoterminal_pools — Trending GeckoTerminal pools shown in the search dropdown.GET
/web/price_charts/{coin_id}/compare/search — Coin autocomplete candidates for comparing price charts against a base coin.Sentiment
GET
/web/etl2/fear_and_greed_index/max — Fear and Greed Index history as [timestamp_ms, value] points.Service