CoinGecko API Authentication Method
If this is your first time using the Pro API key, you can supply API Key to the root URL using one of these ways:
- Header (Recommended):
x-cg-pro-api-key - Query String Parameter:
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 |