Pyktok
Python module that downloads TikTok videos, metadata and comments from video, user and hashtag pages.
Python library · Open source · Social media intelligence · github.com
- Takes
- URL · Username
- Pricing
- Free, open source
- Footprint
- Passive · no contact with target
- Account
- Not needed
- API
- No public API
- Last verified
- Nov 27, 2026
Python module that downloads TikTok videos, metadata and comments from video, user and hashtag pages. It takes URL and username. Read the cons before you build a workflow on it.
What it does
Pyktok is a Python module by researcher Deen Freelon for collecting TikTok data. It pulls information from the JSON embedded in TikTok pages and from undocumented endpoints, and can save videos, one row of metadata per video, comments and the full JSON object, as well as around thirty videos at a time from a user, hashtag or related-videos page.
Researchers and investigators use it to archive TikTok videos together with their metadata in CSV form, for example to build a dataset of posts from an account or hashtag. It can borrow cookies from a local browser, and some functions only work when that browser is logged in to TikTok.
Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.
- +Saves media and metadata together for evidence
- +Simple Python functions
- +Widely used in academic research
- +Open source (BSD-3-Clause)
- −Can stop working whenever TikTok changes its pages
- −Hashtag and user collection returns only about 30 videos per call
- −Some functions need a logged-in browser on the same machine
When to use it
- 01Use it when you need to archive a set of TikTok videos with their metadata.
- 02Use it when you want the comments under a TikTok video in a spreadsheet.
Next steps from this result
Suggested from the inputs Pyktok 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
pip install pyktok playwright install
Technical details
Listing verified by an editor on Nov 27, 2026- API
- No public API
- Account
- Not needed
- Footprint
- Passive · no contact with target
- Pricing
- Free, open source
- Platforms
- Python library
- Repository
- dfreelon/pyktok 468 stars
- Language
- Python
- Licence
- BSD-3-Clause
- Last commit
- Oct 2025
- Listed
- Nov 27
Reviews
No reviews yet
Written by signed-in members. Each review appears here after an editor has read it.
Used Pyktok? Sign in to say what you used it for and how it went.
Sign in to reviewAlternatives to Pyktok
Listed tools that take the same inputs, closest match first.
- Archivarix Tube SearchFreemium · Passive · APIWhat it does
Search engine for deleted YouTube videos that recovers titles, descriptions, thumbnails and subtitles from web archives.
URLUsernameNo ratings yetVerified 2d ago - Arctic ShiftFree · Passive · APIWhat it does
Free Reddit archive with a web search for posts and comments by subreddit, author, date and text, plus an API and dumps.
UsernameURLNo ratings yetVerified 2d ago - Deleted Tweet FinderFree · PassiveWhat it does
Henk van Ess's form that checks a tweet or X profile URL against several web archives and search engine caches in one go.
URLUsernameNo ratings yetVerified yesterday