Skip to main content

Getting Started

Pythonic and intuitive interface — write less code, ship faster.

Prompt for integrating CoinGecko Python SDK

Or set up manually:
1

Install

pip install coingecko-sdk
View on PyPI | GitHub
2

Import and authenticate

from coingecko_sdk import Coingecko

client = Coingecko(
    pro_api_key='YOUR_API_KEY',
    environment="pro",
)
Replace YOUR_API_KEY with your key from the Developer Dashboard.
3

Make your first request

response = client.simple.price.get(
    vs_currencies="usd",
    ids="bitcoin",
)

print(response)

Finding Method Names

SDK methods map to API endpoint paths. For example, /simple/price becomes client.simple.price.get(). Two ways to find the right method:
  1. Reference pagescheck the SDK Examples section on any endpoint reference page.
  2. All methods — browse the full list with endpoint mappings.

Found a bug or missing feature? Open an issue.