PHPackages                             hki98/tiktok-custom-php-scraper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hki98/tiktok-custom-php-scraper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hki98/tiktok-custom-php-scraper
===============================

Custom TikTok Scraper in PHP

v1.0.4(1y ago)170GPL-3.0

Since Nov 4Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/hki98/tiktok-custom-php-scraper)[ Packagist](https://packagist.org/packages/hki98/tiktok-custom-php-scraper)[ RSS](/packages/hki98-tiktok-custom-php-scraper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (1)Used By (0)

⚠️ New Repo Moved Here ⚠️
=========================

[](#️-new-repo-moved-here-️)

**👇🏻 This repo is no longer maintained, please use the new one below.**

- [New Repo](https://github.com/haianibrahim/tiktok-scraper)

TikTok® Custom PHP Scraper
==========================

[](#tiktok-custom-php-scraper)

**Hi there!

I have many TikTok releated web projects and I was looking for a TikTok Custom PHP API or Scraper, All what I found was paid, limited scripts and most of them are in Python. I do not want so many features, I just want a simple script which I give it a TikTok Video URL then I want to get few details about it: Canonical URL, Username &amp; Video ID That is it!

So I decided to write my own custom PHP script to get these details.

Maybe you guys want the same thing, I hope it will be useful for someone else. Enjoy!

Note: This script can be customized to scrape any additional data you want for a TikTok Video. I have only implemented the features that fits my needs.**

Installation
------------

[](#installation)

```
composer require hki98/tiktok-custom-php-scraper
```

Usage
-----

[](#usage)

Instantiate the `TikTokScraper` class with the TikTok video URL and then call the `scrapeVideoDetails()` method to get the details of the video.

```
