github.com/davidteather/TikTok-Api

The Unofficial TikTok API Wrapper In Python

Open this visualization on its own page →

Contributors

20

Lines of Code

1,251

From

2019-05-26

To

2020-12-28

About davidteather/TikTok-Api

This is an unofficial Python wrapper for the TikTok API that allows developers to retrieve data from TikTok without authentication. The library enables users to fetch trending videos, access user information, and gather various other data points from the platform. It's designed purely for data retrieval and cannot be used to post or upload content on behalf of users, nor does it support any authenticated routes that require a logged-in account.

The project provides a straightforward interface with async support for making requests to TikTok. Installation requires Python 3.9 or higher and uses Playwright for browser automation. The library includes comprehensive documentation, example scripts, and Docker support for easier deployment. Users can call methods to access trending videos, user details, and other public data available on TikTok's website.

A common challenge developers face when using this library is that TikTok actively blocks bot traffic, often returning empty responses. The maintainer recommends using residential proxies to work around these blocks, noting that free or cheap datacenter proxies may not always be sufficient. The project also acknowledges that TikTok frequently changes its internal structure, so users may need to inspect the underlying data dictionaries returned by the API to understand current response formats.

Share this video