pycoingecko
Python wrapper around the CoinGecko API
What it is and what it does
Pycoingecko is a Python client library that wraps the CoinGecko cryptocurrency API, letting you query live and historical price data, market capitalization, trading volume, and exchange information for thousands of cryptocurrencies. It supports both the free public API and the paid Pro tier, with optional API key authentication. The library maps CoinGecko's REST endpoints to Python methods, handling parameter conversion (lists, booleans, strings) and returning JSON responses as Python dictionaries.
You use it by instantiating a CoinGeckoAPI object, optionally passing an API key, then calling methods like get_price(), get_coin_by_id(), or get_coin_market_chart_by_id() with the parameters documented in the CoinGecko API reference. It depends only on requests, so installation and setup are straightforward. However, the project is dormant—no updates in 639 days—so if CoinGecko's API evolves, you may encounter compatibility issues or missing endpoints.
Use it for:
- Fetch current cryptocurrency prices in multiple fiat currencies for a portfolio tracker or price dashboard
- Build historical price charts or analyze market trends using get_coin_market_chart_by_id() for OHLC data
- Monitor exchange listings and trading pairs for a coin using get_coin_ticker_by_id()
- Query market cap, 24-hour volume, and price changes for research or algorithmic trading signals
- Retrieve metadata (name, symbol, description) and contract addresses for token discovery
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python wrapper around the CoinGecko API (v3) that fetches cryptocurrency prices, market data, historical charts, and exchange information from both public and pro API endpoints.
Yes, if you need a lightweight, zero-setup way to query CoinGecko's public cryptocurrency data and can tolerate dormant maintenance. The low install friction and permissive license make it a safe choice for prototypes and read-only data fetching. No, if you require active maintenance, up-to-date Pro API support, or expect CoinGecko's endpoints to change—consider forking or monitoring for a maintained alternative.
Install
pycoingecko on PyPI
pip
pip install pycoingeckouv
uv add pycoingeckopoetry
poetry add pycoingeckoInstalling pycoingecko
Before you install
Low install friction with a single runtime dependency (requests). Maintenance is dormant—last commit was 2024-11-13 and no release in 639 days—so expect no active bug fixes or feature updates, though the repository remains public and not archived.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions, making it safe for commercial and private projects.
Quickstart
pip install pycoingecko
from pycoingecko import CoinGeckoAPI
cg = CoinGeckoAPI()
print(cg.get_price(ids='bitcoin', vs_currencies='usd'))
Verify before relying
- Whether the public API rate limits or access policies have changed since the last release
- Compatibility with current CoinGecko API response formats and endpoint behavior
- Whether Pro API features work reliably with the latest CoinGecko Pro API v3.1.1
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | dormant — 639 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 414,270/month — #6,836 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pycoingecko-3.2.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
forex-pythonFetches current and historical foreign exchange…
permissive · top 15,000 on PyPI
etherscan-pythonProvides a complete Python client for…
permissive · top 15,000 on PyPI
krakenexProvides a minimal Python interface to the…
copyleft · top 15,000 on PyPI
tardis-clienttardis-client is a deprecated Python client for…
copyleft · top 15,000 on PyPI
tardis-devProvides async access to tick-level historical…
copyleft · top 15,000 on PyPI
ccxtCCXT is a unified API library for connecting to…
permissive · top 5,000 on PyPI
openbb-cryptoProvides cryptocurrency data retrieval commands…
agpl · top 15,000 on PyPI
yfinanceFetches financial and market data from Yahoo…
permissive · top 1,000 on PyPI
alpaca-pyAlpaca-py is the official Python SDK for…
permissive · top 5,000 on PyPI
python-binanceUnofficial Python wrapper for the Binance…
permissive · top 15,000 on PyPI