Download the PHP package jsonscraper/tiktok-api-php without Composer

On this page you can find all versions of the php package jsonscraper/tiktok-api-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-api-php

TikTok Scraper API for PHP

Latest release Last commit Packagist version Packagist PHP support

Run in Postman

Composer client with LazyJsonMapper response models and ready-to-run examples. Supports 54 TikTok Scraper API methods.

Package: jsonscraper/tiktok-api-php · Documentation

Quick start

1. Get your key from the TikTok API product page and set it on your server:

2. Install the package:

3. Make a request:

The API payload is in tiktok. Live calls require a valid API license and may consume quota. Response examples and status handling.

Main methods

54 methods are available. Common starting points:

What you need Method
Read a profile getUserInfo()
Read a video getVideoByID()
Get a video download URL getNoWatermarkUrl()
Read comments getCommentsByID()
Search videos searchVideo()
List profile videos getUserFeed()

All methods and parameters →

Ready-to-run examples

Each example includes command-line parameters, key setup, timeouts, error handling and response output. Run it with --help first; this makes no API request.

Full method and parameter reference

Response models

The PHP client uses Guzzle + LazyJsonMapper. A response is an APIResponse with nested models and readable getters:

All model classes

Configuration

Requests use a 30-second timeout by default. Configure caching and retries to fit your application's request budget. Keys are read from your server environment; redirects are disabled.

Full integration guide

Use with ChatGPT and Codex

Prefer an assistant connection? Use the shared jsonscraper MCP server. Connect an Instagram API license, a TikTok API license, or both; each product keeps its own plan and quota. MCP source and setup.

Access, pricing and support

The SDK source is MIT-licensed. Hosted API access requires a separate TikTok license. Check current plans and get access.

Service support · SDK issues · MIT license

Development

Tests use a local/mock server and require no API key. A GitHub Actions template is available for optional automation.

The SDK has no installation or usage telemetry. README links use campaign parameters for website referral analytics. jsonscraper is independent and is not affiliated with TikTok.


All versions of tiktok-api-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
sergeykomlev/lazyjsonmapper Version ^2.0.0
guzzlehttp/guzzle Version ^7.4
ext-curl Version *
ext-json Version *
ext-mbstring Version *
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 jsonscraper/tiktok-api-php contains the following files

Loading the files please wait ...