Download the PHP package robert-grubb/tiktok-php without Composer

On this page you can find all versions of the php package robert-grubb/tiktok-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tiktok-php

TikTok Scraper in PHP

1.9.14

Updates to the user->account method have been made. No changes in the response object.

1.9.13

Introducing $scraper->user->videoFromEmbed('id');

This will return video data from the embed endpoint. Right now it's more stable than the normal video route. The only catch is that it does not return

1.9.12

Setting verifyFp manually is now an option, as captcha verification has been taking TikTok by storm. You can set it like so:

If you do not set one, by default, the scraper will attempt to generate the following cookies for you:

However, in most cases at this moment, the fp token will end up being a trigger for captcha.

Cookie File

In v1.8.0, the scraper now sets cookies by default, which means that you must provide writable permissions for a cookies.json file, and then set it in the configuration (see example config below).

Need to disable cookies? Set 'disableCookies' => true in the configuration.

Installation

Instantiation

Configuration Explained

Search for a user

User data

User videos

All User Videos

Specific User Video

Download User Video

Discover

Trending

Music Data

Music Videos

Download Music by ID

Hashtag Data

Hashtag Videos

Signing a URL

2 methods of signing the URL is provided.

  1. You can use nodejs, this package will look to see if you have it installed, however, if you do not, it will attempt to install it.

  2. You can use the datafet.ch api that I have personally built to accept requests from anyone to sign a tiktok url. (This package handles it automatically if you set 'signMethod' => 'datafetch' in the configuration.)

DataFetch API Key

DataFetch API does rate limit your requests at a max of 100 requests per 15 minutes. This can be avoided by obtaining an API key, which will then give you access to unlimited requests. You can obtain access by contacting me at matt [at] grubb [dot] com.

Errors

If anything error happens throughout the scraper, it will set the error at the following:

Which will return the following structure:

Also, the method you called will also return false.


If there was no error, two things you will notice:

  1. $scraper->error is set to false
  2. The method you called will not return false

Legal

This repo and it's contents are in no way affiliated with, authorized, maintained, sponsored or endorsed by TikTok or any of its affiliates or subsidiaries. This is an independent and unofficial package. Use at your own risk.


All versions of tiktok-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
mouf/nodejs-installer Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package robert-grubb/tiktok-php contains the following files

Loading the files please wait ....