Skip to main content

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
Find contract addresses on the coin page at Coingecko:
Not all coins have a contract address on Coingecko. If unlisted, you can’t query by address.
Find addresses via /coins/list with 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:

Common Patterns