Skip to main content
X provides official SDKs for TypeScript and Python. These libraries handle authentication, pagination, and provide full type safety.

Python SDK

Async support, type hints, comprehensive v2 coverage.

TypeScript SDK

Full TypeScript types, ESM support, works with Node.js.

Why use the official SDKs?


Quick start

Installation

Basic usage


Authentication

Both SDKs support multiple authentication methods:
Simplest option for reading public data.Python:
TypeScript:

Available methods

The SDKs provide methods for all X API v2 endpoints: See the full SDK documentation for complete method reference.

Resources

Python SDK Docs

Complete Python documentation.

TypeScript SDK Docs

Complete TypeScript documentation.

Python GitHub

Source code and issues.

TypeScript GitHub

Source code and issues.