How to request the data of only one cryptocurrency using CoinMarketCap api

0 votes
I know how to request data of many cryptocurrencies using CoinMarketCap API by setting start and limit params but, it is possible to request the data of only one cryptocurrency? for example bitcoin. I can do it iterating the list of the result that I obtain by making a request with start and limit params but I wouldn't like to do it for obvious performance reasons. I just don't find the endpoint to do it in coinmarketcap´s API documentation
Apr 5, 2022 in Blockchain by Rahul
• 9,690 points
2,783 views

1 answer to this question.

0 votes

If you want to get the price data:

url = 'https://pro-api.coinmarketcap.com/v1/tools/price-conversion' 

parameters = {
'Amount':'1',
'symbol':'BTC', 
'convert':'USD' } 

headers = { 
'Accepts': 'application/json', 
'X-CMC_PRO_API_KEY': CMC_KEY, 

}

Get your API key: https://pro.coinmarketcap.com/

Hope this helps!

Enroll in blockchain training to learn from the expert!

answered Apr 7, 2022 by Aditya
• 7,680 points

Related Questions In Blockchain