Note: if you're a Pro API user (subscriber of any paid API plans), please follow this guide here.
How to create a Demo API account?
1. Navigate to our API Pricing page and select ‘Create Demo Account’.
2. Sign up or log into your CoinGecko account (left). If you’re already logged in, fill in the form in the pop-up (right).
.
How to create a new Demo API key and make an API request?
1. Create a new API Key
- Once you're logged to your CoinGecko account, go to Developer's Dashboard.
-
Click on “+ Add New Key” and a new API Key will be created
2. Making an API request
- Root URL for Demo Plan API: https://api.coingecko.com/api/v3
- You will be using the newly created API Key as query parameter. Request Example:
curl https://api.coingecko.com/api/v3/ping?x_cg_demo_api_key=YOUR_API_KEY
-
You can check list of all available endpoints here in our official documentation: https://docs.coingecko.com/v3.0.1/reference/introduction
Tips:
-
Remember to add &x_cg_demo_api_key= and replace YOUR_API_KEY with your own API Key.
-
Here's an example of calling Bitcoin's market data with your Demo API key: https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids=bitcoin&x_cg_demo_api_key=YOUR_API_KEY
-
You can also supply your API key via custom header named: x-cg-demo-api-key
Comments
0 comments
Article is closed for comments.