API key - can I store the key in my headers?
Last updated: October 2, 2026
Yes. You can supply your API key in one of two ways:
- Header: x-cg-pro-api-key
- Query string parameter: x_cg_pro_api_key
Note:
API key is currently only available for CoinGecko API paid plan and Demo plan subscribers. For the API paid plan, API key requests should target this domain: https://pro-api.coingecko.com. For the Demo plan, API key requests should target this domain: https://api.coingecko.com.
You are recommended to store the API key securely in your own backend and use a proxy to insert the key into the request URL.