The TikAPI SDK is a PHP and Laravel package for the unofficial TikTok API. It provides a clean, scalable, and framework-agnostic wrapper for the TikAPI — making it easy to fetch TikTok data via PHP or Laravel.
use NeedLaravelSite\TikApi\Facades\TikApi; // Get trending postsTikApi::public()->explore()->list(10, 'us'); // Fetch posts by hashtagTikApi::public()->hashtag()->list(name: 'funny', count: 10); // Get video infoTikApi::public()->video()->get('7109178205151464746', 'us'); // Get comments and repliesTikApi::public()->comments()->list('7109178205151464746');TikApi::public()->commentReplies()->list('7109178205151464746', '7109185042560680750'); // Get music informationTikApi::public()->musicInfo()->get('28459463'); // Perform a searchTikApi::public()->search()->general('lilyachty', 'us');
The TikAPI client supports 14+ endpoints, including posts, likes, followers, following, videos, and more. See the Available Endpoints for full details and examples.
Main Features
- Works in plain PHP
- Fully integrated with Laravel (Service Provider + Facade)
- Built on Guzzle
- Auto-loads API keys from .env
- PSR-4 and PSR-12 compliant
- Includes feature tests for all public endpoints
💻 You can get started with this package on GitHub: tikapi-php