@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
fetch and Web Crypto).
Quick start
Authentication
- Bearer Token
- OAuth 2.0 PKCE
- OAuth 1.0a
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.