Download the PHP package ssovit/tiktok-api without Composer

On this page you can find all versions of the php package ssovit/tiktok-api. 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?
ssovit/tiktok-api
Rate from 1 - 5
Rated 4.00 based on 1 reviews

Informations about the package tiktok-api

Unofficial TikTok API library for PHP

GitHub issues Packagist Downloads GitHub Workflow Status GitHub license Discord

Unofficial TikTok API for PHP

Installation via Composer

composer require ssovit/tiktok-api

Discord

Looking for Watermark-less video API?

It's available on monthly subscription. See below for plans and contact details.

Usage

Follow examples in /example directory

Documentation

Documentation

Available Options

Cache Engine

You can build your own engine that will store and fetch cache from your local storage to prevent frequent requests to TikTok server. This can help being banned from TikTok server for too frequent requests.

Cache engine should have callable get and set methods that the API class uses

Usage

Stream and Download videos

Follow examples on /example folder for video stream and download example Note: TikTok videos will not play directly when used in HTML video player as they require www.tiktok.com as http referrer.

Proxy Support

To use proxy, provide proxy-host, proxy-port, proxy-username, proxy-password It's highly recommended that you use proxy to prevent your IP from getting banned.

It's highly recommended to use Rotating Proxy service if you are making lots of requests in short interval of time. Webshare.io Proxy Service is good. It's my referral link and I would get a bit from it

Available methods

$maxCursor defaults to 0, and is offset for results page. maxCursor for next page is exposed on current page call feed data.

To-Do

Non-watermarked video url for newer videos

TikTok videos don't have video id as meta data on watermarked video posted after ~24-28 July 2020. Check below for subscription plans for non watermarked video API.

Discussion

Empty results?

Use proxy. You are making too many API requests in short interval of time. Rotating proxy is recommended.

Want to improve this library? Want to contribute?

Don't hesitate to create pull requests.

Disclaimer

TikTok is always updating their API endpoints but I will try to keep this library whenever possible. I take no responsibility if you or your IP gets banned using this API. It's recommended that you use proxy.


All versions of tiktok-api with dependencies

PHP Build Version
Package Version
No informations.
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 ssovit/tiktok-api contains the following files

Loading the files please wait ....