pythonweb-scrapingcoinmarketcap

Scraping from Coinmarketcap.com


I have previously posted a question regarding scraping of the website coinmarketcap.com (Scraping data from a container) which is now solved. But I still have a question about how to find/change the API url depending on the crypto currency I want to scrape from. In the question linked above this one is used to get Bitcoin:

https://api.coinmarketcap.com/data-api/v3/cryptocurrency/historical?id=1&convertId=2781&timeStart=1633910400&timeEnd=1639180800

My question is, what should I do to get another crypto like ethereum?

I'm new to scraping and not very familiar with the terminology

Edit: To you who dislikes this, can you please explain why?


Solution

  • Check their documentation website If you search around a bit you can find the historical listings subpage , and on that subpage it describes the API, and you can find that there is a query called convert_id which translate to different fiat and crypto currency.

    Nonetheless, this question should rather be asked on coinmarketcap forums or channels rather than StackOverflow