The server responds to a user’s request by issuing status codes when the request is made to the server. Kindly refer to the table below to further understand the status codes when indicating the success or failure of an API call.
400 (Bad Request)
This is due to an invalid request and the server could not process the user's request.
This is due to the lack of valid authentication credentials for the requested resource by the user.
429 (Too many requests)
This is likely indicating that the rate limit has reached. The user should reduce the number of calls made, or consider scaling their service plan that has much higher rate limits and call credits.
To upgrade your plans, kindly refer to: https://www.coingecko.com/en/api/pricing .
This is a generic error response indicating that the server has encountered an unexpected issue that prevented it from fulfilling the request.
10002 (API Key Missing)
You have provided incorrect API key credentials. Please check your keys in developer dashboard and ensure that your request is authorised.
You may not have access to this endpoint. E.g. 'This request is limited Pro API subscribers'. You may wanna subscribe to a paid plan here.
This is likely indicating that your access is blocked by our server, and we're unable to authorise your request.
1020 (Access Denied)
This is due to violation of CDN firewall rule.
A CORS error occurs when the server doesn’t return the CORS headers required. You may learn more and attempt the recommended solutions here.
For Public API user, the rate limit is 10-30/min and it varies depending on the traffic size.
If you're Pro API user, the rate limit is depending on the paid plan that you're subscribed to.
Note: if you're using the public API with Google Sheet and got hit with error, this is due to the IP sharing among Google Sheet users, and we have no control over this. If you need reliable performance, please subscribe to a paid plan that comes with dedicated infra (API key) to prevent rate limit issues.