EulerApiSdk 1.6.0

dotnet add package EulerApiSdk --version 1.6.0
                    
NuGet\Install-Package EulerApiSdk -Version 1.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EulerApiSdk" Version="1.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EulerApiSdk" Version="1.6.0" />
                    
Directory.Packages.props
<PackageReference Include="EulerApiSdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EulerApiSdk --version 1.6.0
                    
#r "nuget: EulerApiSdk, 1.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EulerApiSdk@1.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EulerApiSdk&version=1.6.0
                    
Install as a Cake Addin
#tool nuget:?package=EulerApiSdk&version=1.6.0
                    
Install as a Cake Tool

TikTok LIVE API SDK for C# / .NET

NuGet version NuGet downloads License: MIT Discord

EulerApiSdk is the official C# / .NET client for the EulerStream TikTok LIVE API. Connect to any TikTok LIVE stream by @username and receive real-time chat messages, gifts, likes, follows, shares, viewer counts, room stats and PK battles over a managed WebSocket, plus fully typed async clients for webcast signing, LIVE rooms, gifts, rankings, LIVE alerts, moderation, captchas and analytics.

EulerStream is the managed TikTok LIVE backend behind TikTokLiveSharp (C# / Unity), TikTokLive (Python) and TikTok-Live-Connector (Node.js). The connection layer is hosted and maintained for you, so your integration keeps working when TikTok changes its webcast protocol.

Unofficial: this project is not affiliated with, endorsed by, or connected to TikTok or ByteDance.

Installation

dotnet add package EulerApiSdk

Or in the Package Manager console: Install-Package EulerApiSdk. Targets .NET 8.0 with nullable reference types enabled.

Quick start

  1. Create a free EulerStream account (no credit card required)
  2. Copy your API key from the dashboard
  3. Make your first calls:
using EulerApiSdk;
using EulerApiSdk.Client;

using var client = new EulerStreamApiClient(host => host.AddTokens(new[]
{
    // Your key goes in the x-api-key header.
    new ApiKeyToken("YOUR_API_KEY", ClientUtils.ApiKeyHeader.X_api_key, prefix: ""),
    // The generated client also resolves tokens for the query-string and JWT
    // auth schemes on every call; empty placeholders satisfy it and the API ignores them.
    new ApiKeyToken("", ClientUtils.ApiKeyHeader.ApiKey, prefix: ""),
    new ApiKeyToken("", ClientUtils.ApiKeyHeader.X_jwt_key, prefix: ""),
}));

// Look up any TikTok user by @username
var user = await client.TikTokUsers.RetrieveTikTokUserBasicAsync("tv_asahi_news");
Console.WriteLine(user.Ok()?.User?.Nickname);

// Browse the TikTok LIVE gift catalog (names, diamond values, images)
var catalog = await client.TikTokLiveGifts.ListWebcastGiftsAsync();
foreach (var gift in catalog.Ok()?.Gifts ?? [])
{
    Console.WriteLine($"{gift.GiftName} = {gift.DiamondCount} diamonds");
}

// Business plan: fetch the TikTok LIVE WebSocket URL straight from the creator's @username
var webcast = await client.TikTokLiveAnchors.FetchWebcastURLByUniqueIdAsync("tv_asahi_news");

EulerStreamApiClient wires the generated API classes up with Microsoft.Extensions.DependencyInjection and IHttpClientFactory. Pass baseAddress: to point it at another server, and use the configure callback to customise HTTP clients, retry policies (Polly) or logging. Every response exposes IsOk / Ok() plus typed accessors for the documented error statuses.

What you can build

  • Live stream overlays for OBS and browser sources showing TikTok LIVE chat, gifts and top gifters
  • Gift and follow alerts that trigger sounds, animations or webhooks in real time
  • TikTok LIVE games in Unity or Godot, controlled by chat commands or gifts
  • Chatbots and moderation tools that respond to and moderate TikTok LIVE chat
  • Analytics dashboards tracking diamonds, viewer retention and top supporters
  • LIVE monitoring: bulk "is this creator live?" checks and LIVE start/end alerts for thousands of accounts

API coverage

The client exposes one typed property per API group. Each is generated from the EulerStream OpenAPI spec, so it always matches the live API.

Property TikTok LIVE API group
client.Webcast Core TikTok LIVE: bulk live checks, webcast feed, hashtag lists, rankings
client.TikTokLiveAnchors Creators: webcast URL by @username, room info / ID / cover, gift gallery, earnings, moderators, LIVE analytics
client.TikTokLiveRooms LIVE rooms: webcast URL by room ID, room info, room gifts, send chat
client.TikTokLiveEvents TikTok LIVE event history for a creator
client.TikTokLiveGifts TikTok LIVE gift catalog: list, search and look up gifts
client.TikTokLiveRankings Creator leaderboards, rankings and ranking history
client.TikTokLiveAgencies TikTok LIVE agency catalog
client.Alerts / client.AlertTargets TikTok LIVE start/end alerts and webhook targets
client.Moderation Kicks, bans, mutes, sensitive words and comment toggles
client.TikTokSigning TikTok request signing and payload decryption
client.Captchas TikTok captcha solving
client.TikTokOAuth TikTok OAuth: token exchange, introspection, revocation, user info
client.TikTokUsers / client.TikTokVideos TikTok user profiles and videos
client.TikTokWebSocketAPI Your cloud WebSocket connections and their state
client.Accounts / client.Authentication / client.Analytics Your EulerStream account, API keys, JWTs and usage analytics

Per-endpoint C# examples for every operation are in the EulerStream API docs.

Other languages

The TikTok LIVE API SDK is also available for Node.js / TypeScript (tiktok-live-api-sdk, or tiktok-api-sdk for the full TikTok API), Python (TikTokLiveApiSdk, or TikTokApiSdk for the full TikTok API), Java and Go, and anything else can use the language-agnostic WebSocket directly.

License

MIT © EulerStream

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.0 89 11/12/2026
1.5.0 100 11/5/2026
1.4.0 122 10/17/2026
1.3.1 139 9/22/2026
1.3.0 120 9/21/2026
1.2.2 186 7/23/2026
1.2.1 153 7/6/2026
1.2.0 144 7/3/2026
1.1.0 144 6/28/2026
1.0.1 146 6/15/2026