Skip to main content

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.9.2.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coinmetrics-api-client 2026.9.2.14
File Size Uploaded
coinmetrics_api_client-2026.9.2.14.tar.gz 196.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coinmetrics-api-client 2026.9.2.14
File Interpreter ABI Platform
coinmetrics_api_client-2026.9.2.14-py3-none-any.whl Python 3 none any Details

Total release size: 358.3 kB

Release files / coinmetrics_api_client-2026.9.2.14.tar.gz

Download URL coinmetrics_api_client-2026.9.2.14.tar.gz
Size 196.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d35a9556e57e09cd7ba2819ee75fb7ebb8053934b16215839bdc6738a90c7a1a
BLAKE2b-256 checksum
How to use checksums
16f2e88647942f3858222a0d13b197686727153a8c8aa4371d52a28d31472d12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.16 Linux/6.8.0-137-generic

Release files / coinmetrics_api_client-2026.9.2.14-py3-none-any.whl

Download URL coinmetrics_api_client-2026.9.2.14-py3-none-any.whl
Size 161.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc6911ed35b389478291a49d622bdade7d2c632f79ae7719b7f914889353c136
BLAKE2b-256 checksum
How to use checksums
cc01f02434f72c97bb6b22ec2d6d494005af60a434df75251fa22878e7d9c978
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.16 Linux/6.8.0-137-generic

Release history Release notifications | RSS feed

This release

2026.9.2.14 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page