TikTok Video & Comment Scraper avatar

TikTok Video & Comment Scraper

Pricing

$20.00/month + usage

Go to Apify Store
TikTok Video & Comment Scraper

TikTok Video & Comment Scraper

Collect detailed TikTok video insights including views, likes, shares, comments, music information, and hashtags. Ideal for social media analysis, trend tracking, and influencer research.

Pricing

$20.00/month + usage

Rating

0.0

(0)

Developer

Jamshaid Arif

Jamshaid Arif

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 hours ago

Last modified

Share

Tiktok Scraper

Collect TikTok video data, metadata, comments, user pages, hashtag pages, music pages, and related videos — all exported to a clean Apify dataset.


Scrape modes

ModeWhat it scrapesRequired input
single_video1 video + metadata rowvideoUrl
multi_video_urlsN videos + metadata rowsvideoUrls (list)
user_page~30 videos from a userusername
hashtag_page~15 videos from a hashtaghashtag
music_page~15 videos from a sound/musicmusicId
related_videos~30 "you may like" videosvideoUrl
video_commentsup to N comments on a videovideoUrl, maxComments

Output fields

Video / metadata records

FieldDescription
video_idUnique TikTok video ID
video_urlDirect link to video page
author_nameCreator username
author_idCreator numeric ID
descriptionVideo caption / text
like_countTotal likes
comment_countTotal comments
share_countTotal shares
play_countTotal views
duration_secsVideo length in seconds
music_titleBackground music name
music_authorMusic creator name
hashtagsSpace-separated hashtags
created_atUnix timestamp of upload
download_urlWatermark-free URL (if available)
source_typeWhich scrape mode produced this row
source_valueThe input value (URL / username / tag)
scraped_atISO-8601 UTC timestamp

Comment records

FieldDescription
comment_idUnique comment ID
comment_textComment body
author_nameCommenter username
like_countComment likes
reply_countNumber of replies
created_atComment timestamp

Input options

ParameterTypeDefaultDescription
scrapeModestringsingle_videoSee modes table above
videoUrlstringTikTok video URL
videoUrlsstring[]List of video URLs
usernamestringTikTok username (no @)
hashtagstringHashtag (no #)
musicIdstringNumeric music/sound ID
downloadVideosbooleanfalseSave .mp4 to Key-Value store
maxCommentsinteger30Max comments to collect
sleepSecondsinteger2Delay between requests
headlessbooleantrueHeadless browser mode
includeRawJsonbooleanfalseAttach raw TikTok JSON to each record
proxyConfigurationobjectApify proxyProxy settings

Usage examples

Single video

{
"scrapeMode": "single_video",
"videoUrl": "https://www.tiktok.com/@tiktok/video/7106594312292453675",
"downloadVideos": false,
"includeRawJson": false
}

Multiple URLs

{
"scrapeMode": "multi_video_urls",
"videoUrls": [
"https://www.tiktok.com/@tiktok/video/7106594312292453675",
"https://www.tiktok.com/@tiktok/video/7011536772089924869"
],
"sleepSeconds": 3
}

User page

{
"scrapeMode": "user_page",
"username": "tiktok",
"downloadVideos": false
}

Hashtag page

{
"scrapeMode": "hashtag_page",
"hashtag": "datascience"
}

Comments

{
"scrapeMode": "video_comments",
"videoUrl": "https://www.tiktok.com/@tiktok/video/7106594312292453675",
"maxComments": 100
}

Tips

  • Getting blocked? Increase sleepSeconds (try 5–10) or enable Apify proxy.
  • Empty results on multi-page modes? Set headless: false locally to debug.
  • Videos not downloading? Some videos restrict direct download — the download_url field will be empty in those cases even if downloadVideos is true.
  • TikTok's internal APIs change occasionally, which may temporarily break some modes.

Pricing

This actor runs on Apify's pay-per-usage model. Estimated consumption:

Mode~Records~CU
Single video10.01
Multi URLs (10)100.05
User / Hashtag / Music page15–300.20
Comments (100)1000.15