A Wrapper for the TikTok API made with PHP
$api = new \TikScraper\Api([
'signer_url' => 'URL_HERE', # Defaults to http://localhost:8080/signature
'user_agent' => 'YOUR_CUSTOM_USER_AGENT_HERE',
'proxy' => [
'host' => 'EXAMPLE_HOST',
'port' => 8080,
'user' => 'EXAMPLE_USER',
'password' => 'EXAMPLE_PASSWORD'
]
], $cacheEngine);
$hashtag_feed = $api->getHashtagFeed();
echo $hashtag_feed->ToJSON(true);
TikTok uses a signature system to validate some requests, this library gets those signatures using a third party signer. I personally use this one and I highly recommend it.
- Search
HUGE thanks to the following projects, this wouldn't be possible without their help