> ## Documentation Index
> Fetch the complete documentation index at: https://x-preview-mintlify-066e8699.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# UsageClient

> Reference for the usage.client Python module in the X API SDK. Client class and methods for calling the usage endpoints of the X API v2.

## UsageClient

<Badge color="blue">Class</Badge>

<Badge color="gray">Bases: object</Badge>

Client for usage operations

## Constructors

### `__init__`

#### Parameters

<ParamField path="path.client" type="Client" />

### `get`

Get usage
Retrieves usage statistics for Posts over a specified number of days.

#### Parameters

<ParamField path="path.days" type="int or None" default="None">
  The number of days for which you need usage for.
</ParamField>

<ParamField path="path.usage_fields" type="List or None" default="None">
  A comma separated list of Usage fields to display.
</ParamField>

#### Returns

`GetResponse` - Response data
