> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coingecko.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Market Research

> Conduct deep market research with fundamentals, trending data, sector analysis, and onchain analytics from CoinGecko API

> [card] [Set up your API key](https://docs.coingecko.com/docs/setting-up-your-api-key.md)

> [card] [Build faster with AI](https://docs.coingecko.com/ai-integration.md#coding-agents)

> [!NOTE]
>
> **TL;DR**\\
>
> Use [/coins/\{id}](https://docs.coingecko.com/reference/coins-id.md) for deep-dive fundamentals, [/coins/markets](https://docs.coingecko.com/reference/coins-markets.md) for bulk screening, [/search/trending](https://docs.coingecko.com/reference/trending-search.md) for momentum signals, [/coins/categories](https://docs.coingecko.com/reference/coins-categories.md) for sector performance, and [/global](https://docs.coingecko.com/reference/crypto-global.md) for the macro view.

> Replace `YOUR_API_KEY` in the examples below with your actual key. [Get one here →](https://www.coingecko.com/en/api/pricing)

## Research Workflow

**1. Macro overview — /global**

Total market cap, BTC dominance, volume, and active coins. Frame your research in the context of overall market conditions.

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/global" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Global Data →](https://docs.coingecko.com/reference/crypto-global.md)

> [tab] Demo API
>
> ```bash theme={null}
> curl -X GET \
>   "https://api.coingecko.com/api/v3/global" \
>   -H "x-cg-demo-api-key: YOUR_API_KEY"
> ```
>
> > [Global Data →](https://docs.coingecko.com/demo/reference/crypto-global.md)

The `market_cap_percentage` field gives BTC and ETH dominance — a key signal for market rotation.

**2. Spot momentum — /search/trending**

Coins, NFTs, and categories trending in CoinGecko search over the last 24 hours.

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/search/trending" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Trending Search →](https://docs.coingecko.com/reference/trending-search.md)

> [tab] Demo API
>
> ```bash theme={null}
> curl -X GET \
>   "https://api.coingecko.com/api/v3/search/trending" \
>   -H "x-cg-demo-api-key: YOUR_API_KEY"
> ```
>
> > [Trending Search →](https://docs.coingecko.com/demo/reference/trending-search.md)

**3. Top movers — /coins/top\_gainers\_losers**

Top 30 coins with the largest price gains and losses — spot breakout or breakdown opportunities.

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/coins/top_gainers_losers?vs_currency=usd&duration=24h" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Top Gainers/Losers →](https://docs.coingecko.com/reference/coins-top-gainers-losers.md)

> [tab] Demo API
>
> `/coins/top_gainers_losers` is not available on the Demo API.\\
>
> [Upgrade to Pro →](https://www.coingecko.com/en/api/pricing)

| Key param | Use |
| - | - |
| `duration` | `1h`, `24h`, `7d`, `14d`, `30d`, `60d`, `1y` |

**4. Analyze sectors — /coins/categories**

Category-level market cap, volume, and 24h change. Identify which sectors are leading or lagging.

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/coins/categories?order=market_cap_change_percentage_24h_desc" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Coin Categories →](https://docs.coingecko.com/reference/coins-categories.md)

> [tab] Demo API
>
> ```bash theme={null}
> curl -X GET \
>   "https://api.coingecko.com/api/v3/coins/categories?order=market_cap_change_percentage_24h_desc" \
>   -H "x-cg-demo-api-key: YOUR_API_KEY"
> ```
>
> > [Coin Categories →](https://docs.coingecko.com/demo/reference/coins-categories.md)

> [!TIP]
>
> Combine with `/coins/markets?category=layer-1` to drill into individual coins within a strong sector.

**5. Screen candidates — /coins/markets**

Bulk market data for up to 250 coins per page — rankings, sparklines, and multi-timeframe changes.

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=100&sparkline=true&price_change_percentage=1h,24h,7d,30d" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Coins Markets →](https://docs.coingecko.com/reference/coins-markets.md)

> [tab] Demo API
>
> ```bash theme={null}
> curl -X GET \
>   "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=100&sparkline=true&price_change_percentage=1h,24h,7d,30d" \
>   -H "x-cg-demo-api-key: YOUR_API_KEY"
> ```
>
> > [Coins Markets →](https://docs.coingecko.com/demo/reference/coins-markets.md)

| Key param | Use |
| - | - |
| `order` | `market_cap_desc`, `volume_desc`, `market_cap_asc` |
| `category` | Filter to a specific sector (e.g. `layer-1`, `decentralized-finance-defi`) |
| `sparkline` | 7-day sparkline data for quick visual scanning |
| `price_change_percentage` | `1h,24h,7d,30d` for multi-timeframe momentum |

**6. Deep-dive fundamentals — /coins/\{id}**

The most comprehensive endpoint for a single coin — ATH/ATL, supply, volume, categories, and exchange tickers in one call.

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/coins/bitcoin?localization=false&tickers=false" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Coin Data →](https://docs.coingecko.com/reference/coins-id.md)

> [tab] Demo API
>
> ```bash theme={null}
> curl -X GET \
>   "https://api.coingecko.com/api/v3/coins/bitcoin?localization=false&tickers=false" \
>   -H "x-cg-demo-api-key: YOUR_API_KEY"
> ```
>
> > [Coin Data →](https://docs.coingecko.com/demo/reference/coins-id.md)

| Key param | Use |
| - | - |
| `localization` | `false` to reduce response size |
| `tickers` | `false` if you don't need exchange ticker data |
| `market_data` | `false` if you only need metadata |
| `sparkline` | `true` for 7-day price sparkline data |

**7. Backtest with history — /coins/\{id}/ohlc/range or /market\_chart**

OHLC candles for a custom date range, or price + volume + market cap time series.

* **OHLC candles** for a custom range:

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/coins/ethereum/ohlc/range?vs_currency=usd&from=2024-01-01&to=2024-12-31&interval=daily" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [OHLC Range →](https://docs.coingecko.com/reference/coins-id-ohlc-range.md)

> [tab] Demo API
>
> `/coins/{id}/ohlc/range` is not available on the Demo API.\\
>
> [Upgrade to Pro →](https://www.coingecko.com/en/api/pricing)

* **Price + volume + market cap** over time:

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/coins/solana/market_chart?vs_currency=usd&days=365&interval=daily" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Coin Market Chart →](https://docs.coingecko.com/reference/coins-id-market-chart.md)

> [tab] Demo API
>
> ```bash theme={null}
> curl -X GET \
>   "https://api.coingecko.com/api/v3/coins/solana/market_chart?vs_currency=usd&days=365&interval=daily" \
>   -H "x-cg-demo-api-key: YOUR_API_KEY"
> ```
>
> > [Coin Market Chart →](https://docs.coingecko.com/demo/reference/coins-id-market-chart.md)

***

## Onchain Research

**1. Trending pools — /onchain/networks/trending\_pools**

Hottest liquidity pools across all networks — spot early DeFi momentum before it shows up in CoinGecko's main listings.

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/onchain/networks/trending_pools?include=base_token&duration=24h" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Trending Pools →](https://docs.coingecko.com/reference/trending-pools-list.md)

> [tab] Demo API
>
> ```bash theme={null}
> curl -X GET \
>   "https://api.coingecko.com/api/v3/onchain/networks/trending_pools?include=base_token&duration=24h" \
>   -H "x-cg-demo-api-key: YOUR_API_KEY"
> ```
>
> > [Trending Pools →](https://docs.coingecko.com/demo/reference/trending-pools-list.md)

| Key param | Use |
| - | - |
| `include` | `base_token`, `quote_token`, `dex`, `network` for richer context |
| `duration` | `1h`, `6h`, or `24h` trending window |

**2. Token fundamentals — /onchain/.../tokens/\{address}/info**

Metadata for any onchain token — description, socials, websites, and GeckoTerminal analytics score.

> [tab] Pro API
>
> ```bash theme={null}
> curl -X GET \
>   "https://pro-api.coingecko.com/api/v3/onchain/networks/eth/tokens/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/info" \
>   -H "x-cg-pro-api-key: YOUR_API_KEY"
> ```
>
> > [Token Info →](https://docs.coingecko.com/reference/token-info-contract-address.md)

> [tab] Demo API
>
> ```bash theme={null}
> curl -X GET \
>   "https://api.coingecko.com/api/v3/onchain/networks/eth/tokens/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/info" \
>   -H "x-cg-demo-api-key: YOUR_API_KEY"
> ```
>
> > [Token Info →](https://docs.coingecko.com/demo/reference/token-info-contract-address.md)

> [!TIP]
>
> Combine with [Pool OHLCV](https://docs.coingecko.com/reference/pool-ohlcv-contract-address.md) for a complete onchain research workflow — fundamentals from token info, price action from OHLCV.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.