Authentication method for CoinGecko Pro API (Paid plan subscribers with Pro-API keys)
https://pro-api.coingecko.com/api/v3/
.x-cg-pro-api-key
x_cg_pro_api_key
Authentication Method | Example using Ping Endpoint |
---|---|
Header (cURL) | curl -X GET "https://pro-api.coingecko.com/api/v3/ping" -H "x-cg-pro-api-key: YOUR_API_KEY" |
Query String Parameter | https://pro-api.coingecko.com/api/v3/ping?x_cg_pro_api_key=YOUR_API_KEY |
/onchain
endpoint path in the request.Authentication Method | Example using Simple Token Price Endpoint |
---|---|
Header (cURL) | curl -X GET "<https://pro-api.coingecko.com/api/v3/onchain/simple/networks/eth/token_price/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2>" -H "x-cg-pro-api-key: YOUR_API_KEY" |
Query String Parameter | https://pro-api.coingecko.com/api/v3/onchain/simple/networks/eth/token_price/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2?x_cg_pro_api_key=YOUR_API_KEY |