davidteather/TikTok-Api

Created Dec 31, 2020 · View the davidteather/TikTok-Api repository page

The Unofficial TikTok API Wrapper In Python

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

20

Lines of Code

1,251

From

May 26, 2019

To

Dec 28, 2020

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