XDevPlatform.Xdk is the official C# / .NET SDK for the X API v2 (.NET 8+). It uses System.Net.Http and System.Text.Json with no extra runtime dependencies, async methods with CancellationToken, IAsyncEnumerable<T> pagination, and EventStream<T>.
NuGet
dotnet add package XDevPlatform.Xdk · .NET 8+GitHub
Source code and issues.
Quick example
Guides
Install
Add
XDevPlatform.Xdk from NuGet.Quickstart
Make your first request.
Authentication
Bearer Token, OAuth 2.0 PKCE, and OAuth 1.0a.
Pagination
Iterate pages with
await foreach.Streaming
Read live streams with
EventStream<T>.API Reference
Methods and parameters for each client.