Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CoinGecko Pro API #166

Closed
n8maninger opened this issue Feb 4, 2025 · 1 comment · Fixed by #167
Closed

Support CoinGecko Pro API #166

n8maninger opened this issue Feb 4, 2025 · 1 comment · Fixed by #167
Assignees

Comments

@n8maninger
Copy link
Member

n8maninger commented Feb 4, 2025

The currently supported endpoint only works with a demo API key or without an API key. A couple changes are necessary to use the CoinGecko Pro API:

  • https://api.coingecko.com -> https://pro-api.coingecko.com
  • x-cg-demo-api-key -> x-cg-pro-api-key

Documentation can be found here: https://docs.coingecko.com/reference/authentication

Might be best to have two CoinGecko sources. If no key is available, use the free API, otherwise use the pro API.

@chris124567
Copy link
Member

chris124567 commented Feb 4, 2025

I think you always need to provide an API key now, because I've tried a blank API key or just omitting the header altogether and they return errors.

https://www.reddit.com/r/coingecko/comments/1amkl77/public_keyless_api_deprecation/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants