Skip to content
OSINTtools.io

TikTok-Api

Verified today

Unofficial Python wrapper that reads TikTok's public web data: user profiles, videos, comments, hashtags, sounds and trending.

Python library · Open source · Social media intelligence · github.com

No ratings yet· in 0 collections
Takes
Username · URL · Name
Pricing
Free, open source
Footprint
Active · contacts the target
Account
Not needed
API
No public API
Last verified
Nov 29, 2026
Summary

Unofficial Python wrapper that reads TikTok's public web data: user profiles, videos, comments, hashtags, sounds and trending. It takes username, URL and name. Read the cons before you build a workflow on it.

What it does

TikTok-Api (the PyPI package TikTokApi) is an unofficial Python wrapper for TikTok.com by David Teather, released under the MIT licence. It is not TikTok's own API: it opens Playwright browser sessions and calls the endpoints TikTok's website uses, and it only reads data. It covers user profiles and their videos, single videos and their comments, hashtags, sounds, playlists, trending videos and user search.

An investigator installs it with pip, supplies an ms_token cookie value taken from tiktok.com in a browser, and calls async methods such as api.user(username=...).info() or api.video(url=...).info(); each object exposes the full dictionary TikTok returned. It supports no logged-in routes, so it reaches only what the site shows a signed-out visitor. The README warns that TikTok blocks requests it detects as a bot and that a proxy may be needed.

Footprint is active: it contacts the target or the services it is checking, which can be logged on the other side. No account is needed. There is no public API.

Pros
  • +No TikTok login is used
  • +Maintained, with a release in November 2026
  • +Returns TikTok's raw data dictionary for each object
  • +Hosted documentation and example scripts
Cons
  • −Uses TikTok's private web endpoints, not an official API: TikTok's terms may not allow it, and the README says TikTok's changes break it from time to time
  • −TikTok blocks sessions it detects as a bot; the README suggests trying proxies
  • −Needs Playwright with a browser installed and an ms_token cookie from tiktok.com

When to use it

  1. 01Use it when you need a TikTok user's profile data and video list in a Python script.
  2. 02Use it when you want the comments or metadata of a TikTok video from its URL.
  3. 03Use it when you want to collect the videos under a hashtag or sound for later review.
Key featuresUser profile, videos and playlists by usernameVideo details, comments and related videos by URL or IDHashtag, sound and trending video feedsUser search by termVideo file download as bytesSeveral browser sessions with proxy supportDockerfile for running scripts in a container

Next steps from this result

Suggested from the inputs TikTok-Api takes
  • Found a resultConfirm it with a second, independent source before you record it
  • Found a new identifierPivot on it only if your scope covers the new target
    Depends
pip (Python 3.9+)
pip install TikTokApi
python -m playwright install

Technical details

Listing verified by an editor on Nov 29, 2026
API
No public API
Account
Not needed
Footprint
Active · contacts the target
Pricing
Free, open source
Platforms
Python library
Listed
Nov 29

Reviews

No reviews yet

Written by signed-in members. Each review appears here after an editor has read it.

Used TikTok-Api? Sign in to say what you used it for and how it went.

Sign in to review

Alternatives to TikTok-Api

Listed tools that take the same inputs, closest match first.

TikTok-ApiOpen source · verified today
Visit github.com (opens in new tab)