W
W
WhiteJamer2020-12-09 20:36:01
API
WhiteJamer, 2020-12-09 20:36:01

How to get icons for each cryptocurrency with coinmarketcap results?

I use the end-point https://pro-api.coinmarketcap.com/v1/cryptocurrenc... and I want to display icons corresponding to the cryptocurrency in my interface, how can this be done, maybe there is some separate API for this?

I have an array of cryptocurrencies from such data

{
            "id": 1,
            "name": "Bitcoin",
            "symbol": "BTC",
            "slug": "bitcoin",
            "num_market_pairs": 9616,
            "date_added": "2013-04-28T00:00:00.000Z",
            "tags": [
                "mineable",
                "pow",
                "sha-256",
                "store-of-value",
                "state-channels"
            ],
            "max_supply": 21000000,
            "circulating_supply": 18566543,
            "total_supply": 18566543,
            "platform": null,
            "cmc_rank": 1,
            "last_updated": "2020-12-09T17:18:02.000Z",
            "quote": {
                "USD": {
                    "price": 18420.911513919044,
                    "volume_24h": 35604442411.68402,
                    "percent_change_1h": 0.31424396,
                    "percent_change_24h": -1.90434404,
                    "percent_change_7d": -2.80976127,
                    "market_cap": 342012645722.37305,
                    "last_updated": "2020-12-09T17:18:02.000Z"
                }
            }
        },

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2020-12-09
@Whitejamer

https://s2.coinmarketcap.com/static/img/coins/64x6...
What is the question? What special api is needed to see the urls of the images on the page and collect them for yourself.

A
andreyzvd, 2020-12-09
@andreyzvd

This is not an array, but json
Use JSON.parse () for example in javascript

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question