# Python API Client

The CM Python API Client provides a simple way to access all data available via the Coin Metrics' API. D Use this client to query all kinds of data. In just a few lines of code, *anyone* can access clean cryptocurrency data in a familiar form, such as a pandas dataframe. Detailed documentation & installation instructions can be found on [GitHub](https://docs.coinmetrics.io/python-api-client/).

For a thorough walkthrough of what you can do with the community client, check out our [walkthrough](/tutorials-and-examples/tutorials/walkthrough_community.md). Examples of exporting data can be found in How to Export Data > [How To Export Data](/tutorials-and-examples/user-guides/exporting-data.md#python-api-client).

## Installation

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`

For more in depth information on how to use the Python API Client, see the [Python API Client docs.](https://docs.coinmetrics.io/python-api-client/)

## Walkthrough

See: [Python API Client Walkthrough](/tutorials-and-examples/tutorials/walkthrough_community.md)#

### Tips and Tricks

{% embed url="<https://youtu.be/YR1nVNWt5Ds?feature=shared>" %}
Tips and Tricks for Python Client
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook-docs.coinmetrics.io/access-our-data/python-client.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
