PHPackages                             sabri/tiktok - 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. sabri/tiktok

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

sabri/tiktok
============

sabri/tiktok is php Tiktok scraper

v1.0.2(5y ago)7045430[5 issues](https://github.com/snuzi/tiktok-scraper-php/issues)PHP

Since Oct 3Pushed 8mo ago13 watchersCompare

[ Source](https://github.com/snuzi/tiktok-scraper-php)[ Packagist](https://packagist.org/packages/sabri/tiktok)[ Docs](http://github.com/snuzi)[ RSS](/packages/sabri-tiktok/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/e5bd5be4feda10760f7f44970d16498c58007ecc40d97b7169aa62ea44ce43f9/68747470733a2f2f7472617669732d63692e6f72672f736e757a692f74696b746f6b2d736372617065722d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/snuzi/tiktok-scraper-php)

This is a PHP implementation for scraping Tiktok (or Musically) through API.

`PHP 7.3` is required

Scraper API
-----------

[](#scraper-api)

- `getUser($uid)` Returns user profile data. `$uid` is a user's Tiktok unique id.
- `getUserVideos($uid)` Returns a list of user videos. `$uid` is a user's Tiktok unique id.
- `searchUser($keyword)` Returns user search results.
- `getVideo($uid)` Returns a video datails. `$uid` is a video Tiktok unique id.
- `searchHashtags($keyword)` Returns a list of found hashtags.
- `getHashtagMedia($uid)` Returns a list of videos for a certain hashtag. `$uid` is a hashtag Tiktok unique id.

**Your contribution is welcome!**

Use this scraper
----------------

[](#use-this-scraper)

In order to use and make requests to Tiktok API, some extra device parameters are needed. These parameters should be extracted from your mobile phone by using a man in the middle proxy. I used PacketCapture for Android, you may use any proxy application you like. Grab the following parameters: `device_id`, `iid`, `openudid`.

Run the example
---------------

[](#run-the-example)

- Install commposer packages in the root of the project. `composer install`
- Run `php demo.php` to see the results

Run tests
---------

[](#run-tests)

- Before runing tests you should modify and set correct environment variables `tests/bootstrap.php`.
- Do not commit `tests/bootstrap.php` after your changes.

###  Health Score

40

—

FairBetter than 87% of packages

Maintenance43

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~215 days

Total

3

Last Release

1979d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79386cd257962510845c92fcd8bcf6eb0b304815757c60557710612c8ee327b8?d=identicon)[AkgunFatih](/maintainers/AkgunFatih)

---

Top Contributors

[![snuzi](https://avatars.githubusercontent.com/u/10135355?v=4)](https://github.com/snuzi "snuzi (26 commits)")[![Pezhvak](https://avatars.githubusercontent.com/u/3134479?v=4)](https://github.com/Pezhvak "Pezhvak (4 commits)")

---

Tags

api-clientcrawlermusicallyphptiktoktiktok-scraperphpTikTok musically

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sabri-tiktok/health.svg)

```
[![Health](https://phpackages.com/badges/sabri-tiktok/health.svg)](https://phpackages.com/packages/sabri-tiktok)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
