Skip to main content
The Python XDK is the official client library for the X API v2. It handles authentication, pagination, and streaming so you can focus on building.

GitHub repository

Source code, issues, and releases.

Installation

Requires Python 3.8+.

Quick start


Key features


Authentication


Common methods


Learn more

Installation

Development install, prerequisites, and verification.

Quickstart

Step-by-step first request walkthrough.

Authentication

Detailed guide for all auth methods.

Pagination

Automatic pagination and iterators.

Streaming

Real-time data via filtered stream.

API Reference

Complete client and model reference.
For code examples, see the samples repo.