Skip to main content

Submodules

Module contents

This module provides access to the usage endpoints of the X API and serves as the main entry point for all usage-related functionality.

class xdk.usage.UsageClient

Client for usage operations

Parameters

path.client
Client

__init__

Parameters

path.client
Client

get

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

Parameters

path.days
int or None
default:"None"
The number of days for which you need usage for.
path.usage_fields
List or None
default:"None"
A comma separated list of Usage fields to display.

Returns

GetResponse - Response data