hf_mirrors/tiktok-5.6B-videos
Datasets
Dataset viewer
Files & versions

Contact

Telegram: @hashfunction_dev
X: @hashfunction
Email: hashfunction.dev@gmail.com

TikTok scraper source code
The code that collected these 5.6 billion videos.
TikTok's mobile API: 24 endpoints, request signing, device registration.
Technical guide + source code →

Columns

ColumnTypeNotes
video_idUInt64tiktok.com/@_/video/{video_id}
posted_atDateTimeUTC
countryStringregion TikTok gives the video
languageStringun = undetermined
typeStringvideo or photo
duration_msUInt320 on photos
image_countUInt8photo posts
width, heightUInt16pixels
captionString
hashtags, hashtag_idsArraylower-case, parallel arrays
mentionsArray(UInt64)creator_ids
on_screen_textArray(String)text stickers
sound_idUInt640 = none
is_adUInt8Spark Ads
branded_contentStringpaid_partnership, shop_affiliate or empty
product_id, seller_idUInt64TikTok Shop; 0 = none
is_shop_videoUInt8
is_ai_generatedUInt8, nullablenull = TikTok did not say
not_recommended_for_fypUInt8, nullableTikTok keeps it off the For You page
sound_mutedUInt8audio removed for copyright
views, likes, comments, shares, saves, downloadsUInt64as of stats_updated_at
engagement_rateFloat32, nullable(likes+comments+shares+saves) / views
stats_updated_atDateTimeUTC

Older videos come from an archive: some fields are 0 or null there (size, downloads, AI flag), and duration is rounded to the second.

License

CC BY-NC 4.0: free for research and personal use. Commercial use, creator profiles and daily updates: datasocial.ai.