Skip to main content
@xdevplatform/xdk (GitHub) is the official TypeScript and JavaScript client library for the X API v2.

npm

npm install @xdevplatform/xdk · Node.js 18+

GitHub

Source code and issues.

Installation

Requires Node.js 18+ (built-in fetch and Web Crypto).

Quick start


Authentication


Common methods


Learn more

Install

Install with npm, pnpm, yarn, or bun.

Quickstart

Make your first request.

Authentication

Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a.

Pagination

Async iteration and manual paging.

Streaming

Event listeners and async iteration.

API Reference

Methods and parameters for each client.