Skip to main content
The TypeScript XDK is the official client library for the X API v2. Full type safety, automatic pagination, and event-driven streaming.

GitHub repository

Source code, issues, and releases.

Installation

Requires Node.js 16+ and TypeScript 4.5+ (if using TypeScript).

Quick start


Key features


Authentication


Common methods


Learn more

Installation

Package managers, TypeScript setup, and requirements.

Authentication

Detailed guide for all auth methods.

Pagination

Async iteration and paginated responses.

Streaming

Event-driven streaming with reconnection.

API Reference

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