PHP code example of tikliveapi / tiktok-scraper
1. Go to this page and download the library: Download tikliveapi/tiktok-scraper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tikliveapi / tiktok-scraper example snippets
// 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);