Douyin Search Scraper
Pricing
from $5.00 / 1,000 video returneds
Douyin Search Scraper
Scrape Douyin (China TikTok / 抖音) video search results by keyword. Returns videos with author, view/like/comment counts, music, hashtags. MCP/API-ready.
Pricing
from $5.00 / 1,000 video returneds
Rating
0.0
(0)
Developer
Khadin Akbar
Maintained by CommunityActor stats
0
Bookmarked
65
Total users
17
Monthly active users
7 days ago
Last modified
Categories
Features
Share
What is Douyin Search Scraper - 抖音 Video Search by Keyword?
Douyin Search Scraper searches Douyin (China TikTok, 抖音) videos by keyword and saves one dataset row per unique video. Pick a full list (video link, title, duration, likes, comments, shares, saves, publish time, author, music, hashtags) or a quick list (up to 1000 matched videos per keyword with likes, author followers and a heat score, at a lower price). You can add real play counts, sort by relevance, newest or most liked, and filter by publish time and video length. No Douyin account, no browser.
Why teams use this Douyin video search
- Trend and topic research. See which videos earn the most likes, comments and shares for a product, style or topic.
- Creator discovery. Every row has the author's name, follower count and profile link. The quick list also flags low-follower, high-heat creators.
- Big lists, low cost. The quick list returns up to 1000 videos for one keyword. Large full-list runs fetch details in parallel batches and finish much faster than a page-by-page search.
- Play counts when you need them. Switch on Add play counts and each saved video gets its play count where Douyin has one.
- Cost-bounded runs.
maxResultscaps both the saved videos and the billed events, and your run cost limit is respected. You pay only for rows that are saved. - Honest results. An empty search ends as
VALID_EMPTY. A search that could not be answered ends as failed, never as a quiet success.
Best fit and related Actors
Best fit for keyword-driven discovery: market research, content ideas, influencer shortlists and AI agents that need Douyin video results in one call. It covers video search by keyword only.
- Have video links or IDs and want full details? Use Douyin Video Scraper after this Actor.
- Found a creator? Use Douyin Profile Scraper with the
authorSecUidfrom this Actor. - Want the comments on a video? Use Douyin Comments Scraper.
- Want products sold on Douyin Shop? Use Douyin Product Search Scraper.
Example workflow: from a keyword to a shortlist
A cross-border seller sets searchQueries to ["露营装备"], mode to quick, sortBy to most_liked, publishTime to halfYear and maxResults to 500. The dataset returns the most-liked camping videos of the last half year with likes, author followers and heat score. The seller opens videoPageUrl for the best ones, then runs a full list with play counts on a short list.
How to search Douyin videos
- Add one or more keywords in Search keywords.
- Choose List type (full or quick), sort order, publish time and length, and set Max videos.
- Optionally switch on Add play counts.
- Click Start, then export as JSON, CSV or Excel, or read it through the API.
Input
{"searchQueries": ["美食", "穿搭"],"maxResults": 100,"mode": "full","includePlayCounts": false,"sortBy": "relevance","publishTime": "week","duration": "any"}
| Field | Type | What it controls |
|---|---|---|
searchQueries | array | Required. Search keywords. Up to 20 unique keywords. |
maxResults | integer | Unique videos saved across all keywords, 2 to 1000 for a full list (a quick list can ask for 1). Default 50. |
mode | string | full (default) for complete records, or quick for the cheaper list of matched videos. |
includePlayCounts | boolean | Adds the play count to each saved video that has one. Billed per video that gets a play count. Default off. |
sortBy | string | relevance (default), latest or most_liked. |
publishTime | string | unlimited (default), day, week, month or halfYear. |
duration | string | any (default), under1min, 1to5min or over5min. |
Every list uses the fast keyword route: one call finds the matching videos, then full details are fetched in parallel. Live search is only a backup if that route is unavailable.
Output
One dataset row per unique video. Fields Douyin does not show for a video are left out of that row.
| Field | What it contains | Full | Quick |
|---|---|---|---|
awemeId, videoPageUrl | Video ID and link to the video page | yes | yes |
title | Caption | yes | yes |
coverUrl | Cover image link | yes | yes |
duration | Length in milliseconds | yes | yes |
likeCount | Likes | yes | yes |
publishedAt | Publish time, ISO 8601 | yes | yes |
authorNickname, authorAvatarUrl, authorFollowerCount | Who posted it | yes | yes |
heatIndex, isLowFansHighHeat, isHighLikeRate, isHighCompletionRate, isHighFansGrowth | Heat score and growth flags | large runs | yes |
commentCount, shareCount, collectCount | Engagement counts | yes | no |
videoUrl, hashtags | Direct video file link (expires) and hashtags | yes | no |
authorUid, authorSecUid, authorUniqueId, authorUrl | Creator IDs and profile link | yes | no |
musicTitle, musicAuthor, isOriginalSound | Sound used | yes | no |
playCount, downloadCount | Only when you switch on play counts, and only when Douyin has them | optional | optional |
searchKeyword, rank, scrapedAt | Keyword, position in that keyword's results, collection time | yes | yes |
Each run also writes an OUTPUT record and a RUN_SUMMARY record with the outcome (COMPLETE, PARTIAL, VALID_EMPTY, INVALID_INPUT, UPSTREAM_FAILED or CONFIG_ERROR), rows saved, skipped rows, per-keyword status and a one-line agentSummary.
Pricing
This Actor uses Pay per event, with volume tiers shown on the Pricing tab:
- Actor start: one small event per run.
- Video returned: each unique video saved in a full list.
- Quick list row: each video saved in a quick list.
- Play counts: each saved video that also gets a play count (only when you switch it on).
Rows without a video ID or page link are not saved or charged. A keyword with no videos costs nothing beyond the start event. Platform usage is billed to you on top of the event prices, as shown on the Pricing tab. The Quick list and Play counts options open on the date their price takes effect; until then the Actor says so and charges nothing. Check the live Pricing tab for current prices.
API example
curl -X POST "https://api.apify.com/v2/acts/khadinakbar~douyin-search-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"searchQueries": ["美食"], "maxResults": 20, "sortBy": "latest"}'
from apify_client import ApifyClientclient = ApifyClient("YOUR_API_TOKEN")run = client.actor("khadinakbar/douyin-search-scraper").call(run_input={"searchQueries": ["露营装备"],"maxResults": 200,"sortBy": "most_liked","publishTime": "halfYear",})for video in client.dataset(run["defaultDatasetId"]).iterate_items():print(video["rank"], video["title"], video["likeCount"], video["authorNickname"])
Use with AI agents (MCP)
Connect the Actor to Claude, ChatGPT, Cursor or any MCP client through Apify MCP and ask:
Search Douyin for 露营装备 sorted by most liked in the last half year and list the top 10 videos with likes, shares and creator name.
The agent passes the keyword in searchQueries with a small maxResults, reads the rows from the dataset, and checks OUTPUT.outcome and agentSummary before summarizing. Each row keeps videoPageUrl and rank so answers can be checked.
Best results
| Starting situation | Helpful action | Expected outcome |
|---|---|---|
| A quick probe | Start with maxResults 10 | A small sample |
| A long shortlist | Use mode quick with maxResults 500 to 1000 | Many matched videos at the lowest price per row |
| Need play counts | Set includePlayCounts to true on a shorter list | Play count on each video that has one |
| Several topics | Add each keyword as its own entry | Rows tagged by searchKeyword |
| Viral content | sortBy most_liked with publishTime halfYear | The strongest recent videos |
| An English topic | Use the Chinese keyword, for example 露营 | Richer results |
Limits and data notes
| Topic | What to expect |
|---|---|
| Removed videos | A few videos in a list may have been removed since Douyin indexed them. They are skipped and counted as unavailableVideos, so you may get one or two fewer rows than maxResults. You are charged only for saved rows. |
| Play counts | Not every video has one. Videos without a play count are saved without it and are not charged the play-counts event. |
| Quick list | Shorter records: no comments, shares, saves, music, hashtags or direct video link. |
| Video links | videoUrl expires after a while. Save the file soon after the run if you need it. |
| Missing fields | Left out of the row, never filled with guesses. |
| Scope | Keyword video search only. Comments, profiles and full video details are separate Actors. |
Builder's note
I built this on plain requests instead of a browser because Douyin's own pages block automated browsers with captcha walls. Big lists use one keyword call plus batches of 50 videos, which is why a 1000-video quick list costs a fraction of a page-by-page search. Billing is strict: a video is saved and charged only when it has an ID and a page link, and the run stops when your cost limit is reached.
FAQ
Do I need a Douyin account?
No. The Actor reads public Douyin search results without login.
Which keywords work best?
Chinese keywords. English words and #hashtags also work.
Why do some videos have no play count?
Douyin does not show a play count for every video. Switch on Add play counts to get it where it exists.
What happens when a keyword has no videos?
The outcome is VALID_EMPTY with no video charges. If the search could not be answered, the run ends as UPSTREAM_FAILED and saves nothing, so you are not billed for videos.
Can I search by username or video link?
No. This Actor searches by keyword. Use the profile or video Actors for those.
Responsible use
This Actor collects public Douyin search results. Use it in line with Douyin's terms and applicable laws, including China's PIPL where relevant, and your own compliance policy. Douyin is a trademark of its owner; this independent Actor is not affiliated with it.