Official SDKs (XDKs)
Client libraries for the X API v2, generated from the OpenAPI spec with auth, pagination, and streaming built in.Python
pip install xdk · Python 3.8+TypeScript
npm install @xdevplatform/xdk · Node.js 18+Java
com.x:xdk · Java 17+C# / .NET
dotnet add package XDevPlatform.Xdk · .NET 8+Quick start
- Python
- TypeScript
- Java
- C#
Developer tools
xurl
curl-like CLI for the X API with built-in OAuth 2.0, OAuth 1.0a, and app-only authentication.Chat XDK
Client-side encryption, key management, and signing toolkit for X Chat in Python, TS, Java, C#, Go, and Rust.
Postman Collection
Interactive API testing for X API v2 endpoints.
API Playground
Local mock server for testing X API v2 endpoints without spending credits.
Agent Resources
XMCP,
llms.txt, skill.md, docs MCP server, and resources for AI-powered development.XDK Generator
Open-source Rust code generator powering all four official XDKs.
Other tools
Community libraries
Community-maintained libraries with X API v2 support. Check each library’s documentation for current coverage.- Python
- JavaScript/TypeScript
- Go
- Java/Kotlin
- PHP
- Ruby
- Other
Community libraries are not maintained by X. Check their repositories for support and current status.
Code samples
- XDK Code Samples Repo — Runnable examples using the official XDKs
- X API v2 Sample Code — Standalone HTTP examples across languages
- X Developer GitHub — Official repositories and developer tools