Coin Metrics Python API Client
The Coin Metrics Python API Client is the official Python wrapper for the Coin Metrics API, allowing you to access Coin Metrics data using Python. In just a few lines of code, anyone can access clean cryptocurrency data in a familiar form, such as a pandas dataframe.
This tool offers the following convenient features over simply using requests to query the Coin Metrics API:
- Automatic Pagination. The Coin Metrics API limits most endpoints to no more than 10,000 entries, requiring users to handle pagination. The Python API Client handles this automatically.
- DataFrames. Users may access Coin Metrics data using pandas DataFrames and potentially other data structures, such as polars.
- Data Exports. Users may export API outputs to CSV and JSON files.
- Typing. DataFrames are automatically converted to the appropriate data types.
- Parallelization. Users may submit many requests at once to extract data much more quickly than sending one request at a time.
Getting Started
Installation and Updates
To install the client you can run the following command:
pip install coinmetrics-api-client
Note that the client is updated regularly to reflect the changes made in API v4. Ensure that your latest version matches with what's in pyPI
To update your version, run the following command:
pip install coinmetrics-api-client -U
Initialization
To initialize the client you should use your API key, and the CoinMetricsClient class like the following.
from coinmetrics.api_client import CoinMetricsClient
import os
# we recommend storing your Coin Metrics API key in an environment variable
api_key = os.environ.get("CM_API_KEY")
client = CoinMetricsClient(api_key)
# or to use community API:
client = CoinMetricsClient()
Metadata
Release files for coinmetrics-api-client 2026.10.23.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| coinmetrics_api_client-2026.10.23.19.tar.gz | 205.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coinmetrics_api_client-2026.10.23.19-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 373.1 kB
Release files / coinmetrics_api_client-2026.10.23.19.tar.gz
| Download URL | coinmetrics_api_client-2026.10.23.19.tar.gz |
|---|---|
| Size | 205.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7317ba2e1bf820d527b04152f8b9b578f99e16d2a704a1ff105d0180380fafef
|
|
BLAKE2b-256 checksum How to use checksums |
0b3958b4d9cc2a91eb685422210c4d6d0f0a9fcf725ac6b3a87c07e9ba6acac1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.17 Linux/6.8.0-137-generic
|
Release files / coinmetrics_api_client-2026.10.23.19-py3-none-any.whl
| Download URL | coinmetrics_api_client-2026.10.23.19-py3-none-any.whl |
|---|---|
| Size | 167.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f19c0c64e6b907d800bf40c74773ae224827622ba010679b65a0e68473345488
|
|
BLAKE2b-256 checksum How to use checksums |
82097ba88311fe222181d04c3266f906c895ddf04d1680892ea37d97ec4fb26d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.11.17 Linux/6.8.0-137-generic
|
Security for coinmetrics-api-client 2026.10.23.19
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.