4

I've been searching for an API that returns the logo/image for a cryptocurrency. API's like CoinCap.io and Bittrex don't return this information in the response. Is there any public API which provides the logo for a specific cryptocurrency?

3 Answers 3

3

You can use their css class

http://coincap.io/css/spritesheet.css?v=1_6_1

attach it in your html file and call it like that for bitcoin logo:

<span class="sprite sprite-bitcoin small_coin_logo"></span>

But you have to contact them for copyright measures.

0
2

No particular API, but a solution how to get all logos from Coinmarketcap with the correct IDs can be found here: https://github.com/giekaton/cryptocurrency-logos

1
  • For the high quality .png and vector .svg files see this new Crypto Logos gallery.
    – dziungles
    Commented May 16, 2019 at 13:23
1

New update, seems like CoinCap.io stores their logos here:

https://assets.coincap.io/assets/icons/{}@2x.png

Just replace the parentheses above with the symbol of the cryptocurrency you are looking for. Example:

https://assets.coincap.io/assets/icons/[email protected]

The symbol can be found using the CoinCap.io API

https://api.coincap.io/v2/assets/bitcoin

{
  "data": {
    "id": "bitcoin",
    "rank": "1",
    "symbol": "BTC",
    "name": "Bitcoin",
    "supply": "17193925.0000000000000000",
    "maxSupply": "21000000.0000000000000000",
    "marketCapUsd": "119179791817.6740161068269075",
    "volumeUsd24Hr": "2928356777.6066665425687196",
    "priceUsd": "6931.5058555666618359",
    "changePercent24Hr": "-0.8101417214350335",
    "vwap24Hr": "7175.0663247679233209"
  },
  "timestamp": 1533581098863
}

Docs: https://docs.coincap.io/

Happy coding!

1
  • nice free api, shame a coin like ENS is missing (& i'd speculate other important coin might be missing too)
    – mikakun
    Commented Sep 4, 2022 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.