PHPackages                             daaner/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. [API Development](/categories/api)
4. /
5. daaner/tiktok

ActiveLibrary[API Development](/categories/api)

daaner/tiktok
=============

TikTok scrapper for Laravel 7+

0.2(5y ago)114.1k1[2 issues](https://github.com/daaner/tiktok/issues)MITPHPPHP &gt;=7.2.5

Since Nov 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/daaner/tiktok)[ Packagist](https://packagist.org/packages/daaner/tiktok)[ RSS](/packages/daaner-tiktok/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel TikTok API
==================

[](#laravel-tiktok-api)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7f1ea897211be6b423683feefaaa683ddd85c4d70c147dbdf65fd98c259e168f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461616e65722f74696b746f6b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/daaner/tiktok/?branch=master)![Laravel Support](https://camo.githubusercontent.com/fbc119104d8453364eafe3a86c665435559ba15b43ee034a9402dd07240f92d6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d372b2d627269676874677265656e2e737667)![PHP Support](https://camo.githubusercontent.com/8dacc37fd25ea278eb9ad374ce45dcf7b2b2f2b827e739e328484dc02a112d26/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322e352b2d627269676874677265656e2e737667)[![Latest Stable Version](https://camo.githubusercontent.com/0f7c3e1613bbaa3812700c54fb2d8c8ef62c1f4583240144bb154fc2a9b6220d/68747470733a2f2f706f7365722e707567782e6f72672f6461616e65722f74696b746f6b2f76)](//packagist.org/packages/daaner/tiktok)[![Official Site](https://camo.githubusercontent.com/77ec09c1db987a627e42c45da24c4dbebae18b75d320bf4b8a5093ed5e8933a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f6666696369616c2d736974652d626c75652e737667)](https://tiktok.com/)[![Total Downloads](https://camo.githubusercontent.com/a4457d33fd25b26d630da934a228f6f1d3e85045b9ebfeb1d48c702595881603/68747470733a2f2f706f7365722e707567782e6f72672f6461616e65722f74696b746f6b2f646f776e6c6f616473)](//packagist.org/packages/daaner/tiktok)[![License](https://camo.githubusercontent.com/adecf1f858f426f4fed1970cdb7315015a15b403c0ce0dd2ab12b350a08dc1cf/68747470733a2f2f706f7365722e707567782e6f72672f6461616e65722f74696b746f6b2f6c6963656e7365)](//packagist.org/packages/daaner/tiktok)

Scraper TikTok ([tiktok.com](https://tiktok.com/)) using this Laravel framework package ([Laravel](https://laravel.com)).

#### Requirement

[](#requirement)

- Laravel &gt;= 7
- PHP &gt;= 7.2.5

Install
-------

[](#install)

Install package.

```
composer require daaner/tiktok
```

Add provider and facade in `config/app.php`.

```
Daaner\TikTok\TikTokServiceProvider::class,

// ---
'TikTok' => Daaner\TikTok\Facades\TikTok::class,
```

Publish the config and localization files with the command:

```
php artisan vendor:publish --provider="Daaner\TikTok\TikTokServiceProvider"
```

Configuration
-------------

[](#configuration)

No special settings are needed. Queries also work with default settings. If you need finer settings, change the config file `config/tiktok.php` after If necessary, write the settings to a `.env`.

Used
----

[](#used)

Use the model you want and get an array.

Model - UserInfo
----------------

[](#model---userinfo)

- `getUser($userName)` - Get user data by name (full array)
- `getUserInfo($userName)` - Get simple user data by name (only main and secondary array)

```
use Daaner\TikTok\Models\UserInfo;

$tt = new UserInfo;
$user = $tt->getUser('tiktok');
//or
$user = $tt->getUser('@tiktok');
// or for simple info
$user = $tt->getUserInfo('tiktok');

dd($user);
```

Model - TagInfo
---------------

[](#model---taginfo)

- `getTag($tag)` - Get tag info
- `getTagInfo($tag)` - Get tag simple info
- `getTagApi($id, $count = 30, $cursor = 0)` - Get tag id data

```
use Daaner\TikTok\Models\TagInfo;

$tt = new TagInfo;
$tag = $tt->getTag('apple');
//or
$tag = $tt->getTag('#apple');
// or for simple
$tag = $tt->getTagInfo('apple');

//and API data
$tag = $tt->getTagApi('13100', 10, 0);

dd($tag);
```

Model - MusicInfo
-----------------

[](#model---musicinfo)

- `getMusic($music)` - Get music info
- `getMusicInfo($music)` - Get music simple info
- `getMusicApi($id, $count = 30, $cursor = 0)` - Get music id data (count shows 1 item less only this API query)))))

```
use Daaner\TikTok\Models\MusicInfo;

$tt = new MusicInfo;
$music = $tt->getMusic('I-JUST-FELL-6768866707013388289');
//or
$music = $tt->getMusic('6768866707013388289');
// or for simple
$music = $tt->getMusicInfo('6768866707013388289');

//and API data
$music = $tt->getMusicApi('6728860413338847233', 10, 2);

dd($music);
```

Model - DiscoverInfo
--------------------

[](#model---discoverinfo)

- `getDiscover()` - Get discover info
- `getDiscoverApi($type)` - Get Suggested data

```
use Daaner\TikTok\Models\DiscoverInfo;

$tt = new DiscoverInfo;
$discover = $tt->getDiscover();

//and API data
$discover = $tt->getDiscoverApi('user');
//or
$discover = $tt->getDiscoverApi('music');
//or
$discover = $tt->getDiscoverApi('challenge');

dd($discover);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Daan](https://github.com/daaner)
- [Kirill](https://github.com/kastahov)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2049d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab7685d68b0a7a826663193b526e128552ed0993708eda185d25118745641e84?d=identicon)[Daaner](/maintainers/Daaner)

---

Top Contributors

[![daaner](https://avatars.githubusercontent.com/u/9641698?v=4)](https://github.com/daaner "daaner (17 commits)")

---

Tags

TikTok daanerlaravel-tiktoktiktok-phptiktok-scrappertiktok-parse

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M987](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M62](/packages/knuckleswtf-scribe)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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