[Ethereum] the best free api for ETHEREUM price

external-api

I use the api below for bitcoin price :
https://api.coindesk.com/v1/bpi/currentprice.json
But coindesk hasn't ETHEREUM price in it's api.
What api should i use to get ETHEREUM price?


Also the api below does not work any more :
https://api.coinmarketcap.com/v1/ticker/ethereum/

Best Answer

Try https://min-api.cryptocompare.com.

Here is an example of how you can fetch information programmatically:

const request = require("request");

request.get("https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD,EUR,CNY,JPY,GBP", function(error, response, body) {
    if (error)
        throw error;
    else if (!response)
        throw new Error("no response");
    else if (response.statusCode != 200)
        throw new Error("bad response");
    else
        console.log(JSON.stringify(JSON.parse(body), null, 4));
});
Related Topic