tikliveapi/tiktok-scraper
Composer 安装命令:
composer require tikliveapi/tiktok-scraper
包简介
Advanced TikTok Scraper API Client for PHP. Scrape user profiles, followers, videos, hashtags, music and search data in real-time.
README 文档
README
A simple PHP wrapper for the TikLiveAPI, the world's most popular TikTok Scraper API.
Features
- Easy to use: Simple object-oriented interface.
- Fast: Optimized for speed with low latency.
- Comprehensive: Access User, Video, Search, and Music data.
Installation
- Download
TikLiveAPI.phpand include it in your project. - Get your API Key from TikLiveAPI Dashboard.
Usage
require 'TikLiveAPI.php'; // Initialize with your API Key $api = new TikLiveAPI('YOUR_API_KEY'); // Get User ID $result = $api->getUserID('tiktok'); print_r($result); // Get User Info $info = $api->getUserInfo('tiktok'); print_r($info);
Available Endpoints
Users
- User ID (
getUserID): Get the unique User ID by username. - User Info (
getUserInfo): Get detailed user information by username. - User Info by ID (
getUserInfoByID): Get user information by numeric ID. - User Posts (
getUserPosts): Retrieve posts from a specific user. - User Followers (
getUserFollowers): Get the list of followers for a user. - User Following (
getUserFollowing): Get the list of accounts a user is following. - User Search (
searchUser): Search for users by keyword. - User Collections (
getUserCollections): Get user collections (favorites). - User Liked Posts (
getUserLikedPosts): Get posts liked by a user. - User Playlists (
getUserPlaylists): Get playlists created by a user. - User Stories (
getUserStories): Get stories from a user.
Posts (Videos)
- Post Detail (
getPostDetail): Get detailed information about a specific post. - Post Comments (
getPostComments): Get comments for a specific post. - Post Comment Replies (
getPostCommentReplies): Get replies to a specific comment. - Post Music (
getMusicPosts): Get posts associated with a specific music track. - Post Challenge (
getChallengePosts): Get posts associated with a specific challenge. - Post Playlist (
getPlaylistPosts): Get posts from a specific playlist. - Posts Collection (
getCollectionPosts): Get posts from a specific collection. - Post Search (
searchVideo): Search for posts (videos) by keyword.
Music
- Music Info (
getMusicInfo): Get details about a music track. - Music Posts (
getMusicPosts): Get posts that use a specific music track.
Challenge (Hashtags)
- Challenge Info (ID) (
getChallengeInfoByID): Get challenge info by ID. - Challenge Info (Name) (
getChallengeInfoByName): Get challenge info by name (hashtag). - Challenge Posts (
getChallengePosts): Get posts for a specific challenge. - Challenge Search (
searchChallenge): Search for challenges.
Playlist (Mix)
- Playlist Info (
getPlaylistInfo): Get playlist details. - Playlist Posts (
getPlaylistPosts): Get posts in a playlist. - Playlist by User (
getUserPlaylists): Get playlists for a user.
Collection
- Collection Info (
getCollectionInfo): Get collection details. - Collection Posts (
getCollectionPosts): Get posts in a collection. - Collection by User (
getUserCollections): Get collections for a user.
Download
- Download Video (
downloadVideo): Download a video without watermark. - Download Music (
downloadMusic): Download music track.
Region
- Region List (
getRegionList): Get list of available regions.
Ads
- Ads Detail (
getAdsDetail): Get ad details.
For full documentation and parameter details, visit https://www.tikliveapi.com/documentation/.
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-09