A TikTok scraper for videos, comments, and profiles

Last updated

Maintained by Datapika · We publish this product under the openclawai account on Apify. Product reference

Datapika's TikTok scraper collects TikTok videos from profile feeds for $0.0008 each, which is $0.80 per 1,000, with no TikTok API key or developer account. Paste a video URL, a profile URL, a vm.tiktok.com share link or a keyword, pick one of the 23 TikTok modes, and get JSON rows with play, like, comment, and share counts, hashtags, music credits, and a no-watermark MP4 link. The same actor handles Douyin and Bilibili URLs in the same run, returns up to 5,000 items per URL, and is callable through the Apify REST API or an MCP endpoint.

Scheduled price change for the TikTok & Douyin Scraper. From December 1, 2026, 18:30 UTC: $2.00 per 1,000 TikTok videos and $5.00 per 1,000 Douyin, Bilibili, Kuaishou or Xigua videos; comments $1.00, accounts and list entries $2.00 and single lookups $3.00 per 1,000; subtitles, HD links and fake-view reports keep their prices.

Which TikTok URLs and modes does the scraper accept?

On TikTok the actor runs 23 of its 26 modes: profile feeds, single videos, profiles, comments, likes, reposts, playlists, followers and following, five keyword searches (videos, users, hashtags, sounds and live streams), hashtag and sound feeds, the explore feed, hot search terms, live rooms, TikTok Shop and a fake-view check. For links the platform field can stay on auto, because the actor detects tiktok.com, douyin.com, bilibili.com, kuaishou.com and ixigua.com links by itself; keyword and trending runs on auto read TikTok.

Video modes take the canonical form www.tiktok.com/@handle/video/1234567890, and profile modes take www.tiktok.com/@handle. Short links copied from the mobile app, vm.tiktok.com and vt.tiktok.com, are followed to their canonical video URL before scraping, so you can paste share links straight from a phone.

Keyword search has its own field: put one keyword per line in queries and pick search_videos, search_users, search_hashtags, search_music or search_live. hashtag_videos takes a #hashtag or tag link, music_videos a sound link, and trending pulls TikTok's explore feed by category through exploreCategory. The region field sets the country for search, sounds and TikTok Shop.

  • Links, @usernames or IDs go in urls, one per line; keywords go in queries, and the older single url field still works
  • maxItems caps each link or keyword at 1 to 5,000 rows, default 100
  • vm.tiktok.com and vt.tiktok.com share links resolve automatically to www.tiktok.com/@handle/video/<id>
  • Unsupported combinations, such as danmaku on a TikTok link, return a free error row that lists the supported modes instead of failing the run
  • includeReplies adds the replies under each comment that has 3 or more replies in video_comments, billed as comments, on paid Apify plans

What fields come back for each TikTok video, profile, and comment?

Every row shares one schema across all five platforms, which means a TikTok video and a Douyin video have identical field names and can land in the same table. The platform and item_type fields tell you what each row is, for example video, user, comment, hashtag, music, live, product, hint or error.

Video rows carry title and description, author_id, author_name and author_username, duration_sec, cover_url, and video_url_nowm for the no-watermark MP4. Engagement comes as play_count, like_count, comment_count, share_count, and collect_count, with created_at as an ISO timestamp and music_title plus music_author for the sound.

Profile rows add follower_count, following_count, video_count, bio, avatar_url, and a verified flag. Comment rows carry comment_id, reply_to_id, and comment_text so threads can be rebuilt. Each row also includes raw, the full source response, and scraped_at for freshness tracking.

  • Engagement: play_count, like_count, comment_count, share_count, collect_count
  • Creator: author_username, follower_count, following_count, video_count, verified, bio
  • Assets: cover_url, video_url_nowm (no-watermark MP4, expires within hours), duration_sec
  • Sound: music_title and music_author for tracking which audio is spreading
  • Threads: comment_id and reply_to_id link replies to their parent comment
  • raw keeps the complete source payload for fields the unified schema does not map

How much does it cost to scrape TikTok?

Datapika bills per delivered row. A TikTok video row from a profile feed costs $0.0008, so 1,000 TikTok videos cost $0.80 and a full 5,000-item user_posts pull costs $4.00. A single video or profile lookup costs $0.0015 and a comment $0.0005. There is no separate Datapika subscription and no compute or proxy charge on top, and error rows are free.

