TL;DR
Use /coins/{id} for deep-dive coin fundamentals, /coins/markets for bulk screening, /coins/{id}/ohlc/range for historical backtesting, /search/trending to spot market momentum, and /coins/categories to analyze sector performance.Market research is the foundation of every informed crypto decision - whether you’re evaluating a new token’s fundamentals, analyzing sector-level trends, or running historical backtests to validate a thesis. This guide walks you through the CoinGecko API endpoints that matter most for market research workflows, and ties them together into a complete workflow at the end:
- Volume, liquidity, supply, and ATH metrics for comprehensive coin analysis
- Historical OHLCV data to backtest strategies across custom timeframes
- Trending coins and top movers to spot emerging market momentum
- Category performance and onchain metrics for sector-level and DeFi research
Navigate the API faster with AI
Install the CoinGecko SKILL to give your AI coding agent built-in knowledge of every endpoint, parameter, and workflow. Setup takes less than 3 minutes.
Endpoint Overview
| Endpoint | What It Gives You | Best For |
|---|---|---|
| /coins/{id} | Full coin metadata, ATH, supply, volume, liquidity, and market data | Deep-dive fundamental analysis |
| /coins/markets | Bulk market data for multiple coins with price change percentages | Screening and ranking coins |
| /coins/{id}/ohlc/range | OHLC candles for a custom date range | Backtesting strategies with precise time windows |
| /coins/{id}/market_chart | Price, market cap, and volume over a given number of days | Historical trend analysis |
| /search/trending | Trending coins, NFTs, and categories in the last 24 hours | Spotting emerging momentum |
| /coins/top_gainers_losers | Top 30 gainers and losers by time duration | Identifying market movers |
| /coins/categories | Category-level market cap, volume, and 24h change | Sector and thematic analysis |
| /global | Total market cap, BTC dominance, active coins, and volume | Macro market overview |
| /onchain/networks/trending_pools | Trending liquidity pools across all networks | Onchain DeFi research |
Replace
Don’t have one yet? Get your API key here.
YOUR_API_KEY in the examples below with your actual CoinGecko API key.Don’t have one yet? Get your API key here.
Deep-Dive Coin Fundamentals — /coins/{id}
🔗 More endpoint details here
The single most comprehensive endpoint for researching a coin. Returns everything from ATH and ATL to circulating supply, total supply, max supply, trading volume, liquidity score, community data, and developer activity - all in one call.
Example request:
| Parameter | Why It Matters |
|---|---|
localization | Set to false to reduce response size when you only need English |
tickers | Set to false if you don’t need exchange ticker data |
community_data | Includes Twitter followers, Reddit subscribers, and Telegram members |
developer_data | Includes GitHub commits, stars, forks, and contributors |
market_data object alone covers price, volume, supply, ATH/ATL, and fully diluted valuation.
Bulk Market Screening — /coins/markets
🔗 More endpoint details here
When you need to compare many coins at once - ranking by market cap, filtering by volume, or scanning for top movers across multiple timeframes.
Example request:
| Parameter | Why It Matters |
|---|---|
order | Sort by market_cap_desc, volume_desc, or market_cap_asc to surface what matters |
sparkline | Includes 7-day sparkline data for quick visual trend scanning |
price_change_percentage | Include 1h,24h,7d,30d to spot momentum across multiple timeframes |
per_page | Up to 250 results per page for efficient bulk screening |
category | Filter by a specific category (e.g., decentralized-finance-defi, layer-1) |
Historical OHLCV for Backtesting
/coins/{id}/ohlc/range
🔗 More endpoint details here
Returns OHLC candle data for a custom date range - the core data format for backtesting technical strategies.
Example request:
| Parameter | Why It Matters |
|---|---|
from / to | Define your backtest window using ISO date strings or UNIX timestamps |
vs_currency | Target currency for the OHLC data |
interval | Use daily or hourly for consistent candle intervals (paid plans) |
[timestamp, open, high, low, close].
Candle granularity is automatic when no
interval is specified:- 1-2 days: 30-minute candles
- 3-30 days: 4-hour candles
- 31+ days: 4-day candles
interval=daily or interval=hourly./coins/{id}/market_chart
🔗 More endpoint details here
When your research needs more than OHLC - this endpoint returns price, market cap, and volume time series, useful for volume-weighted analysis or market cap trend research. Just pass a days parameter to get the full latest data directly, similar to CoinGecko’s web charts.
Example request:
Trending Coins and Market Movers
/search/trending
🔗 More endpoint details here
Surfaces the coins, NFTs, and categories that are trending in CoinGecko search over the last 24 hours - a useful signal for emerging market interest.
Example request:
/coins/top_gainers_losers
🔗 More endpoint details here
Returns the top 30 coins with the largest price gains and losses for a specific time duration - perfect for finding breakout or breakdown opportunities.
Example request:
| Parameter | Why It Matters |
|---|---|
duration | Choose from 1h, 24h, 7d, 14d, 30d, 60d, 1y to match your research window |
vs_currency | Target currency for price change calculations |
Category and Sector Analysis — /coins/categories
🔗 More endpoint details here
Returns market data aggregated at the category level - market cap, volume, and 24h change for every sector. Essential for thematic research and identifying which sectors are leading or lagging.
Example request:
| Parameter | Why It Matters |
|---|---|
order | Sort by market_cap_desc, market_cap_change_percentage_24h_desc, name_asc, etc. |
Macro Market Overview — /global
🔗 More endpoint details here
Returns the big-picture crypto market data - total market cap, BTC dominance, total volume, and the number of active coins. Great for framing your research in the context of overall market conditions.
Example request:
market_cap_percentage field gives you BTC and ETH dominance at a glance - a key signal for market rotation research.
Onchain Trending and Metrics
Trending Pools — /onchain/networks/trending_pools
🔗 More endpoint details here
Surfaces the hottest liquidity pools across all networks - useful for spotting early DeFi momentum before it shows up in CoinGecko’s main listings.
Example request:
| Parameter | Why It Matters |
|---|---|
include | Add base_token, quote_token, dex, network for richer context |
duration | Filter by 1h, 6h, or 24h trending window |
Token Info — /onchain/networks/{network}/tokens/{address}/info
🔗 More endpoint details here
Get detailed metadata for any onchain token by contract address - including description, socials, websites, and GeckoTerminal analytics score.
Example request:
Putting It All Together
Here’s how these endpoints fit into a typical market research workflow:- Start with the macro view - Query
/globalto understand overall market conditions and dominance shifts - Scan for momentum - Check
/search/trendingand/coins/top_gainers_losersto spot what’s moving - Analyze sectors - Use
/coins/categoriesto identify which sectors are outperforming - Screen candidates - Pull
/coins/marketswith category filters and multi-timeframe price changes - Deep-dive fundamentals - Query
/coins/{id}for ATH, supply, volume, and community metrics - Backtest with history - Fetch
/coins/{id}/ohlc/rangeor/coins/{id}/market_chartfor historical data - Research onchain - Use trending pools and token info for DeFi-native alpha
Integrate with CoinGecko MCP Server
Connect your AI agent directly to CoinGecko’s API using our MCP server - enabling real-time crypto data queries from tools like Claude Desktop, Cursor, and more.
Have feedback or need help? Reach out to
eason.lim@coingecko[dot]com

