Skip to content
OSINTtools.io

Pyktok

Verified yesterday

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
Summary

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.

Pros
  • +Saves media and metadata together for evidence
  • +Simple Python functions
  • +Widely used in academic research
  • +Open source (BSD-3-Clause)
Cons
  • −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

  1. 01Use it when you need to archive a set of TikTok videos with their metadata.
  2. 02Use it when you want the comments under a TikTok video in a spreadsheet.
Key featuresVideo downloadMetadata export to CSVComment collectionUser and hashtag page collectionFull JSON object export

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 target
    Depends

Quick start

pip
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 review

Alternatives to Pyktok

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

PyktokOpen source · verified yesterday
Visit github.com (opens in new tab)