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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coinmetrics_api_client-2026.8.13.18.tar.gz (195.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coinmetrics_api_client-2026.8.13.18-py3-none-any.whl (159.5 kB view details)

Uploaded Python 3

File details

Details for the file coinmetrics_api_client-2026.8.13.18.tar.gz.

File metadata

  • Download URL: coinmetrics_api_client-2026.8.13.18.tar.gz
  • Upload date:
  • Size: 195.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.15 Linux/6.8.0-137-generic

File hashes

Hashes for coinmetrics_api_client-2026.8.13.18.tar.gz
Algorithm Hash digest
SHA256 a6f4feb5e658e46db39291d4fad4718effc705806b32735ea954781350388bd2
MD5 ec9e43cbb2a2500a0a247b179f97251d
BLAKE2b-256 dc72fbf654bbf702b3238853a7439bc98bb5a1a0a1d7e232f87afc98961cba12

See more details on using hashes here.

File details

Details for the file coinmetrics_api_client-2026.8.13.18-py3-none-any.whl.

File metadata

File hashes

Hashes for coinmetrics_api_client-2026.8.13.18-py3-none-any.whl
Algorithm Hash digest
SHA256 361bc1b161a0d9208975f583487775e6373cda1035e4889852adb33232f2c146
MD5 8d64438f4ffa9625fb02ba5a433a3838
BLAKE2b-256 a3ab9cb70b3c8e501ef435fc97f2ea3de225435049fac36d4443754133f04ba1

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page