# Douyin Search Scraper (`neuro-scraper/douyin-search-scraper`) Actor

Douyin Search Scraper SD - Douyin Search Scraper is a social media data tool that extracts Douyin (抖音) search results by keyword: full post records with caption, likes, comments, shares, saves, author profile, music, hashtags, video tags, flags and no-watermark MP4, plus optional MP4 / cover downloa

- **URL**: https://apify.com/neuro-scraper/douyin-search-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Social media, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Douyin Search Scraper

**Douyin Search Scraper** searches Douyin (抖音, the Chinese TikTok) by keyword and exports every result as a full post record: caption, title and hashtags, publish time, duration, likes, comments, shares, saves and downloads, the author profile (nickname, Douyin ID, sec_uid, bio, avatar, post count, verification, region), the music, Douyin's content tags, series, city code, ad and story flags, permissions and a direct **no-watermark MP4 link**. Douyin Search Scraper can also save the MP4 files and covers, and add Douyin's hot search topics to the same dataset. Douyin Search Scraper needs no Douyin account, no cookies and no API key.

> **Also from us:** [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export Facebook Reels with views, reactions, captions and creators.

#### What does Douyin Search Scraper do?

For every keyword, Douyin Search Scraper returns the posts Douyin shows for that search, with more than 60 data points per post:

- Post ID, link, sharing link, keyword and position in the results
- Caption, title, hashtags, mentions, Douyin's content tags (video tags), caption language
- Publish time and date, duration, width, height, layout, city code and region
- Likes, comments, shares, saves, downloads, reposts
- Author: nickname, Douyin ID, short ID, sec_uid, user ID, bio, avatars, post count, following count, verification texts, gender, region, language, live status
- Music: ID, title, author, duration, cover, original-sound flag
- Flags: ad, pinned, story, life / local post, karaoke, VR, first post, series episode
- Clean MP4 link, watermarked link, mirror links, cover, video metadata (ratio, H.265 link, bit rates)
- Optional: MP4, cover and image files saved in your storage; Douyin hot search topics as extra rows

Douyin Search Scraper returns the same keys in the same order for every row, so a spreadsheet or a database import never breaks.

#### Why use Douyin Search Scraper?

- **Market research in China.** See which Douyin posts win for the words your customers use.
- **Influencer discovery.** Every result carries the author's Douyin ID, sec_uid, post count and verification.
- **Content ideas.** Captions, hashtags and Douyin's own content tags show how top posts are framed.
- **Video collection.** Clean MP4 links and optional downloads for the posts you may keep.
- **AI pipelines.** Flat JSON rows with fixed keys for BI tools, vector stores and LLM prompts.

#### How to use Douyin Search Scraper

1. Open Douyin Search Scraper in Apify Console and click Try for free. The only field you need is **Search keywords** (`keywords`).
2. Type one keyword per line (Chinese gives the most results: 美食, 旅行, 健身). Optionally set the sort order, a publish-time window, a video length, the content type, downloads, or Add hot list topics.
3. Click Start and watch the log. Each keyword writes a line such as `'健身': page 1, 10 posts (2 ads), has_more=1`. A WARN line means a page did not answer and a new browser session with a new IP is tried (up to 3); an ERROR line names a keyword that gave nothing (nothing is charged for it). A keyword takes 20-60 seconds.
4. Open the Output tab and download the rows as JSON, CSV, Excel, XML or HTML, or read them through the Apify API.
5. Schedule Douyin Search Scraper (for example daily for your brand keywords) in Apify Schedules and connect Google Sheets, Zapier, Make, n8n or a webhook in the Integrations tab.

#### Features and how they work

Every input option of Douyin Search Scraper is explained below: what it does, how it works, its allowed values and default, an example, a tip, and how it combines with the other options.

##### Search keywords (`keywords`)

What it does: the words Douyin Search Scraper searches for. How it works: every line is searched on its own, exactly as a visitor types it into Douyin's search box; the results of each keyword are saved with that keyword in `searchKeyword`, so you can mix many keywords in one run. Allowed values: a list of words or phrases in any language; no default. Example: `"keywords": ["美食", "旅行 vlog"]`. Tip: Chinese keywords return Chinese creators and the most results. Combination: `maxResultsPerQuery` limits each keyword, `maxItems` the whole run.

##### Max posts per keyword (`maxResultsPerQuery`)

What it does: caps the rows of each keyword. How it works: the limit is per keyword, so 20 with 3 keywords allows up to 60 rows. Logged out, Douyin serves only the first result page of a search (measured: 9-13 posts after ads; Douyin then asks visitors to open the app), so values above about 13 return the whole first page. Allowed values: 1 to 1000; default 20. Example: `"maxResultsPerQuery": 10`. Tip: use more keywords (synonyms, longer phrases) to collect more posts. Combination: applied after the sort and the filters.

##### Max rows in total (`maxItems`)

What it does: stops the whole run after this many saved rows. How it works: Douyin Search Scraper counts every saved row across all keywords (and hot-list rows) and finishes cleanly when the number is reached; keywords after the limit are not searched and cost nothing. Allowed values: 1 to 100000; default 1000. Example: `"maxItems": 100`. Tip: this is your hard cost cap. Combination: on top of `maxResultsPerQuery` and `maxTrendTopics`.

##### Sort (`sort`)

What it does: orders each keyword's results. How it works: `relevance` keeps Douyin's own order; `mostLiked` sorts the returned posts by likes, `newest` by publish time; the sort is applied to the posts Douyin returned for the keyword, before `maxResultsPerQuery` cuts the list. Allowed values: relevance, mostLiked, newest; default relevance. Example: `"sort": "mostLiked"`. Tip: `searchPosition` always keeps Douyin's original position. Combination: works with every filter.

##### Published within (`publishTime`)

What it does: keeps only recent posts. How it works: the publish time of each returned post is compared with the window and older posts are skipped and not charged; Douyin's own filter bar is not served to visitors without an account, so the window is applied to the returned results. Allowed values: any, day, week, month, halfYear, year; default any. Example: `"publishTime": "month"`. Tip: a short window on a general keyword can return 0 rows. Combination: with `sort: newest` for the freshest posts.

##### Video length (`duration`)

What it does: keeps only videos of a length range. How it works: the duration of each returned video is compared with the range (under 1 minute, 1-5 minutes, over 5 minutes); image posts have no duration and are kept unless `contentType` removes them. Allowed values: any, under1, 1to5, over5; default any. Example: `"duration": "over5"`. Tip: tutorials and reviews are mostly over 1 minute. Combination: with `contentType: video` to drop image posts too.

##### Content type (`contentType`)

What it does: keeps videos, image posts (图文) or both. How it works: each post's type (`type` = video or image) is compared with your choice and the other type is skipped before saving. Allowed values: all, video, image; default all. Example: `"contentType": "video"`. Tip: image posts carry their pictures in `images`. Combination: with the download options (videos vs. image files).

##### Include ad cards (`includeAds`)

What it does: keeps Douyin's ad cards in the results. How it works: Douyin mixes ads into search results (about 2-4 of 13 cards); by default they are skipped and not charged, with this option on they are saved and marked `isAdCard` = true. Allowed values: true or false; default false. Example: `"includeAds": true`. Tip: useful for ad research on a keyword. Combination: ads count toward `maxResultsPerQuery`.

##### Add hot list topics (`trendBoards`)

What it does: adds Douyin's hot search topics to the same dataset. How it works: the live hot search list (热榜, about 50 topics) and/or the rising topics are read once per run and saved as extra rows with `searchType` = trend:hotspot / trend:trending, filling `word`, `hotValue`, `rank`, `title`, `coverUrl` and the time fields. Allowed values: hotspot, trending; default none. Example: `"trendBoards": ["hotspot"]`. Tip: for a full trend dataset with rank history use our Douyin Trending Scraper. Combination: `maxTrendTopics` caps the rows per board; works with or without keywords.

##### Max hot topics per board (`maxTrendTopics`)

What it does: caps the hot-list rows per board. How it works: topics are taken in rank order and each board stops at this number; it is used only with Add hot list topics. Allowed values: 1 to 1000; default 50 (the whole board). Example: `"maxTrendTopics": 10`. Tip: 10 gives a quick top 10 next to your keyword results. Combination: counts toward `maxItems`.

##### Download MP4 videos (`shouldDownloadVideos`)

What it does: saves each video's clean MP4 file in a key-value store. How it works: the no-watermark file is fetched directly and stored as `<id>.mp4`; the row gets `videoFile` with the key, a public link and the size. Allowed values: true or false; default false. Example: `"shouldDownloadVideos": true`. Tip: 10-40 MB per video; set `maxFileSizeMb`. Combination: `videoKvStoreName` picks the store.

##### Download cover images (`shouldDownloadCovers`)

What it does: saves each post's cover image. How it works: the cover is stored as `<id>-cover.jpg` and listed in `coverFile`; cover links expire after some hours, the stored copy does not. Allowed values: true or false; default false. Example: `"shouldDownloadCovers": true`. Tip: cheap and quick (20-100 KB each). Combination: with `videoKvStoreName`.

##### Download image-post images (`shouldDownloadSlideshowImages`)

What it does: saves every image of image posts. How it works: for posts of type image, each picture is stored as `<id>-img1.jpg` ... and listed in `slideshowFiles`. Videos are not affected. Allowed values: true or false; default false. Example: `"shouldDownloadSlideshowImages": true`. Tip: combine with `contentType: image`. Combination: with `videoKvStoreName`.

##### Key-value store name for files (`videoKvStoreName`)

What it does: chooses where downloaded files go. How it works: with a name, files are saved in a named key-value store of your account that keeps them after the run's storage expires; empty = the run's own store. Allowed values: letters, digits and dashes, 3-63 characters; default empty. Example: `"videoKvStoreName": "douyin-files"`. Tip: one store per project. Combination: applies to all three download options.

##### Largest file to download (MB) (`maxFileSizeMb`)

What it does: skips files above this size. How it works: a larger file is not stored, and `videoFile.error` says so; the row keeps all its other data. Allowed values: 1 to 2000; default 300. Example: `"maxFileSizeMb": 100`. Tip: keeps long videos from filling your storage. Combination: with every download option.

##### Keywords in parallel (`maxConcurrency`)

What it does: sets how many keywords Douyin Search Scraper searches at the same time. How it works: each parallel search runs in its own browser session with its own residential IP, so 3 keywords at once take about as long as one; rows are saved as soon as each keyword is done. Allowed values: 1 to 8; default 3. Example: `"maxConcurrency": 4`. Tip: 3-4 is fast and stable; very high values use more memory. Combination: `maxItems` still caps the run, and every keyword keeps its own `maxResultsPerQuery` limit.

##### Proxy configuration (`proxyConfiguration`)

What it does: chooses the proxy of the browser that opens the search pages. How it works: Apify Residential proxies are the default and were used in every test; every retry of a keyword uses a new IP. File downloads use no proxy. Allowed values: the standard Apify proxy object; default Residential. Example: `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`. Tip: datacenter IPs are not recommended for search. Combination: applies to all keywords.

#### Ready-to-copy inputs for Douyin Search Scraper

Three keywords with full records (about 30 rows):

```json
{
  "keywords": ["美食", "旅行", "健身"],
  "maxResultsPerQuery": 20
}
```

Most-liked recent videos over 1 minute, with MP4 downloads:

```json
{
  "keywords": ["咖啡 教程"],
  "sort": "mostLiked",
  "publishTime": "halfYear",
  "duration": "1to5",
  "contentType": "video",
  "shouldDownloadVideos": true,
  "videoKvStoreName": "douyin-coffee"
}
```

Keyword results plus today's top 10 hot topics:

```json
{
  "keywords": ["AI"],
  "trendBoards": ["hotspot"],
  "maxTrendTopics": 10
}
```

#### Output of Douyin Search Scraper

Each row has these fields, always in the same order (missing values are `null`). Several values are also given under the column names other Douyin tools use, so a sheet built for another tool keeps working.

| Field | Type | Meaning | Example | Empty when |
|---|---|---|---|---|
| `searchKeyword` | string | The keyword that found the post. | 美食 | hot-list rows |
| `searchPosition` | integer | Position of the post in Douyin's result list (ads counted). | 3 | hot-list rows |
| `inputKeyword` | string | Same keyword. | 美食 | hot-list rows |
| `source_keyword` | string | Same keyword. | 美食 | hot-list rows |
| `sourceQuery` | string | Same keyword. | 美食 | hot-list rows |
| `resultPosition` | integer | Same position. | 3 | hot-list rows |
| `searchType` | string | video for search results, trend:hotspot / trend:trending for hot-list rows. | video | never |
| `rank` | integer | Position in the result list, or the rank on the hot list. | 3 | never |
| `word` | string | Hot-list topic text (rows added by Add hot list topics). | 终于懂李白走到哪都写诗了 | search results (only hot-list rows have it) |
| `hotValue` | integer | Heat value of a hot-list topic. | 11202304 | search results (only hot-list rows have it) |
| `isAdCard` | boolean | true when Douyin showed the post as an ad card. | false | hot-list rows |
| `scrapeTimestamp` | string | When the row was collected (UTC). | 2026-11-21T15:40:00+00:00 | never |
| `id` | string | Douyin post ID. | 7679375313393995043 | never |
| `awemeId` | string | Same ID (alternative column name). | 7679375313393995043 | never |
| `aweme_id` | string | Same ID (alternative column name). | 7679375313393995043 | never |
| `groupId` | string | Douyin's group ID of the post (usually the same as the ID). | 7679375313393995043 | never |
| `url` | string | Link of the post on douyin.com. | https://www.douyin.com/video/7679375313393995043 | never |
| `postUrl` | string | Same link (alternative column name). | https://www.douyin.com/video/... | never |
| `shareUrl` | string | Douyin's sharing link of the post. | https://www.iesdouyin.com/share/video/.../ | never |
| `share_url` | string | Same sharing link (alternative column name). | https://www.iesdouyin.com/share/video/.../ | never |
| `type` | string | video or image (image post / slideshow). | video | never |
| `isVideo` | boolean | true for videos, false for image posts. | true | never |
| `awemeType` | integer | Douyin's numeric post type. | 4 | never |
| `awemeTypeLabel` | string | The post type as a word. | video | never |
| `mediaType` | integer | 4 = video, 2 = images. | 4 | never |
| `mediaTypeLabel` | string | video or image. | video | never |
| `mediaTypeName` | string | Same as mediaTypeLabel. | video | never |
| `text` | string | Full caption with hashtags. | 可乐卤肉饭超详细保姆级教程！... #美食教程 | caption-less posts |
| `desc` | string | Same caption (alternative column name). | ... | caption-less posts |
| `description` | string | Same caption (alternative column name). | ... | caption-less posts |
| `title` | string | Caption text before the first hashtag. | 可乐卤肉饭超详细保姆级教程！ | caption starts with a hashtag |
| `itemTitle` | string | Same as title. | ... | as above |
| `previewTitle` | string | Same as title. | ... | as above |
| `caption` | string | The hashtag part of the caption. | #美食教程 #卤肉饭 | caption without hashtags |
| `videoMeta` | object | duration, width, height, ratio, format, playUrl, downloadUrl, playUrlWatermark, hasWatermark, cover, originCover, bitRate. | {"width": 1080, "ratio": "720p", ...} | image posts |
| `createTime` | integer | Publish time, Unix seconds. | 1787993903 | never |
| `create_time` | integer | Same (alternative column name). | 1787993903 | never |
| `createTimeIso` | string | Publish time, ISO 8601 UTC. | 2026-08-29T08:58:23+00:00 | never |
| `createDate` | string | Publish date. | 2026-08-29 | never |
| `durationMs` | integer | Video length in milliseconds. | 298467 | image posts |
| `durationSeconds` | number | Video length in seconds. | 298.467 | image posts |
| `duration` | integer | Same as durationMs. | 298467 | image posts |
| `videoUrl` | string | Direct MP4 link without watermark. | https://aweme.snssdk.com/aweme/v1/play/?video_id=... | image posts |
| `videoUrlNoWatermark` | string | Same clean link. | ... | image posts |
| `videoUrlWatermark` | string | MP4 link with the Douyin watermark. | .../aweme/v1/playwm/?video_id=... | image posts |
| `coverUrl` | string | Cover image link (expires after some hours). | https://p3-sign.douyinpic.com/... | rarely |
| `cover` | string | Same cover link. | ... | rarely |
| `width` | integer | Video width in pixels. | 1080 | image posts |
| `height` | integer | Video height in pixels. | 1920 | image posts |
| `images` | array | Image links of an image post. | \["https://p3-sign.douyinpic.com/..."] | video posts (empty list) |
| `imageUrls` | array | Same image links. | \[...] | video posts |
| `imageCount` | integer | Number of images. | 5 | 0 for videos |
| `authorMeta` | object | id, secUid, name, username (short ID), customUsername (Douyin ID), signature, avatarLarge, avatarThumb, awemeCount, followingCount, favoritingCount, followerCount, profileUrl. | {"name": "英语Lynn 李老师", ...} | never |
| `author` | object | The complete author object as Douyin publishes it with the post. | {"nickname": ..., "sec_uid": ...} | never |
| `authorName` | string | Author nickname. | 袁锐（萌新的圆） | never |
| `author_nickname` | string | Same nickname. | ... | never |
| `nickname` | string | Same nickname. | ... | never |
| `uniqueId` | string | The author's Douyin ID (抖音号). | lynnjxli | the author kept the numeric default ID (measured 2 of 23) |
| `handle` | string | Same Douyin ID. | lynnjxli | as above |
| `authorUid` | string | The author's numeric user id. | 676886962781079 | hot-list rows |
| `secUserId` | string | The author's sec_uid (the ID in profile links). | MS4wLjABAAAA... | never |
| `authorProfileUrl` | string | Link to the author's profile. | https://www.douyin.com/user/MS4wLjAB... | never |
| `musicMeta` | object | id, title, author, duration, coverUrl, playUrl, isOriginal. | {"title": "...", "author": "..."} | posts without music |
| `music` | object | The complete music object as published with the post. | {...} | posts without music |
| `musicId` | string | Music ID. | 7680633477502961665 | posts without music |
| `musicTitle` | string | Music title. | 亲爱的你啊 (音乐纯享版) | posts without music |
| `musicAuthor` | string | Music author. | 黄靖轩 | posts without music |
| `musicUrl` | string | Music file link. | null | Douyin leaves the music link empty in search answers (measured 13 of 13 raw records: url_list \[]) |
| `statistics` | object | digg_count, comment_count, share_count, collect_count, play_count as published. | {"digg_count": 41352, ...} | never |
| `diggCount` | integer | Likes. | 41352 | never |
| `digg_count` | integer | Same likes. | 41352 | never |
| `likeCount` | integer | Same likes. | 41352 | never |
| `commentCount` | integer | Comments. | 579 | never |
| `comment_count` | integer | Same comments. | 579 | never |
| `shareCount` | integer | Shares. | 11822 | never |
| `share_count` | integer | Same shares. | 11822 | never |
| `collectCount` | integer | Saves (favourites). | 8800 | never |
| `collect_count` | integer | Same saves. | 8800 | never |
| `playCount` | integer | Play counter as Douyin publishes it: Douyin shows 0 for other people's posts. | 0 | always 0 for visitors |
| `play_count` | integer | Same play counter. | 0 | always 0 for visitors |
| `hashtags` | array | Hashtags with id and name. | \[{"id": "1581688162541582", "name": "美食教程"}] | posts without hashtags |
| `hashtagNames` | array | Just the hashtag names. | \["美食教程", "卤肉饭"] | posts without hashtags |
| `mentions` | array | Accounts @-mentioned in the caption: secUid, userId, nickname. | \[{"nickname": "@朋友A", ...}] | posts without @-mentions (measured 23 of 23 test posts had none) |
| `text_extra` | array | Douyin's caption markup: hashtag and mention positions with IDs. | \[{"hashtag_name": "英语学习", ...}] | caption without tags |
| `cha_list` | array | Challenge list as Douyin publishes it with the post. | null | Douyin leaves it empty for visitors (measured 23 of 23); the same hashtags are in `hashtags` |
| `chapters` | array | Chapters of long videos. | \[] | the creator added no chapters (measured 23 of 23 empty) |
| `risk` | object | Douyin's warning label of the post (warn, type, content). | {"warn": false, ...} | rarely |
| `video` | object | The complete video object (play links, cover, size, duration). | {...} | never |
| `video_detail` | object | The complete post record as published, for your own processing. | {...} | never |
| `inputUrl` | string | Your input line that produced the row. | https://www.douyin.com/video/7679375313393995043 | never |
| `scrapedAt` | string | When the row was collected (UTC, ISO 8601). | 2026-11-21T15:20:00+00:00 | never |
| `region` | string | Region code of the post / author. | CN | Douyin gives none (measured 3 of 23 posts) |
| `city` | string | Douyin's city code of the post (Douyin publishes the code, not the name). | 320100 | post without a city |
| `cityCode` | string | Same city code. | 320100 | post without a city |
| `descLanguage` | string | Language of the caption. | zh | rarely |
| `horizontalType` | integer | Douyin's layout code of the video (1 vertical, 2 horizontal ...). | 1 | Douyin omits it on most posts (measured 15 of 23) |
| `horizontalTypeLabel` | string | The layout as a word. | vertical | as horizontalType |
| `isPinned` | boolean | Pinned on the author's profile. | false | hot-list rows |
| `isAd` | boolean | Douyin's ad flag of the post. | false | hot-list rows |
| `isPgc` | boolean | Professional (PGC) show flag. | false | hot-list rows |
| `isShared` | boolean | Re-shared post flag. | false | hot-list rows |
| `isStory` | boolean | Story post flag. | false | hot-list rows |
| `is24Story` | boolean | 24-hour story flag. | false | hot-list rows |
| `is25Story` | boolean | Story 2.5 flag. | false | hot-list rows |
| `isFirstVideo` | boolean | The author's first post. | false | hot-list rows |
| `isLifeItem` | boolean | Local-life (shop / place) post. | false | hot-list rows |
| `isKaraoke` | boolean | Karaoke post. | false | hot-list rows |
| `isDuetSing` | boolean | Duet-sing post. | false | hot-list rows |
| `isFantasy` | boolean | Douyin's fantasy flag. | false | hot-list rows |
| `isInScope` | boolean | Douyin's in-scope flag. | false | hot-list rows |
| `isImageBeat` | boolean | Image post set to music beats. | false | hot-list rows |
| `isVr` | boolean | VR video. | false | hot-list rows |
| `permissions` | object | canDuet, canStitch, canDownload, canShare, canComment, canRepost, canShowComment, isPrivate, isProhibited, isInReviewing, isDeleted, isReviewed, withGoods. | {"canDownload": true, ...} | hot-list rows |
| `interaction` | object | canComment, canShowComment, canShare, canForward, commentDisabled. | {"canComment": true, ...} | hot-list rows |
| `anchors` | array | Anchors (place, game, product links) attached to the post. | \[] | post without anchors (measured 23 of 23 without) |
| `commerce` | object | isAd, adType, withGoods, isEcomItem. | {"isAd": false, ...} | hot-list rows |
| `share` | object | Douyin's sharing block (share_url, share_title, share_desc ...). | {"share_url": ...} | hot-list rows |
| `xiguaCrossPost` | object | Cross-post status on Xigua video. | {"status": 0, ...} | hot-list rows |
| `aiMetadata` | object | Douyin's AI summary settings of the post. | {"ai_summary_v2_vertical": 1} | post without it (measured 17 of 23) |
| `videoTags` | array | Douyin's content tags with id, name and level. | \[{"name": "美食", "level": 1}] | hot-list rows |
| `series` | object | Series (合集 / short drama) id, author id, episode and episode title. | {"id": "7541294819302197289", "episode": 117} | post not in a series (measured 19 of 23) |
| `location` | object | Place (POI) tagged on the post. | null | post without a place (measured 21 of 23) |
| `downloadCount` | integer | Downloads of the post. | 2 | hot-list rows |
| `download_count` | integer | Same downloads. | 2 | hot-list rows |
| `forwardCount` | integer | Reposts. | 0 | hot-list rows |
| `audioUrl` | string | Same music link. | null | as musicUrl |
| `videoMirrors` | array | All mirror links of the (watermarked) video file. | \["https://v3-dymsearch.douyinvod.com/..."] | image posts, hot-list rows |
| `followerCount` | integer | The author's followers as Douyin shows them in search (often 0 = hidden). | 0 | hot-list rows |
| `follower` | integer | Same follower count. | 0 | hot-list rows |
| `profileUid` | string | Author user id. | 676886962781079 | hot-list rows |
| `profileSecUid` | string | Author sec_uid. | MS4wLjABAAAA... | hot-list rows |
| `profileUniqueId` | string | Author Douyin ID. | lynnjxli | author kept the numeric default ID |
| `profileShortId` | string | Author short ID. | 41717122315 | hot-list rows |
| `profileNickname` | string | Author nickname. | 袁锐（萌新的圆） | hot-list rows |
| `profileSignature` | string | Author bio. | 做暖心暖胃的菜！ | author without bio |
| `profileAvatarUrl` | string | Author avatar (largest). | https://p3.douyinpic.com/... | hot-list rows |
| `profileAvatarThumbUrl` | string | Author avatar, small. | ... | hot-list rows |
| `profileAvatarMediumUrl` | string | Author avatar, medium. | ... | hot-list rows |
| `profileAvatarLargerUrl` | string | Author avatar, large. | ... | hot-list rows |
| `profileUrl` | string | Author profile link. | https://www.douyin.com/user/MS4wLjAB... | hot-list rows |
| `profileFollowerCount` | integer | Author followers as shown in search (often 0 = hidden). | 0 | hot-list rows |
| `profileFollowingCount` | integer | Accounts the author follows. | 12 | hot-list rows |
| `profileTotalFavorited` | integer | Likes the author received in total, as shown in search (often 0 = hidden). | 0 | hot-list rows |
| `profileAwemeCount` | integer | Author's number of posts. | 685 | hot-list rows |
| `profileFavoritingCount` | integer | Posts the author liked. | 0 | hot-list rows |
| `profileVerified` | boolean | Author has a verification badge. | false | hot-list rows |
| `profileEnterpriseVerifyReason` | string | Business verification text. | 某某有限公司 | author without business verification (measured 21 of 23) |
| `profileCustomVerify` | string | Personal verification text. | 美食自媒体 | author without it (measured 23 of 23 without) |
| `profileVerificationType` | integer | Verification type code. | 0 | hot-list rows |
| `profilePrivateAccount` | boolean | Private account. | false | hot-list rows |
| `profileGender` | integer | Gender code as Douyin publishes it (0 unknown, 1 male, 2 female). | 1 | hot-list rows |
| `profileRegion` | string | Author region code. | CN | hot-list rows |
| `profileLocation` | string | Author location text. | null | Douyin leaves it empty in search answers (measured 23 of 23) |
| `profileLanguage` | string | Author language. | zh-Hans | hot-list rows |
| `profileCommerceUser` | integer | Commerce level of the author. | 0 | hot-list rows |
| `profileLiveStatus` | integer | 1 when the author is live now. | 0 | hot-list rows |
| `profileInsId` | string | Linked Instagram ID. | null | author linked none (measured 23 of 23) |
| `profileTwitterId` | string | Linked Twitter ID. | null | author linked none (measured 23 of 23) |
| `profileYoutubeChannelId` | string | Linked YouTube channel ID. | null | author linked none (measured 23 of 23) |
| `videoFile` | object | Stored MP4: key, fileUrl, sizeBytes, sourceUrl, mimeType (or error). | {"fileUrl": "https://api.apify.com/v2/key-value-stores/..."} | download off, or image posts |
| `coverFile` | object | Stored cover: key, fileUrl, sizeBytes, sourceUrl. | {...} | cover download off |
| `slideshowFiles` | array | Stored images of an image post: key, fileUrl, sizeBytes, index. | \[{...}] | image download off, or video posts |

Example row from a real Douyin Search Scraper test run (long values shortened):

```json
{
  "searchKeyword": "美食",
  "searchPosition": 2,
  "inputKeyword": "美食",
  "source_keyword": "美食",
  "sourceQuery": "美食",
  "resultPosition": 2,
  "searchType": "video",
  "rank": 2,
  "word": null,
  "hotValue": null,
  "isAdCard": false,
  "scrapeTimestamp": "2026-11-21T15:39:55+00:00",
  "id": "7706482545575169318",
  "awemeId": "7706482545575169318",
  "aweme_id": "7706482545575169318",
  "groupId": "7706482545575169318",
  "url": "https://www.douyin.com/video/7706482545575169318",
  "postUrl": "https://www.douyin.com/video/7706482545575169318",
  "shareUrl": "https://www.iesdouyin.com/share/video/7706482545575169318/?region=MA&mid=7706482545512303396&u_code=0&did=MS4w...",
  "share_url": "https://www.iesdouyin.com/share/video/7706482545575169318/?region=MA&mid=7706482545512303396&u_code=0&did=MS4w...",
  "type": "video",
  "isVideo": true,
  "awemeType": 0,
  "awemeTypeLabel": "video",
  "mediaType": 4,
  "mediaTypeLabel": "video",
  "mediaTypeName": "video",
  "text": "要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦 #猪蹄的神仙吃法 #美食教程 #满级吃商通关赛 #妈呀太香了 #美食",
  "desc": "要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦 #猪蹄的神仙吃法 #美食教程 #满级吃商通关赛 #妈呀太香了 #美食",
  "description": "要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦 #猪蹄的神仙吃法 #美食教程 #满级吃商通关赛 #妈呀太香了 #美食",
  "title": "要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦",
  "itemTitle": "要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦",
  "previewTitle": "要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦 #猪蹄的神仙吃法 #美食教程 #满级吃商通关赛 #妈呀太香了 #美食",
  "caption": "要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦 #猪蹄的神仙吃法 #美食教程 #满级吃商通关赛 #妈呀太香了 #美食",
  "videoMeta": {
    "duration": 108167,
    "width": 2160,
    "height": 3840,
    "ratio": "540p",
    "format": "mp4",
    "playUrl": "https://v3-dymsearch.douyinvod.com/044163ac6736b73d2ef52e9155ca9c90/6b01c9b1/video/tos/cn/tos-cn-ve-15/oYEAGEI...",
    "downloadUrl": "https://v3-dymsearch.douyinvod.com/4dcc6dd6c32f3eff52954db914433683/6b01c9b1/video/tos/cn/tos-cn-ve-15/oAcBs5F...",
    "playUrlWatermark": "https://v3-dymsearch.douyinvod.com/044163ac6736b73d2ef52e9155ca9c90/6b01c9b1/video/tos/cn/tos-cn-ve-15/oYEAGEI..."
  },
  "createTime": 1794305297,
  "create_time": 1794305297,
  "createTimeIso": "2026-11-10T10:08:17+00:00",
  "createDate": "2026-11-10",
  "durationMs": 108167,
  "durationSeconds": 108.167,
  "duration": 108167,
  "videoUrl": "https://v3-dymsearch.douyinvod.com/044163ac6736b73d2ef52e9155ca9c90/6b01c9b1/video/tos/cn/tos-cn-ve-15/oYEAGEI...",
  "videoUrlNoWatermark": "https://v3-dymsearch.douyinvod.com/044163ac6736b73d2ef52e9155ca9c90/6b01c9b1/video/tos/cn/tos-cn-ve-15/oYEAGEI...",
  "videoUrlWatermark": "https://v3-dymsearch.douyinvod.com/044163ac6736b73d2ef52e9155ca9c90/6b01c9b1/video/tos/cn/tos-cn-ve-15/oYEAGEI...",
  "coverUrl": "https://p11-sign.douyinpic.com/tos-cn-i-dy/061270966b744c199a18eed623262b3f~tplv-dy-resize-walign-adapt-aq:540...",
  "cover": "https://p11-sign.douyinpic.com/tos-cn-i-dy/061270966b744c199a18eed623262b3f~tplv-dy-resize-walign-adapt-aq:540...",
  "width": 2160,
  "height": 3840,
  "images": [],
  "imageUrls": [],
  "imageCount": 0,
  "authorMeta": {
    "id": "99267420968",
    "secUid": "MS4wLjABAAAA-S8EfAdcXrFllk3i_hLzEBhSw2ffgWxMldacevh09Pc",
    "name": "铭哥说美食",
    "username": "989915951",
    "customUsername": "zm00576666",
    "signature": "阿上阿上餐饮集团董事长\n20年餐饮人，走访200多座美食城市\n探寻各地特色美食，解密火爆餐厅招牌菜\n用最简单的方法〜在家就能轻松做\n商务⭐：19933057958（请注明合作意向）\n星图⭐：19933057958",
    "avatarLarge": "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_313c900056a1823dde29c.jpeg?from=327834062",
    "avatarThumb": "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/mosaic-legacy_313c900056a1823dde29c.jpeg?card_type=153&col..."
  },
  "author": "{... complete object ...}",
  "authorName": "铭哥说美食",
  "author_nickname": "铭哥说美食",
  "nickname": "铭哥说美食",
  "uniqueId": "zm00576666",
  "handle": "zm00576666",
  "authorUid": "99267420968",
  "secUserId": "MS4wLjABAAAA-S8EfAdcXrFllk3i_hLzEBhSw2ffgWxMldacevh09Pc",
  "authorProfileUrl": "https://www.douyin.com/user/MS4wLjABAAAA-S8EfAdcXrFllk3i_hLzEBhSw2ffgWxMldacevh09Pc",
  "musicMeta": {
    "id": "7706482545512303396",
    "title": "@铭哥说美食创作的原声",
    "author": "铭哥说美食",
    "duration": 108,
    "coverUrl": "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_313c900056a1823dde29c.jpeg?from=327834062",
    "playUrl": null,
    "isOriginal": false,
    "ownerId": "99267420968"
  },
  "music": "{... complete object ...}",
  "musicId": "7706482545512303396",
  "musicTitle": "@铭哥说美食创作的原声",
  "musicAuthor": "铭哥说美食",
  "musicUrl": null,
  "statistics": "{... complete object ...}",
  "diggCount": 13174,
  "digg_count": 13174,
  "likeCount": 13174,
  "commentCount": 305,
  "comment_count": 305,
  "shareCount": 5307,
  "share_count": 5307,
  "collectCount": 12850,
  "collect_count": 12850,
  "playCount": 0,
  "play_count": 0,
  "hashtags": [
    {
      "id": "1706224220462087",
      "name": "猪蹄的神仙吃法"
    },
    {
      "id": "1581688162541582",
      "name": "美食教程"
    }
  ],
  "hashtagNames": [
    "猪蹄的神仙吃法",
    "美食教程"
  ],
  "mentions": [],
  "text_extra": "{... complete object ...}",
  "cha_list": [
    {
      "cid": "7615617987986327615",
      "cha_name": "满级吃商通关赛",
      "desc": "晒出你的创新吃法，参与满级吃商通关，赢得官方奖励！",
      "schema": "aweme://aweme/challenge/detail?cid=7615617987986327615",
      "author": "{...}",
      "user_count": 0,
      "share_info": "{...}",
      "connect_music": []
    }
  ],
  "chapters": [],
  "risk": {
    "vote": false,
    "warn": false,
    "risk_sink": false,
    "type": 0,
    "content": ""
  },
  "video": "{... complete object ...}",
  "video_detail": "{... complete object ...}",
  "inputUrl": "https://www.douyin.com/search/%E7%BE%8E%E9%A3%9F",
  "scrapedAt": "2026-11-21T15:39:55+00:00",
  "region": "CN",
  "city": "130100",
  "cityCode": "130100",
  "descLanguage": "zh",
  "horizontalType": null,
  "horizontalTypeLabel": null,
  "isPinned": false,
  "isAd": false,
  "isPgc": false,
  "isShared": false,
  "isStory": false,
  "is24Story": false,
  "is25Story": false,
  "isFirstVideo": false,
  "isLifeItem": false,
  "isKaraoke": false,
  "isDuetSing": false,
  "isFantasy": false,
  "isInScope": false,
  "isImageBeat": false,
  "isVr": false,
  "permissions": {
    "canDuet": true,
    "canStitch": false,
    "canDownload": true,
    "canShare": true,
    "canComment": true,
    "canRepost": true,
    "canShowComment": true,
    "isPrivate": false
  },
  "interaction": {
    "canComment": true,
    "canShowComment": true,
    "canShare": true,
    "canForward": true,
    "commentDisabled": false
  },
  "anchors": [],
  "commerce": {
    "isAd": false,
    "adType": 0,
    "withGoods": false,
    "isEcomItem": false
  },
  "share": {
    "share_url": "https://www.iesdouyin.com/share/video/7706482545575169318/?region=MA&mid=7706482545512303396&u_code=0&did=MS4w...",
    "share_weibo_desc": "#在抖音，记录美好生活#要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦 #猪蹄的神仙吃法 #美食教程 #满级吃商通关赛 #妈呀太香了 #美食",
    "share_desc": "在抖音，记录美好生活",
    "share_title": "要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄花来啦 #猪蹄的神仙吃法 #美食教程 #满级吃商通关赛 #妈呀太香了 #美食",
    "bool_persist": 0,
    "share_title_myself": "",
    "share_title_other": "",
    "share_link_desc": "0.71 bAG:/ :5pm P@k.PX 12/01 复制打开抖音搜索对外版，看看【铭哥说美食的作品】要说夜宵哪个解馋，还得是扎皮蹄花！火遍重庆的扎皮蹄... %s"
  },
  "xiguaCrossPost": {
    "status": 0,
    "star_altar_order_id": 0,
    "star_altar_type": 0
  },
  "aiMetadata": null,
  "videoTags": [
    {
      "id": 2001,
      "name": "美食",
      "level": 1
    },
    {
      "id": 2001007,
      "name": "美食展示",
      "level": 2
    }
  ],
  "series": null,
  "location": null,
  "downloadCount": 325,
  "download_count": 325,
  "forwardCount": 0,
  "audioUrl": null,
  "videoMirrors": [
    "https://v3-dymsearch.douyinvod.com/044163ac6736b73d2ef52e9155ca9c90/6b01c9b1/video/tos/cn/tos-cn-ve-15/oYEAGEI...",
    "https://v3-dymsearch.douyinvod.com/044163ac6736b73d2ef52e9155ca9c90/6b01c9b1/video/tos/cn/tos-cn-ve-15/oYEAGEI..."
  ],
  "followerCount": 0,
  "follower": 0,
  "profileUid": "99267420968",
  "profileSecUid": "MS4wLjABAAAA-S8EfAdcXrFllk3i_hLzEBhSw2ffgWxMldacevh09Pc",
  "profileUniqueId": "zm00576666",
  "profileShortId": "989915951",
  "profileNickname": "铭哥说美食",
  "profileSignature": "阿上阿上餐饮集团董事长\n20年餐饮人，走访200多座美食城市\n探寻各地特色美食，解密火爆餐厅招牌菜\n用最简单的方法〜在家就能轻松做\n商务⭐：19933057958（请注明合作意向）\n星图⭐：19933057958",
  "profileAvatarUrl": "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_313c900056a1823dde29c.jpeg?from=327834062",
  "profileAvatarThumbUrl": "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/mosaic-legacy_313c900056a1823dde29c.jpeg?card_type=153&col...",
  "profileAvatarMediumUrl": "https://p3.douyinpic.com/aweme/720x720/aweme-avatar/mosaic-legacy_313c900056a1823dde29c.jpeg?from=327834062",
  "profileAvatarLargerUrl": "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_313c900056a1823dde29c.jpeg?from=327834062",
  "profileUrl": "https://www.douyin.com/user/MS4wLjABAAAA-S8EfAdcXrFllk3i_hLzEBhSw2ffgWxMldacevh09Pc",
  "profileFollowerCount": 0,
  "profileFollowingCount": 0,
  "profileTotalFavorited": 0,
  "profileAwemeCount": 0,
  "profileFavoritingCount": 0,
  "profileVerified": false,
  "profileEnterpriseVerifyReason": null,
  "profileCustomVerify": null,
  "profileVerificationType": 1,
  "profilePrivateAccount": false,
  "profileGender": 1,
  "profileRegion": "CN",
  "profileLocation": null,
  "profileLanguage": "zh-Hans",
  "profileCommerceUser": 0,
  "profileLiveStatus": 0,
  "profileInsId": null,
  "profileTwitterId": null,
  "profileYoutubeChannelId": null,
  "videoFile": null,
  "coverFile": null,
  "slideshowFiles": null
}
```

#### Douyin Search Scraper compared with the 5 most used tools of its kind

| Feature | Offered by (of 5) | Douyin Search Scraper |
|---|---|---|
| Keyword search, many keywords | 5 | Yes |
| Results per keyword, max items | 4 | Yes - first result page per keyword (Douyin's limit for visitors) |
| Sort, publish time, duration, content type | 4 | Yes - applied to the returned results |
| MP4 / cover / image downloads | 1 | Yes |
| Hot list topics in the same run | 1 | Yes |
| Full post record with author, music, tags, flags | 3 | Yes |
| Several result pages per keyword | 3 | No - Douyin shows visitors without an account only the first page |

#### Which columns can be empty in Douyin Search Scraper

Douyin Search Scraper never leaves a column empty when Douyin / TikTok publishes the value. The columns below were empty on more than 10% of the rows of our latest test run (1Am0sVy6gXdOvIlqw, 29 rows); each line gives the measured reason the site does not publish the value for those rows, or the option that fills it.

- `aiMetadata` - empty when: post without it (measured 17 of 23). Measured in our latest test run: 23 of 29 rows.
- `anchors` - empty when: post without anchors (measured 23 of 23 without). Measured in our latest test run: 29 of 29 rows.
- `audioUrl` - empty when: Douyin leaves the music file link empty in search answers (raw records: music.play_url.url_list = \[]). Measured in our latest test run: 27 of 29 rows.
- `chapters` - empty when: the creator added no chapters (measured 23 of 23 empty). Measured in our latest test run: 29 of 29 rows.
- `coverFile` - empty when: the option Download cover images is off. Measured in our latest test run: 29 of 29 rows.
- `horizontalType` - empty when: Douyin omits it on most posts (measured 15 of 23). Measured in our latest test run: 21 of 29 rows.
- `horizontalTypeLabel` - empty when: as horizontalType. Measured in our latest test run: 21 of 29 rows.
- `hotValue` - empty when: it is filled only on hot-list rows (option Add hot list topics); search results never carry it. Measured in our latest test run: 29 of 29 rows.
- `imageUrls` - empty when: video posts. Measured in our latest test run: 29 of 29 rows.
- `images` - empty when: video posts (empty list). Measured in our latest test run: 29 of 29 rows.
- `location` - empty when: post without a place (measured 21 of 23). Measured in our latest test run: 28 of 29 rows.
- `mentions` - empty when: posts without @-mentions (measured 23 of 23 test posts had none). Measured in our latest test run: 29 of 29 rows.
- `musicUrl` - empty when: Douyin leaves the music file link empty in search answers (raw records: music.play_url.url_list = \[]). Measured in our latest test run: 27 of 29 rows.
- `profileCustomVerify` - empty when: author without it (measured 23 of 23 without). Measured in our latest test run: 29 of 29 rows.
- `profileEnterpriseVerifyReason` - empty when: author without business verification (measured 21 of 23). Measured in our latest test run: 27 of 29 rows.
- `profileInsId` - empty when: author linked none (measured 23 of 23). Measured in our latest test run: 29 of 29 rows.
- `profileLocation` - empty when: Douyin leaves it empty in search answers (measured 23 of 23). Measured in our latest test run: 29 of 29 rows.
- `profileTwitterId` - empty when: author linked none (measured 23 of 23). Measured in our latest test run: 29 of 29 rows.
- `profileYoutubeChannelId` - empty when: author linked none (measured 23 of 23). Measured in our latest test run: 29 of 29 rows.
- `series` - empty when: post not in a series (measured 19 of 23). Measured in our latest test run: 23 of 29 rows.
- `slideshowFiles` - empty when: the option Download image-post images is off, or the post is a video. Measured in our latest test run: 29 of 29 rows.
- `videoFile` - empty when: the option Download MP4 videos is off. Measured in our latest test run: 29 of 29 rows.
- `word` - empty when: it is filled only on hot-list rows (option Add hot list topics); search results never carry it. Measured in our latest test run: 29 of 29 rows.

#### How much does Douyin Search Scraper cost?

Douyin Search Scraper uses pay-per-event pricing: you pay per row that Douyin Search Scraper saves (event `result`); skipped ads, filtered posts and failed keywords cost nothing. The price is $1.49 per 1,000 results on the free plan, $1.39 per 1,000 on Starter, $1.29 per 1,000 on Scale and $1.19 per 1,000 on Business.

Worked example: 50 keywords return about 500 posts, which costs about $0.75 on the free plan (500 / 1,000 x $1.49). Douyin Search Scraper opens each keyword in a real browser through residential proxies, so Apify platform usage is about $0.015 per keyword (measured: 4 keywords in parallel, 29 posts in 75 seconds, $0.06). Cap the cost with `maxItems` and a maximum cost per run.

#### Limits of Douyin Search Scraper (measured, not guessed)

- One result page per keyword: logged out, Douyin serves 9-13 posts after ads for a search and asks visitors to open the app for more (measured 2026-11-21: the page loads no second page on scrolling).
- Douyin mixes live-room and product cards into the results (measured: 9 of 38 cards); they are not posts, carry no likes or dates, and are skipped like the ad cards.
- Douyin's own filter bar (sort, date, duration) is not shown to visitors, so Douyin Search Scraper applies these choices to the returned posts.
- Some page loads do not answer; Douyin Search Scraper retries up to 3 times with a new browser and IP, then names the keyword in an ERROR line.
- Douyin hides follower and total-like counts in search results (they come back as 0) and leaves the music file link empty.

#### FAQ about Douyin Search Scraper

**Why did I get fewer results than the maximum?** Douyin gives visitors one page per keyword (9-13 posts after ads); filters and the ad skip remove more. Add more keywords for more posts.

**Why is a field empty?** `word` and `hotValue` are only on hot-list rows; `images` only on image posts; `series`, `location`, `anchors`, `chapters`, `mentions` only when the post has them; `musicUrl` is left empty by Douyin in search; file fields need the download options.

**How do I get only new items?** Schedule the run and keep the `id` values you already have; `createTime` with `publishTime: day` keeps only today's posts.

**Can I run many inputs in one run?** Yes - put as many keywords as you like in `keywords`; each one is searched in turn.

**Does it need a login?** No. Douyin Search Scraper works without any account, cookie or API key.

#### Integrations for Douyin Search Scraper

Connect Douyin Search Scraper to Make, Zapier, n8n, Google Sheets, Slack, Airbyte or your own code. Every Douyin Search Scraper run can call a webhook when it finishes, and the Douyin Search Scraper dataset is available through the Apify API in JSON, CSV, XLSX, XML and RSS. Schedule Douyin Search Scraper daily for your brand keywords.

#### Use Douyin Search Scraper through the API

Douyin Search Scraper runs from any language through the Apify API. Replace `<YOUR_API_TOKEN>` with your token from Apify Console > Settings > Integrations. The input is the same JSON as in the examples above.

Start a run and get the rows in one call (curl):

```bash
curl -X POST "https://api.apify.com/v2/acts/neuro-scraper~douyin-search-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["美食", "旅行"], "maxResultsPerQuery": 20}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("neuro-scraper/douyin-search-scraper").call(run_input={'keywords': ['美食', '旅行'], 'maxResultsPerQuery': 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

Node.js (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('neuro-scraper/douyin-search-scraper').call({"keywords": ["美食", "旅行"], "maxResultsPerQuery": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

Every run of Douyin Search Scraper can also call a webhook when it finishes, so your system gets the dataset id without polling.

#### Related Actors

| Actor | What it extracts |
|---|---|
| [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) | Facebook Reels with views, reactions, captions and creators |
| [Douyin Video Scraper](https://apify.com/neuro-scraper/douyin-video-scraper) | Douyin posts by link with stats, author, music and no-watermark MP4 |
| [Douyin Trending Scraper](https://apify.com/neuro-scraper/douyin-trending-scraper) | Douyin hot search list and rising topics with heat and rank history |
| [TikTok Trending Hashtags Analytics Scraper](https://apify.com/neuro-scraper/tiktok-trending-hashtags-analytics-scraper) | TikTok trending hashtags by country |

#### Is it legal to use Douyin Search Scraper?

Douyin Search Scraper reads only public posts that anyone can see without logging in. Videos and images are protected by copyright: download and reuse them only when you have the right to. Personal data is protected by laws such as the GDPR and China's PIPL; make sure you have a lawful reason to process it. Douyin Search Scraper is an independent tool and is not affiliated with Douyin or ByteDance.

#### Support for Douyin Search Scraper

Found a bug in Douyin Search Scraper or need another field? Open an issue on the Douyin Search Scraper Issues tab and include the run ID - every report is read and answered.

# Actor input Schema

## `keywords` (type: `array`):

One keyword per line, in Chinese or English, e.g. 美食, 旅行 vlog, iPhone. Each keyword is searched on its own.

## `maxResultsPerQuery` (type: `integer`):

Most rows per keyword. Logged out Douyin serves the first result page only (9-13 posts after ads, measured), so higher values return the whole first page.

## `maxItems` (type: `integer`):

Stop the run after this many rows.

## `sort` (type: `string`):

Order of each keyword's results (applied to the returned results).

## `publishTime` (type: `string`):

Keep only posts published within this window (applied to the returned results).

## `duration` (type: `string`):

Keep only videos of this length (image posts are not filtered).

## `contentType` (type: `string`):

Keep videos, image posts (图文) or both.

## `includeAds` (type: `boolean`):

Douyin mixes ads into the results (about 4 of 13 cards). Off = ads are skipped and not charged.

## `trendBoards` (type: `array`):

Also add Douyin's hot search topics as rows (searchType trend:hotspot / trend:trending, with word, hotValue and rank).

## `maxTrendTopics` (type: `integer`):

Most hot-list rows per board when Add hot list topics is used.

## `shouldDownloadVideos` (type: `boolean`):

Save each video's clean MP4 in a key-value store (videoFile).

## `shouldDownloadCovers` (type: `boolean`):

Save each post's cover image (coverFile).

## `shouldDownloadSlideshowImages` (type: `boolean`):

Save every image of image posts (slideshowFiles).

## `videoKvStoreName` (type: `string`):

Named store of your account for the files, e.g. douyin-files. Empty = the run's own store.

## `maxFileSizeMb` (type: `integer`):

Larger files are skipped (videoFile.error says why).

## `maxConcurrency` (type: `integer`):

How many keywords are searched at the same time, each in its own browser session with its own IP.

## `proxyConfiguration` (type: `object`):

Residential proxy is required for the search page (used in every test).

## Actor input object example

```json
{
  "keywords": [
    "美食",
    "旅行"
  ],
  "maxResultsPerQuery": 20,
  "maxItems": 1000,
  "sort": "relevance",
  "publishTime": "any",
  "duration": "any",
  "contentType": "all",
  "includeAds": false,
  "maxTrendTopics": 50,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "shouldDownloadSlideshowImages": false,
  "maxFileSizeMb": 300,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, in the run's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "美食",
        "旅行"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/douyin-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "keywords": [
        "美食",
        "旅行",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/douyin-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "美食",
    "旅行"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/douyin-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/douyin-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ScqmFxy0tSUdmawa3/builds/X8k0dC15cSmqx2Ygp/openapi.json
