SDK Overview
TikTok's developer platform offers several mini game SDK options depending on your project type and integration approach. These SDKs provide the development toolkit for building mini games on TikTok, including mandatory capabilities like login and authorization, payment, advertising, and more.
Choose your SDK
Choose the SDK that best fits your project needs. If you are starting a new project, use the Mini Games SDK (JavaScript) or the TikTok SDK for Unity (C#). The Legacy HTML5 SDK is maintained only for migration purposes.
Mini Games SDK (JavaScript) | TikTok SDK for Unity (C#) | Legacy HTML5 SDK |
The primary JavaScript SDK for building mini games on TikTok. Provides direct access to Best for new mini game projects using web technologies. | A separate plugin package for Unity projects. Provides C# wrappers for mini game APIs with an independent interface scope and version track. Best for game teams using the Unity engine. | The previous SDK that requires loading Best for existing HTML5 projects only, not available for new projects. |
Mini Games SDK
The Mini Games SDK is the primary JavaScript development toolkit for building mini games on TikTok. This SDK is based on native runtime and allows mini games to directly call TTMinis.game without loading minis.js.
The Mini Games SDK provides APIs for system access, device features, rendering, file management, networking, monetization, and media playback. API namespace compatibility: TTMinis.game, tt, and wx prefixes are interchangeable.
Related guides:
- Mini Games SDK Changelog: Version history for the JavaScript SDK base library and corresponding TikTok app versions.
TikTok SDK for Unity
The TikTok SDK for Unity provides a plugin package for Unity projects with C# wrappers for mini game APIs. It maintains an independent interface scope and version track separate from the JavaScript-based Mini Games SDK.
Related guides:
- Build Mini Games With Unity: Engineering integration guide for Unity projects.
Legacy HTML5 SDK
Important: The Legacy HTML5 SDK requires loading minis.js and is not available for new projects. It is retained only for existing project maintenance and migration purposes.
Related guides:
- Initialize SDK: Setup guide for loading
minis.js. - Migrate from HTML to Native Runtime: Steps for migrating from HTML5 to the native Mini Games SDK.