Laravel Packages

TikAPI SDK is PHP and Laravel Package for the TikAPI

Published
TikAPI SDK is PHP and Laravel Package for the TikAPI image

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 posts
TikApi::public()->explore()->list(10, 'us');
 
// Fetch posts by hashtag
TikApi::public()->hashtag()->list(name: 'funny', count: 10);
 
// Get video info
TikApi::public()->video()->get('7109178205151464746', 'us');
 
// Get comments and replies
TikApi::public()->comments()->list('7109178205151464746');
TikApi::public()->commentReplies()->list('7109178205151464746', '7109185042560680750');
 
// Get music information
TikApi::public()->musicInfo()->get('28459463');
 
// Perform a search
TikApi::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

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article