cURL
curl --request GET \ --url https://api.coingecko.com/api/v3/exchange_rates \ --header 'x-cg-demo-api-key: <api-key>'
{ "rates": { "btc": { "name": "Bitcoin", "unit": "BTC", "value": 1, "type": "crypto" }, "eth": { "name": "Ether", "unit": "ETH", "value": 20.656, "type": "crypto" }, "ltc": { "name": "Litecoin", "unit": "LTC", "value": 684.945, "type": "crypto" }, "bch": { "name": "Bitcoin Cash", "unit": "BCH", "value": 102.254, "type": "crypto" }, "bnb": { "name": "Binance Coin", "unit": "BNB", "value": 119.846, "type": "crypto" } } }
This endpoint allows you to query BTC exchange rates with other currencies
List rates
Show child attributes
Was this page helpful?