Douyin Search Scraper avatar

Douyin Search Scraper

Pricing

from $5.00 / 1,000 video returneds

Go to Apify Store
Douyin Search Scraper

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

Khadin Akbar

Maintained by Community

Actor stats

0

Bookmarked

65

Total users

17

Monthly active users

7 days ago

Last modified

Features

Limited permissions

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.

  • 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. maxResults caps 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 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.

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

  1. Add one or more keywords in Search keywords.
  2. Choose List type (full or quick), sort order, publish time and length, and set Max videos.
  3. Optionally switch on Add play counts.
  4. 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"
}
FieldTypeWhat it controls
searchQueriesarrayRequired. Search keywords. Up to 20 unique keywords.
maxResultsintegerUnique videos saved across all keywords, 2 to 1000 for a full list (a quick list can ask for 1). Default 50.
modestringfull (default) for complete records, or quick for the cheaper list of matched videos.
includePlayCountsbooleanAdds the play count to each saved video that has one. Billed per video that gets a play count. Default off.
sortBystringrelevance (default), latest or most_liked.
publishTimestringunlimited (default), day, week, month or halfYear.
durationstringany (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.

FieldWhat it containsFullQuick
awemeId, videoPageUrlVideo ID and link to the video pageyesyes
titleCaptionyesyes
coverUrlCover image linkyesyes
durationLength in millisecondsyesyes
likeCountLikesyesyes
publishedAtPublish time, ISO 8601yesyes
authorNickname, authorAvatarUrl, authorFollowerCountWho posted ityesyes
heatIndex, isLowFansHighHeat, isHighLikeRate, isHighCompletionRate, isHighFansGrowthHeat score and growth flagslarge runsyes
commentCount, shareCount, collectCountEngagement countsyesno
videoUrl, hashtagsDirect video file link (expires) and hashtagsyesno
authorUid, authorSecUid, authorUniqueId, authorUrlCreator IDs and profile linkyesno
musicTitle, musicAuthor, isOriginalSoundSound usedyesno
playCount, downloadCountOnly when you switch on play counts, and only when Douyin has themoptionaloptional
searchKeyword, rank, scrapedAtKeyword, position in that keyword's results, collection timeyesyes

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 ApifyClient
client = 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 situationHelpful actionExpected outcome
A quick probeStart with maxResults 10A small sample
A long shortlistUse mode quick with maxResults 500 to 1000Many matched videos at the lowest price per row
Need play countsSet includePlayCounts to true on a shorter listPlay count on each video that has one
Several topicsAdd each keyword as its own entryRows tagged by searchKeyword
Viral contentsortBy most_liked with publishTime halfYearThe strongest recent videos
An English topicUse the Chinese keyword, for example 露营Richer results

Limits and data notes

TopicWhat to expect
Removed videosA 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 countsNot every video has one. Videos without a play count are saved without it and are not charged the play-counts event.
Quick listShorter records: no comments, shares, saves, music, hashtags or direct video link.
Video linksvideoUrl expires after a while. Save the file soon after the run if you need it.
Missing fieldsLeft out of the row, never filled with guesses.
ScopeKeyword 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.

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.