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?

Hapeki
  • 143
  • 1
  • 5

3 Answers3

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.

Tailer
  • 3,669
  • 1
  • 14
  • 36
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

dziungles
  • 41
  • 3
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!

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