Pages: 65
URL: llms-txt#👑-total-supply-chart-by-id
Source: https://docs.coingecko.com/reference/coins-id-total-supply-chart
reference/api-reference/coingecko-pro.json get /coins/{id}/total_supply_chart This endpoint allows you to query historical total supply of a coin by number of days away from now based on provided coin ID
URL: llms-txt#trending-search-list
Source: https://docs.coingecko.com/v3.0.1/reference/trending-search
v3.0.1/reference/api-reference/coingecko-demo.json get /search/trending This endpoint allows you query trending search coins, NFTs and categories on CoinGecko in the last 24 hours
URL: llms-txt#coins-list-with-market-data
Source: https://docs.coingecko.com/v3.0.1/reference/coins-markets
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/markets This endpoint allows you to query all the supported coins with price, market cap, volume and market related data
You can retrieve specific coins using their unique ids, names, or symbols instead of returning the whole list.
category param (refer to /coins/categories/list for available categories).per_page and page params to manage the number of results you receive and navigate through the data.
When multiple lookup params are provided, the following priority order is applied: category (highest) > ids > names > symbols (lowest).
name, you need to URL-encode any spaces (e.g. "Binance Coin" becomes "Binance%20Coin").include_tokens=all param is exclusively for use with the symbols lookup and is limited to maximum of 50 symbols per request.ids, names, symbols).URL: llms-txt#coin-historical-chart-data-within-time-range-by-token-address
Source: https://docs.coingecko.com/v3.0.1/reference/contract-address-market-chart-range
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id}/contract/{contract_address}/market_chart/range This endpoint allows you to get the historical chart data within certain time range in UNIX along with price, market cap and 24hr volume based on asset platform and particular token contract address
You may obtain the asset platform and contract address via several ways:
/coins/list endpoint (include platform = true).
You may leave the interval params as empty for automatic granularity:
URL: llms-txt#💼-categories-list
Source: https://docs.coingecko.com/reference/categories-list
reference/api-reference/onchain-pro.json get /categories This endpoint allows you to query all the supported categories on GeckoTerminal
You can retrieve pools or tokens of a specific category with this endpoint: Pools by Category ID.
This endpoint returns 50 categories per page.
URL: llms-txt#search-pools
Source: https://docs.coingecko.com/v3.0.1/reference/search-pools
v3.0.1/reference/api-reference/onchain-demo.json get /search/pools This endpoint allows you to search for pools on a network
You may use this endpoint to search for query such as pool contract address, token contract address or token symbol. The endpoint will return matching pools as response.
page to specify which page of responses you would like to show.
If the token's market cap is not verified by the team, the API response will return null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).
include param will be returned under the top-level "included" key.page param to navigate more results.page: Pagination beyond 10 pages is available for Paid Plan subscribers (Analyst plan or above).URL: llms-txt#crypto-treasury-holdings-by-entity-id
Source: https://docs.coingecko.com/v3.0.1/reference/public-treasury-entity
v3.0.1/reference/api-reference/coingecko-demo.json get /public_treasury/{entity_id} This endpoint allows you query public companies & governments' cryptocurrency holdings by Entity ID
URL: llms-txt#coins-categories-list-with-market-data
Source: https://docs.coingecko.com/v3.0.1/reference/coins-categories
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/categories This endpoint allows you to query all the coins categories with market data (market cap, volume, ...) on CoinGecko
URL: llms-txt#onchainsimpletokenprice
Contents:
Source: https://docs.coingecko.com/websocket/onchainsimpletokenprice
Subscribe to receive real-time price updates for tokens, as seen on GeckoTerminal.com
This Websocket channel allows you to subscribe to real-time updates of price changes for token.
Update Frequency: as fast as 1s, for actively traded tokens.
| Field | Type | Description | Example | |
|---|---|---|---|---|
c |
channel_type |
string | Indicates the type of channel subscribed to. | G1 |
n |
network_id |
string | Identifier of the blockchain network. Check full list of IDs here. | eth |
ta |
token_address |
string | Contract address of the token on the blockchain. | 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 |
p |
usd_price |
float | Current token price in USD. | 3639.78228844745 |
pp |
usd_price_24h_change_percentage |
float | Percentage change in token price over the last 24 hours. | 3.566 |
m |
usd_market_cap |
float | Market capitalization in USD. | 123 |
v |
usd_24h_vol |
float | 24-hour trading volume in USD. | 31233333.33 |
t |
last_updated_at |
integer | Timestamp of the last data update in UNIX time. | 1709542750 |
Tips: The Websocket payload will use the value null when specific data is unavailable. Ensure your application is capable of handling null values for fields that may not always have data.
The output keys will be in random order.
Input Example: Unsubscribe for 1 specific token data:
Input Example: Unsubscribe from OnchainSimpleTokenPrice channel and all token data:
Examples:
Example 1 (unknown):
</CodeGroup>
## 2. Subscribe to a specific channel - OnchainSimpleTokenPrice
**Input Example:**
<CodeGroup>
Example 2 (unknown):
</CodeGroup>
**Output Example**:
<CodeGroup>
Example 3 (unknown):
</CodeGroup>
## 3. Stream OnchainSimpleTokenPrice data
**Input Example:**
<CodeGroup>
Example 4 (unknown):
</CodeGroup>
**Output Example**:
<CodeGroup>
URL: llms-txt#onchainohlcv
Contents:
Source: https://docs.coingecko.com/websocket/wssonchainohlcv
Subscribe to receive real-time OHLCV updates for pools, as seen on GeckoTerminal.com
This Websocket channel allows you to subscribe to real-time OHLCV updates of a pool.
Update Frequency: as fast as 1s, for actively traded pools.
Tips: use this Rest API endpoint Top Pools by Token Address to obtain contract address of the most liquid pool.
### Notes
base or quote token of a pool.| Field | Type | Description | Example | |
|---|---|---|---|---|
ch |
channel_type |
string | Indicates the type of channel subscribed to. | G3 |
n |
network_id |
string | Identifier of the blockchain network. Check full list of IDs here. | eth |
pa |
pool_address |
string | Contract address of the pool. | 0x88e6a0c2dd6fcb..3f5640 |
to |
token |
string | base or quote token |
base |
i |
interval |
string | Interval or resolution of the candle: 1s / 1m / 5m / 1h / 2h / 4h / 8h | 1m |
o |
open |
float | Open price in USD | 3539 |
h |
high |
float | High price in USD | 3541 |
l |
low |
float | Low price in USD | 3530 |
c |
close |
float | Close price in USD | 3531 |
v |
volume |
float | Volume in USD | 323333 |
t |
timestamp |
integer | Opening timestamp of candle interval | 1753803600 |
Tips: The Websocket payload will use the value null when specific data is unavailable. Ensure your application is capable of handling null values for fields that may not always have data.
Input Example: (1 minute interval and base token of a pool)
Interval options: 1s / 1m / 5m / 1h / 2h / 4h / 8htoken.
The output keys will be in random order.
Input Example: Unsubscribe for 1 specific pool data:
Input Example: Unsubscribe from OnchainOHLCV channel and all pools data:
Examples:
Example 1 (unknown):
</CodeGroup>
## 2. Subscribe to a specific channel - OnchainOHLCV
**Input Example:**
<CodeGroup>
Example 2 (unknown):
</CodeGroup>
**Output Example**:
<CodeGroup>
Example 3 (unknown):
</CodeGroup>
## 3. Stream OnchainOHLCV data
**Input Example:** (1 minute interval and base token of a pool)
* `Interval` options: 1s / 1m / 5m / 1h / 2h / 4h / 8h
* You may stream the pool ohlcv data of 'base' or 'quote' `token`.
<CodeGroup>
Example 4 (unknown):
</CodeGroup>
**Output Example**:
<CodeGroup>
URL: llms-txt#coin-historical-data-by-id
Source: https://docs.coingecko.com/v3.0.1/reference/coins-id-history
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id}/history This endpoint allows you to query the historical data (price, market cap, 24hrs volume, ...) at a given date for a coin based on a particular coin ID
You may obtain the coin ID (API ID) via several ways:
/coins/list endpoint.The data returned is at 00:00:00 UTC.
URL: llms-txt#coin-historical-chart-data-by-token-address
Source: https://docs.coingecko.com/v3.0.1/reference/contract-address-market-chart
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id}/contract/{contract_address}/market_chart This endpoint allows you to get the historical chart data including time in UNIX, price, market cap and 24hr volume based on asset platform and particular token contract address
You may obtain the asset platform and contract address via several ways:
/coins/list endpoint (include platform = true).
You may leave the interval as empty for automatic granularity:
URL: llms-txt#coingecko-mcp-server-(beta)
Source: https://docs.coingecko.com/docs/mcp-server
MCP Server for Crypto Price & Market Data. MCP (Model Context Protocol) is an open standard that allows Large Language Model (LLM) and other AI agents to securely and intelligently interact with external data sources and tools.

