How to scrape Douyin videos, comments, and creator profiles

Last updated

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

To scrape Douyin, paste a douyin.com video, creator, or live-room URL, or a Chinese keyword, into Datapika's Douyin scraper on Apify, pick one of 17 Douyin modes, and read the results back as JSON through the REST API or MCP. Each Douyin video row costs $0.0025 and each comment $0.0005, with no API key, no Douyin account, and up to 5,000 items per input URL. Every row uses the same field names as Datapika's TikTok and Bilibili output, so one pipeline covers all three platforms. Failed URLs return a free error row.

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 Douyin URLs can you scrape, and what does each one return?

Datapika reads three Douyin URL shapes and detects the platform from the domain, so you can leave the platform setting on auto for douyin.com and iesdouyin.com links. A video URL in the form douyin.com/video/<id> feeds video_detail and video_comments. A creator URL in the form douyin.com/user/<sec_uid> feeds user_posts, user_profile, and user_likes, and a live.douyin.com/<room_id> URL feeds live_info.

The trending and hot_search modes need no URL, but they need platform set to douyin; left on auto they read TikTok. On Douyin both return the hot-search board, ranked search phrases rather than videos, so those rows carry item_type hot_search, with the full record, including Douyin's hot_value score, in raw.

Short share links copied from the app (v.douyin.com) are followed to the canonical link before scraping. Keyword modes take Chinese keywords in queries: search_videos, search_users, search_hashtags and search_music. An input the actor cannot read produces a free error row instead of a failed run.

  • douyin.com/video/<id>: single video detail, or its comment thread with replies
  • douyin.com/user/<sec_uid>: latest posts, profile card, or liked videos for one creator
  • live.douyin.com/<room_id>: live status, stream title, viewer count, host name, cover image
  • No URL plus platform=douyin: the hot-search keyword board with hot_value scores
  • iesdouyin.com links are recognized as Douyin automatically
  • v.douyin.com share links are followed automatically; keywords go in queries

Which fields does a Douyin video, comment, or profile row include?

A Douyin video row carries the first line of the caption as title (capped at 200 characters) and the full caption as description, the aweme ID as item_id, a canonical douyin.com/video URL, the creator's sec_uid as author_id, nickname as author_name, and Douyin ID as author_username. It adds duration_sec, cover_url, music_title, music_author, created_at as an ISO 8601 timestamp, and a hashtags array whose extractor handles Chinese characters. Engagement comes back as play_count, like_count, comment_count, share_count, and collect_count, the last one being Douyin's save-to-favorites metric.

A creator profile row adds follower_count, following_count, video_count, bio, avatar_url, and a verified flag that is true for both personal and enterprise verification badges. Comment rows include comment_id, reply_to_id for threading, comment_text, the commenter's identifiers, like_count, and created_at.

Every row also includes the raw source response under raw and a scraped_at timestamp, so Douyin fields that are not mapped into the unified schema are still available for analysis.

  • Video: title, description, hashtags, music_title, music_author, duration_sec, cover_url, created_at
  • Engagement: play_count, like_count, comment_count, share_count, collect_count
  • Profile: follower_count, following_count, video_count, bio, avatar_url, verified
  • Comment: comment_id, reply_to_id, comment_text, like_count, created_at
  • Live: live_status, live_title, viewer_count, author_name, cover_url
  • raw and scraped_at on every row for unmapped platform fields and audit trails

How much does scraping Douyin cost, and how do bulk runs work?

Datapika charges $0.0025 per Douyin video row, which is $2.50 per 1,000 videos; comments cost $0.0005 each, a creator profile or live room lookup $0.0015, and each hot-search phrase $0.001. Douyin URLs that fail because a video was deleted, a creator went private, or the platform blocked a request return an error row with a readable error_message and are not charged. There is no separate Datapika subscription and no compute or proxy charge on top. An Apify account is required.

For bulk work, pass a list under urls. The actor works through the links one after another, and the maxItems setting (1 to 5,000, default 100) caps how many rows each link returns, so 20 creator URLs at maxItems 50 yields up to 1,000 video rows for $2.50. List modes return about 20 rows per request.

You can also cap spend for a run with Apify's maximum total charge setting. When the cap is hit, the run writes one free hint row that says so and ends cleanly instead of overspending.

  • $0.0025 per Douyin video row and $0.0005 per comment; the actor had 1,340 runs in August 2026
  • Error rows are free: deleted, private, region-blocked, or anti-bot failures cost nothing
  • maxItems from 1 to 5,000 per input URL, default 100
  • About 20 rows per request; links run one after another
  • Spending cap: the run stops at Max cost per run and writes one free hint row

What can you build with Douyin data for the Chinese market?

Douyin is the domestic Chinese counterpart to TikTok, and its data answers questions that Western platforms cannot. Brands selling into China use user_posts across competitor accounts to watch launch cadence, caption language, and collect_count as a save-intent signal. Agencies running KOL discovery pull user_profile rows for a candidate list and rank by follower_count against average play_count from the same creators' recent posts.

The hot-search board is a fast read on what mainland audiences are searching right now. Scheduling the trending mode every hour and diffing hot_value across snapshots surfaces rising phrases before they show up in English-language coverage. Comment threads in Chinese feed sentiment models directly, since comment_text and like_count come back per reply with threading intact.

