TikAPI PHP SDK – Laravel & Plain PHP Wrapper for TikTok Data API

An open-source PHP SDK by NeedLaravelSite providing seamless integration with the TikAPI (TikTok Data API) for Laravel and standalone PHP apps. Includes built-in ServiceProvider, Facade, and Guzzle-based API handling.

Muhammad Waqas

Muhammad Waqas

CEO at CentoSquare

|
07-Nov-2025
min read
TikAPI PHP SDK – Laravel & Plain PHP Wrapper for TikTok Data API

The TikAPI PHP SDK by NeedLaravelSite is an open-source library that helps developers interact easily with the TikAPI — a TikTok Data API that provides structured access to TikTok user profiles, videos, hashtags, and music information.


🚀 Key Features

  • Supports Laravel (with ServiceProvider and Facade) and plain PHP applications.
  • Built on Guzzle and adheres to PSR-4 and PSR-12 standards.
  • Fetch TikTok public data — videos, profiles, hashtags, and sounds.
  • Simple setup and minimal configuration.
  • Secure API key management through .env.

🛠️ Installation

composer require needlaravelsite/tikapi-php

If using Laravel, publish the configuration:

php artisan vendor:publish --provider="NeedLaravelSite\\TikApi\\TikApiServiceProvider" --tag=config

Add your credentials to .env:

TIKAPI_API_KEY=your_api_key_here
TIKAPI_ACCOUNT_KEY=your_account_key_here
TIKAPI_BASE_URL=https://api.tikapi.io

💡 Example Usage (Laravel)

use NeedLaravelSite\TikApi\Facades\TikApi;

$response = TikApi::public()->video()->get('7109178205151464746');

💡 Example Usage (Plain PHP)

use NeedLaravelSite\TikApi\TikApi;

$tikapi = new TikApi();
$response = $tikapi->public()->check()->username('lilyachty');

🧱 Why Choose This SDK

  • Laravel-ready with Service Container and Facade support.
  • Fully extensible for additional endpoints.
  • Actively maintained open-source project by NeedLaravelSite.
  • MIT Licensed — free for commercial and personal projects.

🔗 Repository & Contributions

📦 GitHub: https://github.com/needlaravelsite/tikapi-php

Contributions, issues, and pull requests are always welcome!

About the Author

Muhammad Waqas

Muhammad Waqas

CEO at CentoSquare

Founder & CEO at CentoSquare | Creator of NeedLaravelSite | Helping Businesses Grow with Cutting-Edge Web, Mobile & Marketing Solutions | Building Innovative Products