Guides / Build with / C# / .NET SDK
C# / .NET SDK
Official zero-dependency .NET 8 SDK built on System.Net.Http.HttpClient and System.Text.Json with full parity across all public data namespaces, IAsyncEnumerable cursor pagination, automatic retries, async batch jobs, and typed exceptions.
Installation
Add the TikUltra NuGet package (.NET 8+) inside a project directory (containing a .csproj file) and set TIKULTRA_KEY:
dotnet add package TikUltraexport TIKULTRA_KEY="tku_live_..."Quickstart & async pagination
Use TikUltraClient inside a using block and stream paginated endpoints with await foreach:
Program.cs
1using TikUltra;2 3using var client = new TikUltraClient(); // reads TIKULTRA_KEY / TIKULTRA_API_KEY4 5var profile = await client.User.ProfileAsync("tiktok");6Console.WriteLine($"{profile["user"]} remaining={profile.CreditsRemaining}");7 8await foreach (var page in client.PaginateAsync("/v1/user/posts", options: new PaginateOptions9{10 Params = new() { ["username"] = "tiktok" },11 MaxPages = 5,12}))13{14 Console.WriteLine(page["items"]);15}Testing
dotnet testTIKULTRA_LIVE_TESTS=1 TIKULTRA_KEY=tku_live_... dotnet test --filter FullyQualifiedName~LiveTests