### Welcome to the CoinGecko MCP Server!
CoinGecko MCP Server is currently in Beta. We're constantly improving, and your feedback is crucial. Please share any thoughts or suggestions via this feedback form.
URL: llms-txt#token-data-by-token-address
Source: https://docs.coingecko.com/v3.0.1/reference/token-data-contract-address
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/tokens/{address} This endpoint allows you to query specific token data based on the provided token contract address on a network
You may add values such as top_pools in the include param to include top pools along with the pools information.
/networks/{network}/tokens/{address}/info instead.
If the token's market cap is not verified by the team, the API response will return null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).
include param will be returned under the top-level "included" key.include_composition=true to surface the balance and liquidity value of the pool's base and quote tokens. (requires include=top_pools)launchpad_details object containing their graduation status and details.URL: llms-txt#crypto-global-market-data
Source: https://docs.coingecko.com/v3.0.1/reference/crypto-global
v3.0.1/reference/api-reference/coingecko-demo.json get /global This endpoint allows you query cryptocurrency global data including active cryptocurrencies, markets, total crypto market cap and etc
URL: llms-txt#pool-tokens-info-by-pool-address
Source: https://docs.coingecko.com/v3.0.1/reference/pool-token-info-contract-address
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/pools/{pool_address}/info This endpoint allows you to query pool metadata (base and quote token details, image, socials, websites, description, contract address, etc.) based on a provided pool contract address on a network
If you would like to query pool data such as price, transactions, volume and etc. You can go to this endpoint /networks/{network}/pools/{address} instead.
holders data is currently in Beta, with ongoing improvements to data quality, coverage, and update frequency.
distribution_percentage coverage:
top_10, 11_20, 21_40, resttop_10, 11_30, 31_50, restlaunchpad_details object containing their graduation status and details.
URL: llms-txt#search-queries
Source: https://docs.coingecko.com/v3.0.1/reference/search-data
v3.0.1/reference/api-reference/coingecko-demo.json get /search This endpoint allows you to search for coins, categories and markets listed on CoinGecko
URL: llms-txt#unlock-the-power-of-coingecko-api-with-unprecedented-ease
Contents:
The official CoinGecko Typescript and Python SDK are now available for all developers! These SDKs dramatically streamline your integration process, enabling you to build powerful crypto applications faster and more reliably than ever before, regardless of your preferred language.
URL: llms-txt#coin-historical-chart-data-by-id
Source: https://docs.coingecko.com/v3.0.1/reference/coins-id-market-chart
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id}/market_chart This endpoint allows you to get the historical chart data of a coin including time in UNIX, price, market cap and 24hr volume based on particular coin ID
You may obtain the coin ID (API ID) via several ways:
/coins/list endpoint.You may leave the interval as empty for automatic granularity:
URL: llms-txt#coin-price-by-ids
Source: https://docs.coingecko.com/v3.0.1/reference/simple-price
v3.0.1/reference/api-reference/coingecko-demo.json get /simple/price This endpoint allows you to query the prices of one or more coins by using their unique Coin API IDs
You may obtain the coin ID (API ID) via several ways:
/coins/list endpoint.ids, names, or symbols.include_last_updated_at=true in your request to obtain the latest updated time. Alternatively, you may flag include_24hr_change=true to determine if it returns a null value.
You may cross-check the price on CoinGecko and learn more about our price methodology here.
ids (highest) > names > symbols (lowest).name, you need to URL-encode any spaces (e.g. "Binance Coin" becomes "Binance%20Coin").include_tokens=all param is exclusively for use with the symbols lookup and is limited to maximum of 50 symbols per request.ids, names, symbols).URL: llms-txt#specific-pool-data-by-pool-address
Source: https://docs.coingecko.com/v3.0.1/reference/pool-address
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/pools/{address} This endpoint allows you to query the specific pool based on the provided network and pool address
null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).include param will be returned under the top-level "included" key.locked_liquidity_percentage will be updated on daily basis.include_composition=true to surface the balance and liquidity value of the pool's base and quote tokens.launchpad_details object with their graduation status and migration details.URL: llms-txt#coin-data-by-token-address
Source: https://docs.coingecko.com/v3.0.1/reference/coins-contract-address
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id}/contract/{contract_address} This endpoint allows you to query all the metadata (image, websites, socials, description, contract address, etc.) and market data (price, ATH, exchange tickers, etc.) of a coin from the CoinGecko coin page based on an asset platform and a particular token contract address
### Notice
Please note that the twitter_followers data field will no longer be supported by our API starting on May 15, 2025. Please refer to changelog for more details.
You may obtain the asset platform and contract address via several ways:
/coins/list endpoint (include platform = true).
Coin descriptions may include newline characters represented as \r\n (escape sequences), which may require processing for proper formatting.
URL: llms-txt#coin-data-by-id
Source: https://docs.coingecko.com/v3.0.1/reference/coins-id
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id} This endpoint allows you to query all the metadata (image, websites, socials, description, contract address, etc.) and market data (price, ATH, exchange tickers, etc.) of a coin from the CoinGecko coin page based on a particular coin ID
You may obtain the coin id (API ID) via several ways:
/coins/list endpoint.last_updated in the endpoint response to check whether the price is stale.
Tickers are limited to 100 items, to get more tickers, please go to /coins/{id}/tickers.
\r\n (escape sequences), which may require processing for proper formatting.dex_pair_format=symbol, the DEX pair base and target are displayed in symbol format (e.g. WETH, USDC) instead of as contract addresses.URL: llms-txt#1.-get-data-by-id-or-address
Contents:
Source: https://docs.coingecko.com/docs/1-get-data-by-id-or-address
Using /simple/price endpoint as example:
https://pro-api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd&x_cg_pro_api_key=YOUR_API_KEY
The provided endpoint URL includes parameters such as ids=bitcoin and vs_currencies=usd, indicating that the intention to retrieve the current price of Bitcoin in US Dollars.
How to obtain Coin ID aka API ID? There are 3 options:
View the full list of coins with API ID, symbol and name using this Google Sheet.
Look for the "API ID“ by visiting the info section of a coin page on CoinGecko:
<img src="https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=ca1093ad1577a2160c53ee6ea3c9de8c" data-og-width="2122" width="2122" data-og-height="1256" height="1256" data-path="images/docs/7bf604e-image.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=280&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=58b6818eb39f1cc1cb13bfb1b827e9ef 280w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=560&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=debd856f53bd0349a94586da15246140 560w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=840&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=4995bc412246ed062435c7700fce33b0 840w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=1100&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=54503566448e1f70bfd6e3938ff18830 1100w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=1650&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=45f0c1afb1803886ff058fe7682a3a2a 1650w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=2500&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=f3d3d13f19af39c3c2918e06f9552bd6 2500w" />
Other than using Coin ID, you may also query price & market data of a coin using contract address, using /simple/token_price/{id} endpoint as example:
https://pro-api.coingecko.com/api/v3/simple/token_price/ethereum?contract_addresses=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&vs_currencies=usd&x_cg_pro_api_key=YOUR_API_KEYThere are 3 parameters values required to apply for this endpoint:
id: Ethereum (Asset Platform ID)contract_addresses: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (Contract Address)vs_currencies: usd (Target Currencies)How to obtain Coins/Tokens Contract Address
include_platform=true), example of responses:
Look for the "Contract“ by visiting the info section of a coin page on CoinGecko.
Not all coins will have a contract address listed on the CoinGecko site.
Get the token contract address from project website, white-paper, documentation, or block explorer site:
In the 2 examples above, both queries for Coin ID and Contract Address contain vs_currencies=usd. Most of the CoinGecko API endpoints will require you to specify the currency.
CoinGecko API data supports all major fiat currencies and some famous crypto currencies like the following:
| Type | Currency | vs_currencies (Param value) |
|---|---|---|
| Fiat | US Dollar | usd |
| Fiat | Japanese Yen | jpy |
| Fiat | Euro | eur |
| Cryptocurrency | Bitcoin | btc |
| Cryptocurrency | Ether | eth |
| Cryptocurrency | Binance Coin | bnb |
For full list of supported currencies, please go to /simple/supported_vs_currencies endpoint
Using /coins/market endpoint as example to query prices and market data of coins in bulk
https://pro-api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=100&page=1&x_cg_pro_api_key=YOUR_API_KEYThere are 4 parameters values applied for this endpoint:
vs_currency: usdorder: market_cap_desc — The endpoint response will be sorted in descending order, from the coins with the largest market cap to those with the smallest.per_page: 100 — The results of coins per page are set at 100 in this case (maximum is 250).page: 1 — The page number of the results is determined by the parameter per_page. In the case of per_page=100 and page=2, the responses will include coins ranked 101 to 200 on CoinGecko, sorted by market cap, as per the specified endpoint.Examples:
Example 1 (unknown):
</CodeGroup>
* View the full list of coins with API ID, symbol and name using this [Google Sheet](https://docs.google.com/spreadsheets/d/1wTTuxXt8n9q7C4NDXqQpI3wpKu1_5bGVmP9Xz0XGSyU/edit?usp=sharing).
* Look for the "API ID“ by visiting the info section of a coin page on CoinGecko:
<Frame>
<img src="https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=ca1093ad1577a2160c53ee6ea3c9de8c" data-og-width="2122" width="2122" data-og-height="1256" height="1256" data-path="images/docs/7bf604e-image.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=280&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=58b6818eb39f1cc1cb13bfb1b827e9ef 280w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=560&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=debd856f53bd0349a94586da15246140 560w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=840&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=4995bc412246ed062435c7700fce33b0 840w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=1100&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=54503566448e1f70bfd6e3938ff18830 1100w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=1650&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=45f0c1afb1803886ff058fe7682a3a2a 1650w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/7bf604e-image.png?w=2500&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=f3d3d13f19af39c3c2918e06f9552bd6 2500w" />
</Frame>
### b. Contract Address
Other than using Coin ID, you may also query price & market data of a coin using contract address, using [/simple/token\_price/\{id](/reference/simple-token-price)} endpoint as example:
* `https://pro-api.coingecko.com/api/v3/simple/token_price/ethereum?contract_addresses=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&vs_currencies=usd&x_cg_pro_api_key=YOUR_API_KEY`
There are 3 parameters values required to apply for this endpoint:
* `id`: `Ethereum` (Asset Platform ID)
* `contract_addresses`: `0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48` (Contract Address)
* `vs_currencies`: `usd` (Target Currencies)
**How to obtain Coins/Tokens Contract Address**
* Use [/coins/list](/reference/coins-list) endpoint (`include_platform=true`), example of responses:
<CodeGroup>
URL: llms-txt#💼-top-token-holders-by-token-address
Source: https://docs.coingecko.com/reference/top-token-holders-token-address
reference/api-reference/onchain-pro.json get /networks/{network}/tokens/{address}/top_holders This endpoint allows you to query top token holders based on the provided token contract address on a network
holders value:URL: llms-txt#💼-recently-added-coins
Source: https://docs.coingecko.com/reference/coins-list-new
reference/api-reference/coingecko-pro.json get /coins/list/new This endpoint allows you to query the latest 200 coins that recently listed on CoinGecko
URL: llms-txt#3.-get-exchanges-&-nft-data
Source: https://docs.coingecko.com/docs/3-get-exchanges-nft-data
You can get Exchange and NFT data just like how you get the coins data:
/list endpoint.| Type | Coins | NFTs | Exchanges | Derivatives |
|---|---|---|---|---|
| Get Full List with IDs | /coins/list | /nfts/list | /exchanges/list | /derivatives/exchanges/list |
| Get latest market data | /coins/{id} | /nfts/{id} | /exchanges/{id} | /derivatives/exchanges/{id} |
| Get Historical Data | /coins/{id}/market_chart | /nfts/{id}/market_chart | /exchanges/{id}/volume_chart | /exchanges/{id}/volume_chart |
URL: llms-txt#coin-price-by-token-addresses
Source: https://docs.coingecko.com/v3.0.1/reference/simple-token-price
v3.0.1/reference/api-reference/coingecko-demo.json get /simple/token_price/{id} This endpoint allows you to query one or more token prices using their token contract addresses
You may obtain the asset platform and contract address via several ways:
/coins/list endpoint (include platform = true).The endpoint returns the global average price of the coin that is aggregated across all active exchanges on CoinGecko.
URL: llms-txt#coingecko-sdk-(beta)
Source: https://docs.coingecko.com/docs/sdk
Official CoinGecko Typescript and Python SDKs — Crypto Price & Market Data API

URL: llms-txt#💼-top-gainers-&-losers
Source: https://docs.coingecko.com/reference/coins-top-gainers-losers
reference/api-reference/coingecko-pro.json get /coins/top_gainers_losers This endpoint allows you to query the top 30 coins with largest price gain and loss by a specific time duration
URL: llms-txt#💼-pools-by-category-id
Source: https://docs.coingecko.com/reference/pools-category
reference/api-reference/onchain-pro.json get /categories/{category_id}/pools This endpoint allows you to query all the pools based on the provided category ID
You can retrieve full list of categories id via this endpoint: Categories List.
include=base_token.Trending rankings are determined by a combination of factors:
page param to navigate more results.page: Pagination beyond 10 pages is available for Paid Plan subscribers (Analyst plan or above).URL: llms-txt#💡-example-prompts
Contents:
Tap into the full potential of CoinGecko data — use these prompts to kickstart your next AI build.
- What is the current price of Bitcoin in USD?
- What is the market cap of Ethereum?
- What are the top 3 trending coins on CoinGecko right now?
- What are the top AI coins on GeckoTerminal now?
What is the floor price of the Pudgy Penguins NFT collection?
Show me the current top 10 cryptocurrencies by market cap. Include their price, 24h change, and total volume. Display this in an interactive table.
- Generate a 30-day price chart for Ethereum (ETH) against USD, showing both price and trading volume.
- Create a quiz to tell me which cryptocurrency I am based on my personality.
Try it here: claude.ai/public/artifacts
- Build a Wordle-style game where the answer is a crypto asset's name or symbol, like 'BITCOIN' or 'SHIBA'.
Try it here: claude.ai/public/artifacts
URL: llms-txt#websocket-(beta)
Contents:
Source: https://docs.coingecko.com/websocket/index
CoinGecko API: Stream Real-Time Crypto Data with WebSockets
In the fast-paced world of cryptocurrency, speed matters. Our official CoinGecko WebSocket API provides a dedicated, persistent connection for real-time data streaming, ensuring you receive critical market updates the moment they happen.
Move beyond traditional polling and embrace the power of instant data delivery for your trading bots, dashboards, and analytical applications.
CoinGecko Websocket (Beta) is now available for paid plan customers (Analyst plan & above)!
We will gradually improve the Websocket and expand the feature limits. Please share your feedback and suggestion via this survey form, or email soonaik\@coingecko[dot]com
| Websocket Channel | Channel Code | Details |
|---|---|---|
| OnchainSimpleTokenPrice | G1 | Subscribe to receive real-time price updates for tokens, as seen on GeckoTerminal.com |
| CGSimplePrice | C1 | Subscribe to receive real-time price updates for tokens, as seen on CoinGecko.com |
| OnchainTrade | G2 | Subscribe to receive real-time transaction updates for pools, as seen on GeckoTerminal.com |
| OnchainOHLCV | G3 | Subscribe to receive real-time OHLCV (Open, High, Low, Close, Volume) for pools, as seen on GeckoTerminal.com |
| (More coming soon!) |
### Notes
To provide you with the most reliable and efficient experience, please be aware of the following regarding our WebSocket connections:
URL: llms-txt#crypto-treasury-holdings-by-coin-id
Source: https://docs.coingecko.com/v3.0.1/reference/companies-public-treasury
v3.0.1/reference/api-reference/coingecko-demo.json get /{entity}/public_treasury/{coin_id} This endpoint allows you query public companies & governments' cryptocurrency holdings by Coin ID
URL: llms-txt#onchaintrade
Contents:
Source: https://docs.coingecko.com/websocket/wss-onchain-trade
Subscribe to receive real-time transaction (trade/swap) updates for pools, as seen on GeckoTerminal.com
This Websocket channel allows you to subscribe to real-time updates of token trades of a pool.
Update Frequency: as fast as 0.1s, for actively traded pools.
Tips: use this Rest API endpoint Top Pools by Token Address to obtain contract address of the most liquid pool.
| Field | Type | Description | Example | |
|---|---|---|---|---|
ch |
channel_type |
string | Indicates the type of channel subscribed to. | G2 |
n |
network_id |
string | Identifier of the blockchain network. Check full list of IDs here. | eth |
pa |
pool_address |
string | Contract address of the pool. | 0x88e6a0c2dd6fcb..3f5640 |
tx |
tx_hash |
string | transaction hash | 0x0b8ac5a16c2d5a..4d422 |
ty |
type |
string | type of transaction (b for buy or s for sell) |
b |
to |
token_amount |
float | Amount of token transacted. | 100 |
vo |
volume_in_usd |
float | The transaction value in USD. | 1000 |
pc |
price_in_token_currency |
float | Current token price in target token currency | 3639.78228844745 |
pu |
price_in_usd |
float | Current token price in USD | 3.566 |
t |
last_updated_at |
integer | Timestamp of the last data update in UNIX time. | 1752072129000 |
Tips: The Websocket payload will use the value null when specific data is unavailable. Ensure your application is capable of handling null values for fields that may not always have data.
The output keys will be in random order.
Input Example: Unsubscribe for 1 specific pool data:
Input Example: Unsubscribe from OnchainTrade channel and all pools data:
Examples:
Example 1 (unknown):
</CodeGroup>
## 2. Subscribe to a specific channel - OnchainTrade
**Input Example:**
<CodeGroup>
Example 2 (unknown):
</CodeGroup>
**Output Example**:
<CodeGroup>
Example 3 (unknown):
</CodeGroup>
## 3. Stream OnchainTrade data
**Input Example:**
<CodeGroup>
Example 4 (unknown):
</CodeGroup>
**Output Example**:
<CodeGroup>
URL: llms-txt#💼-historical-token-holders-chart-by-token-address
Source: https://docs.coingecko.com/reference/token-holders-chart-token-address
reference/api-reference/onchain-pro.json get /networks/{network}/tokens/{token_address}/holders_chart This endpoint allows you to get the historical token holders chart based on the provided token contract address on a network
days param provides the following automatic granularity:days=7 = all data (without fixed intervals)days=30 = daily data (30 daily intervals)days=max = weekly dataURL: llms-txt#coin-ohlc-chart-by-id
Source: https://docs.coingecko.com/v3.0.1/reference/coins-id-ohlc
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id}/ohlc This endpoint allows you to get the OHLC chart (Open, High, Low, Close) of a coin based on particular coin ID
You may obtain the coin ID (API ID) via several ways:
/coins/list endpoint.The timestamp displayed in the payload (response) indicates the end (or close) time of the OHLC data.
URL: llms-txt#🐍-coingecko-python-sdk
Contents:
pip
Built to seamlessly integrate with the Python ecosystem, enabling fast and intuitive access to CoinGecko's API.
Notice something off or missing? Let us know by opening an Issue here.
CoinGecko SDK is powered by Stainless ✱
Have feedback, a cool idea, or need help? Reach out to soonaik@coingecko[dot]com
URL: llms-txt#new-pools-by-network
Source: https://docs.coingecko.com/v3.0.1/reference/latest-pools-network
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/new_pools This endpoint allows you to query all the latest pools based on provided network
You may include values such as page to specify which page of responses you would like to show.
This endpoint includes the newly created pools in the past 48 hours.
null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).include param will be returned under the top-level "included" key.page param to navigate more results.page: Pagination beyond 10 pages is available for Paid Plan subscribers (Analyst plan or above).URL: llms-txt#most-recently-updated-tokens-list
Source: https://docs.coingecko.com/v3.0.1/reference/tokens-info-recent-updated
v3.0.1/reference/api-reference/onchain-demo.json get /tokens/info_recently_updated This endpoint allows you to query 100 most recently updated tokens info of a specific network or across all networks on GeckoTerminal
You may add values such as network in the include param to include network along with the updated tokens list.
Attributes specified in the include param will be returned under the top-level "included" key.
URL: llms-txt#new-pools-list
Source: https://docs.coingecko.com/v3.0.1/reference/latest-pools-list
v3.0.1/reference/api-reference/onchain-demo.json get /networks/new_pools This endpoint allows you to query all the latest pools across all networks on GeckoTerminal
You may include values such as page to specify which page of responses you would like to show.
If the token's market cap is not verified by the team, the API response will return null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).
include param will be returned under the top-level "included" key.page param to navigate more results.page: Pagination beyond 10 pages is available for Paid Plan subscribers (Analyst plan or above).URL: llms-txt#pool-ohlcv-chart-by-pool-address
Source: https://docs.coingecko.com/v3.0.1/reference/pool-ohlcv-contract-address
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/pools/{pool_address}/ohlcv/{timeframe} This endpoint allows you to get the OHLCV chart (Open, High, Low, Close, Volume) of a pool based on the provided pool address on a network
You may use this endpoint to query the historical price and volume of a token.
minute?aggregate=15 for 15 minutes OHLCV).
This endpoint uses epoch/unix format for its timestamp. Example: 1708850449.
before_timestamp parameter to query in multiple requests.include_empty_intervals param:false (default): Only intervals with trade data are returned.true: All requested intervals are returned, those with no trade data are populated as follows:
URL: llms-txt#💼-trending-search-pools
Source: https://docs.coingecko.com/reference/trending-search-pools
reference/api-reference/onchain-pro.json get /pools/trending_search This endpoint allows you to query all the trending search pools across all networks on GeckoTerminal
null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).
include param will be returned under the top-level "included" key.URL: llms-txt#coins-categories-list-(id-map)
Source: https://docs.coingecko.com/v3.0.1/reference/coins-categories-list
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/categories/list This endpoint allows you to query all the coins categories on CoinGecko
You may use this endpoint to query the list of categories for other endpoints that contain params like category.
CoinGecko Equivalent Page: https://www.coingecko.com/en/categories
URL: llms-txt#common-use-cases
Contents:
Source: https://docs.coingecko.com/docs/common-use-cases
Discover the common use cases of CoinGecko API by our users
Use /coins/id endpoint.
This endpoint can be used to query other coin's metadata like: links, categories, contract address, community, description in different languages and many more.
\r\n (escape sequences), which may require processing for proper formatting.Use Token Info by Token Address endpoint to get metadata of tokens listed on GeckoTerminal.com.
Use /exchanges/list endpoint to get full list of exchanges with ID on CoinGecko.
Use /exchanges/id to find out whether the exchange is centralized or decentralized.
Example of responses (using Uniswap V3 as example) :
Since Uniswap is a DEX, therefore it shows "centralized": false
Use /global endpoint.
Example of responses:
sparkline = true.{ID}.
www.coingecko.com/en/coins/{ID}www.coingecko.com/en/coins/{web_slug} you may use /coin/id endpoint and obtain the {web_slug} value.status=inactive to get a list of inactive coins.include_last_updated_at=true to check latest update time.Use /coins/id endpoint by supplying coin ID.
Example of responses:
Note: This is available for paid plan subscribers only.
Use /coins/list endpoint, specifying the status param as inactive.
Example of endpoint request: https://pro-api.coingecko.com/api/v3/coins/list?include_platform=false&status=inactive&x_cg_pro_api_key=YOUR_API_KEY
Retrieve the coin's ID from the endpoint mentioned above and use it to access historical data via the following endpoints:
Use /coins/id endpoint by supplying coin ID.
Example of responses:
We have 2 Search endpoints:
CoinGecko and GeckoTerminal support different sets of blockchain networks. You can use the following endpoints to find the list of supported networks and their respective IDs:
You may use the /asset-platforms-list endpoint to obtain the native coin ID of all networks (asset platforms) listed on www.coingecko.com.
There are multiple onchain endpoints that provide the liquidity data (reserve_in_usd) of a pool, for example: Specific Pool Data by Pool Address. You may also get liquidity data (total_reserve_in_usd) of a token, using endpoints like: Token Data by Token Address.
Note: reserve_in_usd (pool) represents the total liquidity of all tokens within a specific pool, whereas total_reserve_in_usd (token) refers to the total liquidity portion attributable to a specific token across all available pools.
Use /pools/megafilter to retrieve data for onchain DEX pools that match a given set of filters.
Example of use cases:
Custom filtering: Combine multiple params — like liquidity thresholds, FDV ranges, 24-hour volume, and more — to extract the precise datasets you need.
For more details on examples and available filters, refer to:
Use the following endpoints to get trending coins and pools:
Trending Search List — Trending Coins, NFTs, Categories on CoinGecko.com, based on user searches.
Other useful endpoints:
Top Gainers & Losers on CoinGecko.com, by specific time duration.
By using Token Info by Token Address endpoint, you can obtain the following security related data:
GeckoTerminal Score (Pool, Transaction, Creation, Info, Holders)
sort=pool_created_at_desc. Learn more on changelog.
⚡️ Need Real-time Data Streams? Try WebSocket API
With WebSocket, you can now stream ultra-low latency, real-time prices, trades, and OHLCV chart data.
Subscribe to our paid API plan (Analyst plan & above) to access WebSocket and REST API data delivery methods.
Examples:
Example 1 (unknown):
</CodeGroup>
## 8. Get Bitcoin Dominance Data (BTC.D)
* Use [/global ](/reference/crypto-global)endpoint.
* Example of responses:
<CodeGroup>
Example 2 (unknown):
</CodeGroup>
## 9. Get Market Cap or Dominance of a Specific Ecosystem
* Use [/coins/categories](/reference/coins-categories).
* The endpoint also returns the 24-hour percentage change, offering insights into the traction of different categories or ecosystems.
## 10. Get Token Lists of a Specific Blockchain Network
* Use [/token\_lists/asset\_platforms\_id/all.json](/reference/token-lists) endpoint.
* Supply asset platform id to the endpoint.
## 11. Get 7-Day Sparkline Price Data of a Coin
* Use [/coins/id](/reference/coins-id) or [/coins/markets](/reference/coins-markets) endpoints by flagging `sparkline = true`.
## 12. Get Link to Individual CoinGecko Coin Page
* Use [/coins/list](/reference/coins-list) endpoint to get the coin **`{ID}`**.
* Supply API ID in this URL path format: `www.coingecko.com/en/coins/{ID}`
* If you wish to the obtain the URL slug of a specific CoinGecko Coin Page, e.g. `www.coingecko.com/en/coins/{web_slug}` you may use [/coin/id](/reference/coins-id) endpoint and obtain the **`{web_slug}`** value.
## 13. Check Coin Status and Stale Price Updates
* Active: use [/coins/list](/reference/coins-list) endpoint, only active coins will be shown by default. You may also flag **`status=inactive`** to get a list of inactive coins.
* Price Stale: use [/simple/price](/reference/simple-price) endpoint, flag `include_last_updated_at=true` to check latest update time.
## 14. Get Real-Time and Historical Exchange of BTC in USD
* Current exchange rate: use [/exchange\_rates](/reference/exchange-rates) endpoint.
* Historical exchange rate: use [/coins/id/history](/reference/coins-id-history) or [/coins/id/market\_chart](/reference/coins-id-market-chart) endpoints.
## 15. Get Watchlist Portfolio Data of a Coin
* Use [/coins/id](/reference/coins-id) endpoint by supplying coin ID.
* Example of responses:
<CodeGroup>
Example 3 (unknown):
</CodeGroup>
## 16. Get Historical Data for Inactive Coins
**Note**: This is available for paid plan subscribers only.
* Use [/coins/list](/reference/coins-list) endpoint, specifying the status param as `inactive`.
* Example of endpoint request: `https://pro-api.coingecko.com/api/v3/coins/list?include_platform=false&status=inactive&x_cg_pro_api_key=YOUR_API_KEY`
* Retrieve the coin's ID from the endpoint mentioned above and use it to access historical data via the following endpoints:
* [/coins/id/history](/reference/coins-id-history)
* [/coins/id/market\_chart](/reference/coins-id-market-chart)
* [/coins/id/market\_chart/range](/reference/coins-id-market-chart-range)
* [/coins/id/contract/contract\_address/market\_chart](/reference/contract-address-market-chart)
* [/coins/id/contract/contract\_address/market\_chart/range](/reference/contract-address-market-chart-range)
## 17. Get TVL (Total Value Locked) data of a Coin
* Use [/coins/id](/reference/coins-id) endpoint by supplying coin ID.
* Example of responses:
<CodeGroup>
Example 4 (unknown):
</CodeGroup>
## 18. Query Search for Coins, Categories, NFTs, Exchanges, and Pools
We have 2 Search endpoints:
* [/search](/reference/search-data) endpoint allows you to search for coins, categories, exchanges (markets), and NFTs listed on CoinGecko.com. You may query by name or symbol.
* [/search-pools](/reference/search-pools) endpoint allows you to search for pools listed on GeckoTerminal.com. You may query by pool contract address, token contract address, or token symbol.
## 19. Get List of Blockchain Networks supported on CoinGecko and GeckoTerminal.
CoinGecko and GeckoTerminal support different sets of blockchain networks. You can use the following endpoints to find the list of supported networks and their respective IDs:
* CoinGecko: [/asset-platforms-list](/reference/asset-platforms-list)
* GeckoTerminal ([onchain endpoints](/reference/endpoint-overview#-onchain-dex-endpoints-geckoterminal)): [/networks-list](/reference/networks-list)
## 20. Get Native Coin of a Blockchain Network (Asset Platform)
You may use the [/asset-platforms-list](/reference/asset-platforms-list) endpoint to obtain the native coin ID of all networks (asset platforms) listed on [www.coingecko.com](http://www.coingecko.com.).
## 21. Get Liquidity data of a Liquidity Pool or Token
There are multiple onchain endpoints that provide the liquidity data (`reserve_in_usd`) of a pool, for example: [Specific Pool Data by Pool Address](/reference/pool-address). You may also get liquidity data (`total_reserve_in_usd`) of a token, using endpoints like: [Token Data by Token Address](/reference/token-data-contract-address).
Note: `reserve_in_usd` (pool) represents the total liquidity of all tokens within a specific pool, whereas `total_reserve_in_usd` (token) refers to the total liquidity portion attributable to a specific token across all available pools.
## 22. Get list of onchain DEX pools based on specific criteria
* Use [/pools/megafilter](/reference/pools-megafilter) to retrieve data for onchain DEX pools that match a given set of filters.
* Example of use cases:
* Custom filtering: Combine multiple params — like liquidity thresholds, FDV ranges, 24-hour volume, and more — to extract the precise datasets you need.
* Risk and Quality checks: Apply fraud filters to weed out risky projects.
* For more details on examples and available filters, refer to:
* [Changelog — New Megafilter Endpoint](/changelog#february-2025)
* [Live Filtering on GeckoTerminal](https://www.geckoterminal.com/)
## 23. Get List of Trending Coins
* Use the following endpoints to get trending coins and pools:
* [Trending Search List](/reference/trending-search/) — Trending Coins, NFTs, Categories on CoinGecko.com, based on user searches.
* [Trending Search Pools](/reference/trending-search-pools/) — Trending Pools and Tokens on GeckoTerminal.com, based on user searches.
* Other useful endpoints:
* [Top Gainers & Losers](/reference/coins-top-gainers-losers) on CoinGecko.com, by specific time duration.
* [Trending Pools List](/reference/trending-pools-list) and [Trending Pools by Network](/reference/trending-pools-network) on GeckoTerminal.com, by specific time duration.
## 24. Get Security Info of Tokens
* By using [Token Info by Token Address](/reference/token-info-contract-address) endpoint, you can obtain the following security related data:
* GeckoTerminal Score (Pool, Transaction, Creation, Info, Holders)
* Holders count and distribution percentage
* Mint and Freeze Authority
## 25. Get Latest Token/Pool Data from Launchpad
* Use [megafilter](/reference/pools-megafilter) endpoint to retrieve latest launchpad data, by flagging `sort=pool_created_at_desc`. Learn more on [changelog](/changelog#now-supported%3A-launchpad-data-pump-fun-%26-more-%2C-granular-ohlcv%2C-and-honeypot-info).
* **Request example (Get latest pools on Pump.fun)**:
<CodeGroup>
URL: llms-txt#🟦-coingecko-typescript-sdk
Contents:
npm
Purpose-built to unlock the full capabilities of TypeScript for seamless integration with CoinGecko's API.
Notice something off or missing? Let us know by opening an Issue here.
URL: llms-txt#coin-tickers-by-id
Source: https://docs.coingecko.com/v3.0.1/reference/coins-id-tickers
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id}/tickers This endpoint allows you to query the coin tickers on both centralized exchange (CEX) and decentralized exchange (DEX) based on a particular coin ID
You may obtain the coin ID (API ID) via several ways:
/coins/list endpoint.exchange_ids if you want to retrieve tickers for specific exchange only.page to specify which page of responses you would like to show.The tickers are paginated to 100 items.
dex_pair_format=symbol, the DEX pair base and target are displayed in symbol format (e.g. WETH, USDC) instead of as contract addresses.volume, converted_volume will be used instead of volume.URL: llms-txt#🔥-megafilter-for-pools
Source: https://docs.coingecko.com/reference/pools-megafilter
reference/api-reference/onchain-pro.json get /pools/megafilter This endpoint allows you to query pools based on various filters across all networks on GeckoTerminal
Using checks param to filter pools based on various checks:
checks=no_honeypot — Filter out Honeypot pools, using GoPlus Token Security and De.Fi Scanner.checks=good_gt_score — Show only pools with a GT Score of at least 75.checks=on_coingecko — Show only pools with tokens that are listed on CoinGecko.checks=has_social — Show only pools with their social links and token information updated.page to specify which page of responses you would like to show.
Trending rankings are determined by a combination of factors:
dexes param can only be used when only 1networks is specified.null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).include param will be returned under the top-level "included" key.page param to navigate more results.include_unknown_honeypot_tokens=true will include tokens with an 'unknown' honeypot status.checks=no_honeypot is specified.URL: llms-txt#token-price-by-token-addresses
Source: https://docs.coingecko.com/v3.0.1/reference/onchain-simple-price
v3.0.1/reference/api-reference/onchain-demo.json get /simple/networks/{network}/token_price/{addresses} This endpoint allows you to get token price based on the provided token contract address on a network
null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).
market_cap_usd to return FDV value (as seen in GeckoTerminal.com) when market cap data is unavailable, please specify this parameter mcap_fdv_fallback=true./networks/{network}/pools/{address} endpoint by providing a specific pool address.URL: llms-txt#tokens-data-by-token-addresses
Source: https://docs.coingecko.com/v3.0.1/reference/tokens-data-contract-addresses
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/tokens/multi/{addresses} This endpoint allows you to query multiple tokens data based on the provided token contract addresses on a network
You may add values such as top_pools in the include param to include top pools along with the pools information.
/networks/{network}/tokens/{address}/info instead.
Addresses not found in GeckoTerminal.com will be ignored.
null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).include param will be returned under the top-level "included" key.include_composition=true to surface the balance and liquidity value of the pool's base and quote tokens. (requires include=top_pools)launchpad_details object containing their graduation status and details.URL: llms-txt#multiple-pools-data-by-pool-addresses
Source: https://docs.coingecko.com/v3.0.1/reference/pools-addresses
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/pools/multi/{addresses} This endpoint allows you to query multiple pools based on the provided network and pool address
null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).include params will be included under the "included" key at the top level.locked_liquidity_percentage will be updated on daily basis.include_composition=true to surface the balance and liquidity value of the pool's base and quote tokens.launchpad_details object with their graduation status and migration details.URL: llms-txt#👑-circulating-supply-chart-within-time-range-by-id
Source: https://docs.coingecko.com/reference/coins-id-circulating-supply-chart-range
reference/api-reference/coingecko-pro.json get /coins/{id}/circulating_supply_chart/range This endpoint allows you to query historical circulating supply of a coin, within a range of timestamp based on the provided coin ID
Supports ISO date strings (YYYY-MM-DD or\
YYYY-MM-DDTHH:MM, recommended for best compatibility) or UNIX timestamps.
You may leave the interval params as empty for automatic granularity:
URL: llms-txt#👑-circulating-supply-chart-by-id
Source: https://docs.coingecko.com/reference/coins-id-circulating-supply-chart
reference/api-reference/coingecko-pro.json get /coins/{id}/circulating_supply_chart This endpoint allows you to query historical circulating supply of a coin by number of days away from now based on provided coin ID
URL: llms-txt#💼-past-24-hour-trades-by-token-address
Source: https://docs.coingecko.com/reference/token-trades-contract-address
reference/api-reference/onchain-pro.json get /networks/{network}/tokens/{token_address}/trades This endpoint allows you to query the last 300 trades in the past 24 hours, across all pools, based on the provided token contract address on a network
URL: llms-txt#💼-coin-ohlc-chart-within-time-range-by-id
Source: https://docs.coingecko.com/reference/coins-id-ohlc-range
reference/api-reference/coingecko-pro.json get /coins/{id}/ohlc/range This endpoint allows you to get the OHLC chart (Open, High, Low, Close) of a coin within a range of timestamp based on particular coin ID
You may obtain the coin ID (API ID) via several ways:
/coins/list endpoint.id}/market_chart endpoint.YYYY-MM-DD or\
YYYY-MM-DDTHH:MM, recommended for best compatibility) or UNIX timestamps.
The timestamp displayed in the payload (response) indicates the end (or close) time of the OHLC data.
interval=daily):
interval=hourly):
1518147224 epoch time).URL: llms-txt#token-info-by-token-address
Source: https://docs.coingecko.com/v3.0.1/reference/token-info-contract-address
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/tokens/{address}/info This endpoint allows you to query token metadata (name, symbol, CoinGecko ID, image, socials, websites, description, etc.) based on a provided token contract address on a network
If you would like to query token data such as decimals, total supply, price and etc. You can go to this endpoint /networks/{network}/tokens/{address} instead.
holders data is currently in Beta, with ongoing improvements to data quality, coverage, and update frequency.
distribution_percentage coverage:
top_10, 11_20, 21_40, resttop_10, 11_30, 31_50, restlaunchpad_details object containing their graduation status and details.
URL: llms-txt#coins-list-(id-map)
Source: https://docs.coingecko.com/v3.0.1/reference/coins-list
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/list This endpoint allows you to query all the supported coins on CoinGecko with coins ID, name and symbol
You may use this endpoint to query the list of coins with coin ID for other endpoints that contain params like id or ids (coin ID).
There is no pagination required for this endpoint.
URL: llms-txt#cgsimpleprice
Contents:
Source: https://docs.coingecko.com/websocket/cgsimpleprice
Subscribe to receive real-time price updates for tokens, as seen on CoinGecko.com
This Websocket channel allows you to subscribe to real-time updates of price changes for token.
Update Frequency: as fast as ~10s, for large cap and actively traded coins.
| Field | Type | Description | Example | |
|---|---|---|---|---|
c |
channel_type |
string | Indicates the type of channel subscribed to. | C1 |
i |
coin_id |
string | Identifier of the coins. Check full list of IDs here. | ethereum, usd-coin |
p |
usd_price |
string | Current token price in USD. | 3639.78228844745 |
pp |
usd_price_24h_change_percentage |
float | Percentage change in token price over the last 24 hours. | 3.566 |
m |
usd_market_cap |
float | Market capitalization in USD. | 123 |
v |
usd_24h_vol |
float | 24-hour trading volume in USD. | 31233333.33 |
t |
last_updated_at |
integer | Timestamp of the last data update in UNIX time. | 1709542750 |
Tips: The Websocket payload will use the value null when specific data is unavailable. Ensure your application is capable of handling null values for fields that may not always have data.
The output keys will be in random order.
Input Example: Unsubscribe for 1 specific token data:
Input Example: Unsubscribe from CGSimplePrice channel and all token data:
Examples:
Example 1 (unknown):
</CodeGroup>
## 2. Subscribe to a specific channel - CGSimplePrice
**Input Example:**
<CodeGroup>
Example 2 (unknown):
</CodeGroup>
**Output Example**:
<CodeGroup>
Example 3 (unknown):
</CodeGroup>
## 3. Stream CGSimplePrice
**Input Example:**
<CodeGroup>
Example 4 (unknown):
</CodeGroup>
**Output Example**:
<CodeGroup>
URL: llms-txt#global-defi-market-data
Source: https://docs.coingecko.com/v3.0.1/reference/global-defi
v3.0.1/reference/api-reference/coingecko-demo.json get /global/decentralized_finance_defi This endpoint allows you query top 100 cryptocurrency global decentralized finance (DeFi) data including DeFi market cap, trading volume
URL: llms-txt#top-pools-by-token-address
Source: https://docs.coingecko.com/v3.0.1/reference/top-pools-contract-address
v3.0.1/reference/api-reference/onchain-demo.json get /networks/{network}/tokens/{token_address}/pools This endpoint allows you to query top pools based on the provided token contract address on a network
You may include values such as page to specify which page of responses you would like to show.
The ranking of the top 20 pools is established by evaluating their liquidity and trading activity to identify the most liquid ones. This ranking is determined through a combination of two key factors: liquidity (reserve_in_usd) and 24-Hour Trading Volume (volume_usd).
null for its market cap value, even though it has a displayed value on GeckoTerminal, which might not be accurate as it often matches the Fully Diluted Valuation (FDV).include param will be returned under the top-level "included" key.page param to navigate more results.page: Pagination beyond 10 pages is available for Paid Plan subscribers (Analyst plan or above).URL: llms-txt#4.-get-on-chain-data
Contents:
Source: https://docs.coingecko.com/docs/4-get-on-chain-data
Here are some of the important parameters to take note while using Onchain DEX API Endpoints:
Please do not use CoinGecko Asset Platform ID as the Network ID in Onchain DEX API Endpoints (CoinGecko Asset Platform ID ≠ GT Network ID)
Asset Platform on CoinGecko: ethereum
eth
How to obtain Network ID?
Select or search for a blockchain network.
Copy the slug from the URL:

