TikTok-Api
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
- 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
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.
- +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
- −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
- 01Use it when you need a TikTok user's profile data and video list in a Python script.
- 02Use it when you want the comments or metadata of a TikTok video from its URL.
- 03Use it when you want to collect the videos under a hashtag or sound for later review.
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 targetDepends
Quick start
Docs (opens in new tab)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 reviewAlternatives to TikTok-Api
Listed tools that take the same inputs, closest match first.
- DataXAPIPaid · Passive · account · APIWhat it does
Pay-per-call API for public posts, profiles, comments and ad library data on 21 platforms, including Douyin, WeChat and Weibo.
NameUsernameURLNo ratings yetVerified today - GetYouTubeTranscript MCPFreemium · Passive · account · APIWhat it does
Hosted MCP server for YouTube transcripts, video details, comments, channel uploads, playlists and community posts.
URLUsernameNameNo ratings yetVerified 4d ago - Jev SocialOpen source · Active · accountWhat it does
Open-source AI research agent that browses Instagram, TikTok and LinkedIn in your own Chrome and writes source-cited reports.
UsernameURLNameNo ratings yetVerified 3d ago