Datapika lists $0.80 per 1,000 TikTok videos and covers Douyin and Bilibili in the same run.

To cap spend, set Max cost per run in the run options. When the cap is reached, the run writes one free hint row that says so and stops cleanly.

  • $0.0008 per TikTok video row and $0.0025 per Douyin or Bilibili video row
  • 1,000 TikTok videos for $0.80; 5,000 videos, the maxItems ceiling for one URL, for $4.00
  • Error rows (deleted, private, region-blocked, unsupported mode) do not necessarily incur a result event; other applicable charges must still be checked
  • Spending cap via Max cost per run; the run stops charging at the limit

How do marketing and research teams use TikTok data from this actor?

The Western marketing case is creator work: vetting influencers, measuring sponsored posts, and spotting sounds before they peak. A user_profile call returns follower_count, video_count, and verified for a shortlist of creators, and a user_posts call on the same handles returns the last 100 posts with per-video engagement, enough to compute average views per post before signing a contract.

For campaign measurement, run video_detail on the sponsored video URLs daily and store play_count, like_count, share_count, and collect_count by scraped_at. The deltas give a growth curve per post without asking the creator for screenshots.

Sound sourcing uses music_title and music_author across a set of trend accounts, and comment mining pairs video_comments with a sentiment model. Because Douyin rows share the schema, a brand active in both markets can watch its Chinese creator partners in the same dataset.

  • Influencer vetting: follower_count, video_count, and average play_count from the last 100 posts
  • Sponsored post tracking: daily video_detail snapshots keyed by scraped_at
  • Sound and hashtag discovery: aggregate music_title and the hashtags array across trend accounts
  • Comment mining: video_comments with includeReplies for sentiment and UGC sourcing, no login needed
  • Cross-market benchmarking: TikTok and Douyin rows in one table with identical field names
  • AI and ML datasets: captions, stats, and cover images at $0.80 per 1,000 TikTok videos

How do AI agents call the TikTok scraper through MCP?

The actor is exposed through Apify's MCP server, so an agent can discover its input schema and run it without custom glue code. Point the client at https://mcp.apify.com/?tools=fetch-actor-details,openclawai/tiktok-douyin-bilibili-scraper, call fetch-actor-details once to read the mode and URL fields, then call the actor with mode, urls or queries, and maxItems.

For plain HTTP, the Apify REST endpoint run-sync-get-dataset-items returns the dataset as a JSON array in one request. Each element is one row with item_type set, so an agent can branch on video, user, comment, or error without parsing HTML.

A run works through its links and keywords one after another at about 20 rows per request, and a recorded run on October 29, 2026 returned 100 TikTok videos in 40 seconds, so an agent can compare 20 creators in one tool call. Comments need no login, the same as videos and profiles.

  • MCP endpoint: https://mcp.apify.com/?tools=fetch-actor-details,openclawai/tiktok-douyin-bilibili-scraper
  • REST: POST the input JSON to the run-sync-get-dataset-items endpoint and receive rows in the response body
  • Every row has item_type, so error handling is a field check, not an exception
  • Public data only: no login, cookies or proxy setup
  • About 20 rows per request; 100 TikTok videos took 40 seconds in a recorded run on October 29, 2026
TikTok, Douyin & Bilibili scraper modes: what you pass and what you get back (7 of the 26 modes as of October 2026, live Apify prices)
ModeWhat you passWhat you get backPlatformsBilled as
video_detailOne TikTok video URL or a vm.tiktok.com share linkOne video row: caption, play/like/comment/share counts, author, music, hashtags, no-watermark MP4TikTok, Douyin, Bilibili, Kuaishou, XiguaTikTok lookup $0.0015; Douyin, Bilibili, Kuaishou or Xigua video $0.0025
user_postsProfile URL, www.tiktok.com/@handleUp to maxItems recent videos with per-video engagement statsTikTok, Douyin, Bilibili, Kuaishou, XiguaTikTok video $0.0008 each; Douyin, Bilibili, Kuaishou or Xigua video $0.0025 each
user_profileProfile URLOne user row: follower_count, following_count, video_count, bio, verified, avatar_urlTikTok, Douyin, Bilibili, XiguaSingle lookup, $0.0015
video_commentsVideo URL; includeReplies adds replies on paid plansUp to maxItems comments with reply_to_id and engagement countsTikTok, Douyin, Bilibili, Kuaishou, XiguaComment, $0.0005 each
user_likesProfile URLVideos the account has liked, as standard video rowsTikTok, DouyinTikTok video $0.0008 each; Douyin video $0.0025 each
live_info@username (TikTok) or live room linklive_status, live_title, viewer_count, hostTikTok, Douyin, BilibiliSingle lookup, $0.0015
trendingplatform only, no URLTikTok explore videos, Douyin hot-search terms or Bilibili popular videosTikTok, Douyin, BilibiliTikTok video $0.0008 each; Douyin hot-search term $0.001 each; Bilibili video $0.0025 each