Some of the pools endpoints require you to provide DEX ID along with Network ID to query the pools on a particular DEX (Decentralized Exchange).
Using /onchain/networks/{network}/dexes/{dex}/pools as example:
https://pro-api.coingecko.com/api/v3/onchain/networks/eth/dexes/uniswap_v3/pools?x_cg_pro_api_key=YOUR_API_KEYThere are 2 parameter values required to apply for this endpoint:
network: eth (network ID)dex: uniswap_v3 (DEX ID)How to obtain DEX ID?
Select or search for a blockchain network.
Choose the DEX from the DEXs List on the top (e.g. Uniswap V3).
Copy the slug from the URL:

Most of the time, you will need a pool contract address along with Network ID to query the onchain data, especially when using the Pools Endpoints.
Using /onchain/networks/{network}/pools/{address} as example:
https://pro-api.coingecko.com/api/v3/onchain/networks/eth/pools/0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc?x_cg_pro_api_key=YOUR_API_KEYThere are 2 parameter values required to apply for this endpoint:
network: eth (network ID)address: 0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc (pool contract address)How to obtain the pool contract address? (e.g.WETH/USDC)

Get the pool contract address from the project website, white-paper, documentation, or block explorer site:
Apart from the pool contract address, you also have the option to query onchain data by using the token contract address, using /onchain/networks/{network}/tokens/{token_address}/pools as example:
https://pro-api.coingecko.com/api/v3/onchain/networks/eth/tokens/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/pools?x_cg_pro_api_key=YOUR_API_KEYThere are 2 parameter values required to apply for this endpoint:
network: eth (network ID)address: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (token contract address)How to obtain tokens contract address (e.g. UNI):