Because the schema is shared with Datapika's TikTok and Bilibili modes, the same brand can be compared across all three platforms in one dataset without remapping fields. That matters for teams that report on China and global audiences side by side.

  • Competitor launch tracking: user_posts on rival accounts, sorted by created_at and collect_count
  • KOL discovery: user_profile rows ranked by follower_count and recent play_count
  • Hot-search monitoring: hourly trending snapshots with hot_value deltas
  • Chinese-language sentiment: threaded comment_text with like_count per reply
  • Live commerce checks: live_info for viewer_count and stream titles during campaign windows
  • Cross-platform reports: identical field names across Douyin, TikTok, and Bilibili

How do AI agents call the Douyin scraper through the API or MCP?

The actor is exposed on Apify as a standard REST endpoint, so any HTTP client can start a run with a JSON body containing mode, url or urls, and maxItems, then read the dataset as JSON or CSV when the run finishes. Authentication is your Apify token only; no Douyin credentials or cookies are required for public content.

For agents, the same actor is available as an MCP tool through Apify's MCP server at mcp.apify.com. An agent connects with the actor enabled as a tool, calls it with the Douyin URL and mode as arguments, and receives the unified rows back in the tool result. Billing stays per record, so an agent that asks for 30 comments pays $0.015.

Public Douyin data needs no login or proxy settings, and an input that fails becomes a free error row while the other inputs keep going.

  • REST: POST a JSON input to the actor endpoint, then fetch the dataset items
  • MCP: enable openclawai/tiktok-douyin-bilibili-scraper as a tool on mcp.apify.com
  • Inputs: mode, urls or queries, platform, maxItems, optional includeReplies and downloadVideos
  • Public data only: no login, cookies or proxy setup
  • A failed input becomes a free error row; the other inputs keep going
Douyin input types, the modes they unlock, and the fields each row returns
Douyin inputModeFields returnedNotes
douyin.com/video/<id>video_detailtitle, description, hashtags, music_title, music_author, duration_sec, cover_url, play/like/comment/share/collect counts, created_atAdds video_url_nowm when Douyin provides one; for full-quality files use the hd_video_link mode
douyin.com/video/<id>video_commentscomment_id, reply_to_id, comment_text, author_id, author_name, author_username, like_count, created_atTop-level comments and replies; maxItems caps the batch, up to 5,000
douyin.com/user/<sec_uid>user_postsOne video row per post with the full video field setNewest first; maxItems 1 to 5,000
douyin.com/user/<sec_uid>user_profileauthor_name, author_username, bio, avatar_url, verified, follower_count, following_count, video_countverified covers personal and enterprise badges; single row, maxItems ignored
douyin.com/user/<sec_uid>user_likesVideo rows for the creator's liked videosDouyin and TikTok only; accounts that hide their likes come back as a free hint row with no data
live.douyin.com/<room_id>live_infolive_status, live_title, viewer_count, author_name, cover_urlSnapshot of the room at scrape time; rerun to track viewer changes
No URL, platform=douyintrendingtitle (search phrase), item_id, raw with hot_valueReturns hot-search phrases, not videos; item_type is hot_search. Platform must be douyin, not auto (auto reads TikTok)

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 and choose a mode, for example video_detail, video_comments, user_posts, user_profile, search_videos, live_info or trending.
  2. 2.Paste a Douyin URL in canonical form (douyin.com/video/<id>, douyin.com/user/<sec_uid>, or live.douyin.com/<room_id>), or a bulk list under urls, and set maxItems between 1 and 5,000. For trending, set platform to douyin and skip the URL.
  3. 3.Leave the platform on auto for URL modes and set it to douyin for keyword searches and trending. Start the run and watch rows land in the dataset, at $0.0025 per video row and $0.0005 per comment.
  4. 4.Export the dataset as JSON or CSV, or connect an agent to Apify's MCP server at https://mcp.apify.com with the actor enabled and call it as a tool.
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 Douyin have an official API, and can I use it instead?

Douyin runs an Open Platform for registered developers, but it is built around apps that account owners authorize, not around reading arbitrary public content. You cannot pull competitor profiles, other creators' videos, or their comment threads from it, and onboarding runs through a Chinese-language developer registration. Datapika returns public Douyin data as unified rows within a run, and needs no developer application or Douyin account.

How do I get Douyin videos without a watermark?

Leave downloadVideos on (the default) and each Douyin video row gets a direct file URL whenever Douyin provides one; these URLs expire after a few hours, so download them promptly. For full-quality files, run the hd_video_link mode on the video links, at $0.008 per link on a paid Apify plan.

How fresh is Douyin user_posts data?

user_posts reads a creator's public videos at run time, newest first, up to maxItems. To check one new video, run video_detail on its link; to watch a topic, run search_videos with a Chinese keyword or read the hot-search board, which needs no input.

Do I need a Douyin account, cookie, or Chinese phone number?

No. Videos, comments, creator profiles, live rooms, keyword search and the hot-search board are all public, and the actor reads them with no login, cookie or proxy setup. Accounts that are private or hide their likes return a free hint row instead of data.

What does the Douyin trending mode actually return?

Douyin's trending surface is a hot-search keyword board, not a video feed, so trending rows have item_type hot_search with the phrase in title and Douyin's hot_value score in raw. You must set platform to douyin; on auto, trending reads TikTok's explore feed. Set maxItems to control how many phrases you receive. To get videos for a trending phrase, run search_videos with that phrase in queries.

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

Yes. Put URLs from all three platforms in the urls list and leave platform on auto; each URL is routed to the right platform and every row comes back with a platform field and the same column names. The mode must be valid for each platform, so avoid modes a platform lacks, such as user_likes for Bilibili links or danmaku for TikTok links; those return a free error row listing the supported modes.

Keep reading