1. Get data by ID or Address
Methods to query price & market data of coins
a. Coin ID
Using the /simple/price endpoint as an 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=bitcoinandvs_currencies=usd, indicating the intention to retrieve the current price of Bitcoin in US Dollars.
How to obtain Coin ID aka API ID? There are 3 options:
-
Use /coins/list endpoint, example of responses:
JSON -
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:

b. Contract Address
Other than using Coin ID, you may also query price & market data of a coin using contract address, using the /simple/token_price/{id} endpoint as an 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 parameter values required 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 endpoint (
include_platform=true), example of responses:JSON - Look for the βContractβ by visiting the info section of a coin page on CoinGecko.
Notes
- Not all coins will have a contract address listed on the CoinGecko site.
- If an address is not shown on the CoinGecko page, you will not be able to query the coin by its contract address via the API.
- The contract addresses are curated by the CoinGecko team, if you find any missing contract address, feel free to share with us to review.

-
Get the token contract address from the project website, white-paper, documentation, or block explorer site:
Specify target currency to return
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 cryptocurrencies like the following:
For full list of supported currencies, please go to /simple/supported_vs_currencies endpoint.
Other ways to obtain coin prices & market data
Using the /coins/markets endpoint as an 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_KEY
There are 4 parameter values 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 parameterper_page. In the case ofper_page=100andpage=2, the responses will include coins ranked 101 to 200 on CoinGecko, sorted by market cap, as per the specified endpoint.