Get the token contract address from the project website, white-paper, documentation, or block explorer site. For example:
Examples:
Example 1 (unknown):
</CodeGroup>
* Go to [GeckoTerminal](https://www.geckoterminal.com/)
1. Select or search for a blockchain network.
2. Copy the slug from the URL:
<img src="https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/5b9a903-image.png?fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=3d58e3708238e2c869afeb50f36ba74a" alt="" data-og-width="3024" width="3024" data-og-height="1964" height="1964" data-path="images/docs/5b9a903-image.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/5b9a903-image.png?w=280&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=4989c53c98cdf6a3b7e313e6a9804ab0 280w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/5b9a903-image.png?w=560&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=d969711a6080bed61c7ea74574f8c9c4 560w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/5b9a903-image.png?w=840&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=00c5bc4b0bddd4b5c2a1db9feccf6cb9 840w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/5b9a903-image.png?w=1100&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=fae4d183cc2e8adffa335e7fd646f7d0 1100w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/5b9a903-image.png?w=1650&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=557a46ebb5da439b2f10be9d31b78618 1650w, https://mintcdn.com/coingecko/a7cplMjqO5fc2v5e/images/docs/5b9a903-image.png?w=2500&fit=max&auto=format&n=a7cplMjqO5fc2v5e&q=85&s=c2a5d9ec2a1c59d2479ee38eb887b103 2500w" />
## DEXs
Some of the pools endpoints require you to provide DEX ID along with Network ID to query the pools on a particular DEX (Decentralized Exchange).
Using [/onchain/networks/\{network}/dexes/\{dex}/pools](/reference/top-pools-dex) as example:
* `https://pro-api.coingecko.com/api/v3/onchain/networks/eth/dexes/uniswap_v3/pools?x_cg_pro_api_key=YOUR_API_KEY`
There are 2 parameter values required to apply for this endpoint:
* `network`: `eth` (network ID)
* `dex`: `uniswap_v3` (DEX ID)
**How to obtain DEX ID?**
* Use [/onchain/networks/\{network}/dexes](/reference/dexes-list) endpoint, example of response:
<CodeGroup>
URL: llms-txt#👑-total-supply-chart-within-time-range-by-id
Source: https://docs.coingecko.com/reference/coins-id-total-supply-chart-range
reference/api-reference/coingecko-pro.json get /coins/{id}/total_supply_chart/range This endpoint allows you to query historical total supply of a coin, within a range of timestamp based on the provided coin ID
Supports ISO date strings (YYYY-MM-DD or\
YYYY-MM-DDTHH:MM, recommended for best compatibility) or UNIX timestamps.
Cache/Update Frequency: 5 minutes.
URL: llms-txt#coin-historical-chart-data-within-time-range-by-id
Source: https://docs.coingecko.com/v3.0.1/reference/coins-id-market-chart-range
v3.0.1/reference/api-reference/coingecko-demo.json get /coins/{id}/market_chart/range This endpoint allows you to get the historical chart data of a coin within certain time range in UNIX along with price, market cap and 24hr volume based on particular coin ID
You may obtain the coin ID (API ID) via several ways:
/coins/list endpoint.You may leave the interval params as empty for automatic granularity:
URL: llms-txt#💼-token-ohlcv-chart-by-token-address
Source: https://docs.coingecko.com/reference/token-ohlcv-token-address
reference/api-reference/onchain-pro.json get /networks/{network}/tokens/{token_address}/ohlcv/{timeframe} This endpoint allows you to get the OHLCV chart (Open, High, Low, Close, Volume) of a token based on the provided token address on a network
1708850449.before_timestamp parameter to query in multiple requests.include_empty_intervals param:false (default): Only intervals with trade data are returned.true: All requested intervals are returned, those with no trade data are populated as follows:
URL: llms-txt#token-lists-by-asset-platform-id
Source: https://docs.coingecko.com/v3.0.1/reference/token-lists
v3.0.1/reference/api-reference/coingecko-demo.json get /token_lists/{asset_platform_id}/all.json This endpoint allows you to get full list of tokens of a blockchain network (asset platform) that is supported by Ethereum token list standard