Finding a Coin ID
Most endpoints require a coin ID (e.g.bitcoin, ethereum).
Find a coinβs API ID on its Coingecko page, via Coins List, or this Google Sheet.To resolve a name or symbol to a coin ID at runtime, use /search β it returns matching coins, categories, and markets:

Using Contract Addresses
Query by contract address instead of coin ID β useful when you donβt know the Coingecko ID.id: asset platform ID (e.g.ethereum)contract_addresses: token contract address

Not all coins have a contract address on Coingecko. If unlisted, you canβt query by address.
include_platform=true:
Target Currencies
Full list: /simple/supported_vs_currencies
Bulk Queries
/coins/markets β price and market data for many coins at once (up to 250 per page).Historical Data
Auto-granularity based on time range:
- 1 day from now β 5-minute intervals
- 1 day from any other time β hourly
- 2β90 days β hourly
- 90+ days β daily (00:00 UTC)
Historical Data for Inactive Coins
Coins delisted from Coingecko are excluded from /coins/list by default, but their historical data stays queryable (Analyst plan or above).1
Get the coin ID β /coins/list
Call /coins/list with
status=inactive, then take the coin ID from the response.2
Query the historical endpoints
Pass that coin ID to any of:
- /coins/{id}/history β snapshot at a specific date
- /coins/{id}/market_chart β time series over N days
- /coins/{id}/market_chart/range β time series within a date range
- /coins/{id}/contract/{address}/market_chart β by contract address, over N days
- /coins/{id}/contract/{address}/market_chart/range β by contract address, within a date range