Sources you can inspect

Product documentation and implementation references. These references describe supported options and billing, not independent proof of performance. Confirm current details before running; examples and estimates are not guarantees.

How to do it

  1. 1.Open https://apify.com/openclawai/tiktok-douyin-bilibili-scraper, set mode (video_detail for one video, user_posts for a creator's feed, user_profile for account stats), and paste TikTok links, share links or @usernames into urls, one per line, or keywords into queries for a search mode.
  2. 2.Set maxItems (default 100, up to 5,000 per link or keyword), leave downloadVideos on for no-watermark MP4 links, and turn on includeReplies if you want comment replies (paid Apify plans).
  3. 3.Start the run and read rows from the dataset as JSON or CSV, or send the same input to the Apify REST API's run-sync-get-dataset-items endpoint to get the rows back in one HTTP response.
  4. 4.For agents, connect to https://mcp.apify.com/?tools=fetch-actor-details,openclawai/tiktok-douyin-bilibili-scraper and call the actor as a tool; mix Douyin and Bilibili URLs into the same urls array when you need cross-platform data.
Run the TikTok & Douyin Scraper

Ready-made tasks

Tested inputs you can run as they are, with real sample rows.

All 12 TikTok & Douyin Scraper tasks →

Questions, answered

Does TikTok have an official API for pulling public videos and comments?

TikTok's Research API exists, but access is limited to academic institutions in the US, EEA, UK, or Switzerland, not-for-profit research bodies in the EU, and Brazilian institutions studying youth safety. The research must be non-commercial, pass an ethics review, and disclose its funding, and TikTok says to expect a reply within about 4 weeks (developers.tiktok.com, August 2026). Marketing and research teams without that access use a scraper like Datapika, which needs no developer account.

Why does TikTok comments mode return 0 results?

video_comments reads public TikTok comments with no login, at $0.0005 per comment. A video with comments turned off, or a deleted or private video, returns a free hint or error row that says why instead of comments. Replies under each comment come only with includeReplies on a paid Apify plan.

Do the no-watermark TikTok MP4 links expire?

Yes. TikTok's CDN links in video_url_nowm expire within a few hours, so download and store the file promptly rather than saving the URL. downloadVideos is on by default and adds the file URL whenever the platform provides one. For full-quality Douyin files, use the hd_video_link mode at $0.008 per link on a paid Apify plan.

Can I scrape TikTok by hashtag, keyword, or trending page?

Yes. search_videos, search_users, search_hashtags, search_music and search_live take one keyword per line in queries; hashtag_videos takes a #hashtag or tag link, music_videos a sound link, and trending pulls TikTok's explore feed, with exploreCategory picking a category such as food or gaming. Videos from these modes cost $0.0008 each; hashtags and sounds cost $0.001 each.

Can I scrape private TikTok accounts or region-blocked videos?

No. Only public content is returned; private, deleted, or region-blocked URLs come back as a hint or error row with a readable error_message, and those rows are not billed. There is no proxy to configure.

Can I scrape TikTok, Douyin, and Bilibili in the same run?

Yes, and that is the main difference from single-platform TikTok scrapers. Leave platform on auto, put tiktok.com, douyin.com, and bilibili.com URLs in the same urls array, and every row comes back with the same field names plus a platform tag. One caveat: the mode applies to the whole batch, so a user_posts run needs profile URLs for all three sites.

Keep reading