Coin Price by IDs
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:
- refers to respective coin page and find 'API ID'.
- refers to
/coins/listendpoint. - refers to Google Sheets here.
- You can retrieve specific coins using their unique
ids,names, orsymbols. - You may flag to include more data such as market cap, 24hr volume, 24hr change, last updated time etc.
- To verify if a price is stale, you may flag
include_last_updated_at=truein your request to obtain the latest updated time. Alternatively, you may flaginclude_24hr_change=trueto determine if it returns anullvalue.
You may cross-check the price on CoinGecko and learn more about our price methodology here.
- When multiple lookup params are provided, the following priority order is applied:
ids(highest) >names>symbols(lowest). - When searching by
name, you need to URL-encode any spaces (e.g. "Binance Coin" becomes "Binance%20Coin"). - The
include_tokens=allparam is exclusively for use with thesymbolslookup and is limited to maximum of 50 symbols per request. - Wildcard searches are not supported for lookup params (
ids,names,symbols). - Cache/Update Frequency: every 60 seconds for Public API.
- Every 20 seconds for Pro-API (Analyst, Lite, Pro, Enterprise).
- When multiple lookup params are provided, the following priority order is applied: