Skip to main content
The X Developer Kits (XDKs) are X’s client libraries for the X API v2, generated from the X API OpenAPI spec.

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+

Packages


Quickstart

Look up @XDevelopers with a Bearer Token:

What’s included

  • Typed clients — One sub-client per X API v2 resource (posts, users, stream, direct_messages, spaces, lists, media, webhooks, chat, and more).
  • Authentication — Bearer Token, OAuth 2.0 with PKCE and token refresh, and OAuth 1.0a.
  • Pagination — Cursor handling via Python generators, TypeScript Paginator, Java Paginator<T>, and C# IAsyncEnumerable<T>.
  • Streaming — Live event streams for Filtered Stream, Sample Streams, Firehose, Compliance, and Activity.
For encrypted X Chat messages, see the Chat XDK (Python, TypeScript, Java, C#, Go, and Rust).