# Douyin Search Scraper: 抖音搜索 Videos, Hashtags & Transcripts (`hyperbach/douyin-search-scraper`) Actor

Douyin (抖音) search logged out: posts by keyword, video link, hashtag, related videos or hot topic. One row per post: caption, hashtags, exact likes, comments, shares, saves, author with exact followers, no-watermark video link, music, tags. Transcripts, MP4 download. Misses free.

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

## Pricing

from $2.14 / 1,000 posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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: 抖音搜索 Videos, Hashtags & Transcripts

**Douyin (抖音) posts by keyword search, video link, hashtag, related videos or the hot-search board, logged out: one row per post with its caption, hashtags, time, exact likes, comments, shares and saves, the author with the exact follower count, the no-watermark play link and every rendition, the cover, the music, Douyin's own video tags and the place.** Sort, publish-time, duration and content-type filters, checked on the rows. Optional: the author's post count and total likes, a translation by Douyin's own translator, a transcript of each video's speech, and the video, cover and image files saved to your storage. No login, no cookie, no key, proxies handled for you.

**From $3.825 per 1,000 rows (`post`) on the Free plan, $3.25125 on Starter; every row and add-on is priced under Pricing below.** A run start is $0.0081. The default input returns about 22 rows for about $0.0846. Every input gets a free row with its verdict; posts a filter leaves out and ads (unless asked) are never charged.

![Douyin's mobile search page for the keyword 露营早餐 with one result: a camping breakfast video by the creator 山野小厨 with its caption, hashtags, duration, likes, comments, saves and shares. Beside it, the row this Actor returns for that post, with the author_followers field highlighted: the author's exact follower count, which the search page does not show.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-douyin-search-scraper.webp)

### How it compares

- **2 times cheaper than zen-studio's Douyin 抖音 Search Scraper + Video Downloader, with more data:** $3.08 per 1,000 posts, against $7.00; 68 fields per post, against 50. It is faster: 20 posts in 21 s, against our 38 s.
- **Cheaper than socialdatax's 抖音 API, with more data:** $3.08 per 1,000 posts, against $4.99; 68 fields per post, against 39. It is 4 times faster: 20 posts in 10 s, against our 38 s.
- **2 times faster and cheaper than natanielsantos's Douyin 抖音 Scraper, with more data:** 20 posts in 38 s, against 92 s; $3.08 per 1,000 posts, against $4.00; 68 fields per post, against 12.

Measured on 2026-11-14. Each line compares one job, run by both scrapers at the same time. Prices are per 1,000 posts: Apify Actors at the Scale plan's prices.

### Tested head-to-head on 2026-11-14

The job: Douyin keyword search, the input schema's example: two keywords (美食, iphone), 10 posts each, 20 posts in all, the default sort (keywords 美食 and iphone, maxResultsPerQuery 10, maxItems 20). Every Actor ran on it the same day from the same harness; every run's cost is at the Scale plan's prices: a rival's charged events at its price for that plan, this Actor's at its list price. Fields counts the filled fields of a typical row. Every actor searched Douyin for the same keywords in the same minute; one keyword-search seller takes one keyword a run, so it read 美食 alone at the same row count. Re-measured monthly.

| Actor | Rows | First row | Run time | Cost | Fields | Failures |
|---|---|---|---|---|---|---|
| **this Actor** | 20 | 9.3 s | 38 s | $0.062 | 68 | none |
| `zen-studio/douyin-search-scraper` | 20 | 8.2 s | 21 s | $0.14 | 50 | none |
| `socialdatax/socialdatax-douyin-data-api` | 20 | 10 s | 10 s | $0.100 | 39 | none |
| `natanielsantos/douyin-scraper` | 20 | 30 s | 92 s | $0.080 | 12 | none |

### Why this Douyin search scraper

- **The exact follower count of every author.** Douyin's search answer says 0 followers for every author; this Actor reads each distinct author's count from the video's own page (free, on by default) and fills `author_followers` exactly (1,497,716, not 1.5M). On our test of 2026-11-14: 40 of 40 posts filled.
- **Five ways in, one row shape.** Keywords (Douyin's own search), video links in every form a buyer pastes (douyin.com/video, /note, the share host, v.douyin.com short links, share texts, bare ids), hashtags (link, id or name), the related videos of a video, and the top topics of the hot-search board. A post met by two inputs is one row, charged once.
- **Filters you can check.** Douyin's sort (most liked, newest), publish time (24 hours, 7 days, 6 months) and duration filters are sent to Douyin and then checked on every post: a post outside the window or the range is left out (free) even when Douyin ignored the filter, and the keyword's row says whether Douyin honoured each one (`sort_honoured`, `time_window_honoured`, `duration_honoured`).
- **Honest depth.** Douyin's search serves 8 to 16 posts a load and its depth moves by the hour (10 to 45 distinct posts a keyword on our test runs of builds 0.1.6–0.1.10, 2026-11-14). This Actor reads more loads on fresh connections in parallel until your count or until two fresh connections add nothing, and a keyword that stops short says TRUNCATED with the count on its own row and in the run's status line: never padded, never a silent cut.
- **No play count column.** Douyin's web never publishes plays (0 on every record we read); a column that is always 0 lies, so this Actor has none.
- **Ads named, or left out.** Promoted posts (1 to 7 a search answer) are left out by default and free; `includeAds` delivers them flagged `is_ad`. Their tracking links are never on a row.
- **Every post's media.** The no-watermark play link, the H.264 and H.265 links, every rendition with its exact bytes, the watermarked download link, covers, image-note images and the link expiry; `shouldDownloadVideos` saves the MP4 to your store with a link that does not expire.

### Who it's for

- **Brand, marketing and creator-economy teams watching China** — what Douyin shows for your keywords, hashtags and trending topics, with exact engagement and the creators' follower counts, translated into your language, into a sheet or a dashboard.
- **Researchers and journalists** — a sample of Douyin's public posts on a topic at a given hour, with the time, the place tag, Douyin's own video tags and the media links, kept with the video files when you need them.
- **Data and AI teams** — typed rows keyed by Douyin's own post id, one row per post across inputs, a free row per input with its verdict and a run summary to check a pipeline against.

### Quick start

**Two keywords, 20 posts each**

```json
{
  "keywords": [
    "美食",
    "iphone"
  ],
  "maxResultsPerQuery": 20
}
```

**The most liked posts of the last week, videos only**

```json
{
  "keywords": [
    "美食"
  ],
  "sort": "most_liked",
  "publishTime": "one_week",
  "contentType": "videos",
  "maxResultsPerQuery": 50
}
```

**Video links and a hashtag, with the author's details**

```json
{
  "videoUrls": [
    "https://www.douyin.com/video/7633646113853104116"
  ],
  "hashtags": [
    "#家常菜"
  ],
  "maxResultsPerQuery": 30,
  "authorDetails": true
}
```

### Switching from `zen-studio/douyin-search-scraper`?

Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (`read <theirs> as <ours>`); a name marked *not read* is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.

| zen-studio/douyin-search-scraper | this Actor | what to know |
|---|---|---|
| `keywords` | `keywords` | The same: words to search, one a line. A pasted Douyin search link is read as its keyword. |
| `maxResultsPerQuery` | `maxResultsPerQuery` | The same: posts per keyword (here per hashtag, related list and hot topic too). Up to 500; 0 = as many as Douyin serves. |
| `sort` | `sort` | The same values: general, most_liked, latest; checked on the rows. |
| `publishTime` | `publishTime` | The same values: unlimited, one_day, one_week, half_year; every post outside the window is left out. |
| `duration` | `duration` | The same values: unlimited, under_1m, one_to_five, over_5m. |
| `shouldDownloadVideos` | `shouldDownloadVideos` | The same: the MP4 in the store, its link on the row (`video_file_url`). |
| `shouldDownloadCovers` | `shouldDownloadCovers` | The same: the cover in the store (`cover_file_url`). |
| `shouldDownloadSlideshowImages` | `shouldDownloadSlideshowImages` | The same: an image note's images in the store (`image_file_urls`). |
| `videoKvStoreName` | `videoKvStoreName` | The same: a named key-value store for the files. |
| `feedback` | `feedback` | The same: a note to the maintainers; the run does not read it. |

**What differs:**

- The leader's input names are this Actor's own (`keywords`, `maxResultsPerQuery`, `sort`, `publishTime`, `duration`, the three download switches, `videoKvStoreName`) with the same values: its input runs here as it is.
- `maxResultsPerQuery` defaults to 20 here (the leader: 100) and goes to 500: Douyin's logged-out search depth is the hour's (10 to 45 distinct posts a keyword on our test runs of builds 0.1.6–0.1.10, 2026-11-14), and a keyword that ends short says TRUNCATED with the count.
- No `playCount`: Douyin's web serves 0 for every post (the leader's column is 0 on every row). `author_followers` is the exact count from the video's page.
- The columns are snake_case (`likes`, `comments`, `shares`, `collects`, `author_followers`, `created_at` in UTC); the leader's camelCase keys map one to one.
- More inputs: video links, hashtags, related videos and the hot-search board, beside keywords.

### Output

One row per Douyin post (and one free row per input):

| field | meaning |
|---|---|
| `record_type` | `post` on a post row (charged); `target` on an input's free summary row. |
| `status` | `ok`, or why an input gave no post: `no_results` (Douyin found nothing, on two fresh connections), `not_found` (a video or hashtag Douyin does not serve), `invalid_input` (a value that names nothing), `failed` (Douyin did not answer), `not_read` (the run stopped first). |
| `input` | The value you gave that this row answers. |
| `input_type` | keyword, video, hashtag, related or hot_topic. |
| `keyword` | The search word, the hashtag (`#name`) or the hot topic of the walk that delivered the post. |
| `position` | The post's place in that walk, from 1. |
| `id` | Douyin's post id (aweme id). |
| `url` | The post's page on douyin.com (/video/ or /note/). |
| `share_url` | The post's share link (iesdouyin.com/share/…). |
| `content_type` | `video` or `image_note` (图文). |
| `description` | The caption as written, hashtags included. |
| `title` | The post's own title, where the creator set one. |
| `hashtags` | The hashtag names of the caption. |
| `hashtag_ids` | Douyin's ids of those hashtags (a `hashtags` input takes them). |
| `mentions` | The accounts the caption mentions: name and sec_uid. |
| `created_at` | When the post was published (UTC). |
| `duration_s` | The video's length in seconds (null on an image note). |
| `language` | The caption's language as Douyin detects it (zh, en, un …). |
| `likes` | The post's likes, exact. |
| `comments` | The post's comments, exact. |
| `shares` | The post's shares, exact (null on a video read by link). |
| `collects` | The post's saves (favourites), exact (null on a video read by link). |
| `downloads` | The post's downloads as Douyin counts them. |
| `whatsapp_shares` | The post's WhatsApp shares as Douyin counts them. |
| `author_name` | The creator's display name. |
| `author_id` | The creator's numeric user id. |
| `author_sec_uid` | The creator's sec_uid (the id in the profile link). |
| `author_unique_id` | The creator's Douyin ID (抖音号), where set. |
| `author_url` | The creator's profile page. |
| `author_followers` | The creator's followers, exact, from the video's own page (or the hot list's record); null when not asked. |
| `author_followers_source` | Where `author_followers` came from: `video_page`, `video_list`, `not_served` (the page did not answer), `cut` (the run stopped first). |
| `author_verified` | True when Douyin shows the creator verified: a personal verification text (the yellow V) or an organisation's reason (the blue V), both in `author_verification`. |
| `author_verification` | The creator's verification text, where Douyin shows one. |
| `author_bio` | The creator's bio. |
| `author_region` | The creator's country as Douyin records it. |
| `author_language` | The creator's language as Douyin records it. |
| `author_posts` | With `authorDetails`: the creator's post count, exact. |
| `author_following` | With `authorDetails`: the accounts the creator follows. |
| `author_total_likes` | With `authorDetails`: the likes of all the creator's posts, exact. |
| `play_url` | The video's play link (no watermark); it expires (`media_expires_at`). |
| `play_url_h264` | The H.264 play link. |
| `play_url_h265` | The H.265 play link. |
| `watermarked_url` | The download link Douyin serves with its watermark. |
| `video_bytes` | The play rendition's size in bytes, as Douyin's record names it. |
| `renditions` | Every rendition Douyin lists: gear, bit_rate, codec, width, height, bytes, url. |
| `width` | The video's width in pixels. |
| `height` | The video's height in pixels. |
| `ratio` | Douyin's quality label of the play rendition (540p, 720p …). |
| `video_format` | The file format Douyin names (mp4 …). |
| `cover_url` | The cover image. |
| `origin_cover_url` | The first-frame cover. |
| `dynamic_cover_url` | The animated cover. |
| `images` | An image note's images: url, width, height. |
| `media_expires_at` | When the media links expire (UTC), read from the links themselves. |
| `music_id` | The sound's id. |
| `music_title` | The sound's title. |
| `music_author` | The sound's author. |
| `music_duration_s` | The sound's length in seconds. |
| `music_original` | Whether the sound is the post's own original sound. |
| `music_cover_url` | The sound's cover. |
| `video_tags` | Douyin's own category tags of the post, broadest first (美食 › 美食教程 › …). |
| `suggested_searches` | The searches Douyin suggests next to the post (大家都在搜). |
| `city_code` | The post's city code (GB/T 2260, e.g. 440300). |
| `province` | The province of that city code (Guangdong …). |
| `region` | The post's country as Douyin records it, where it does. |
| `place_name` | The place (POI) tagged on the post. |
| `chapters` | The video's chapters: title and start second. |
| `is_ad` | True on a promoted post (only with `includeAds`). |
| `is_life_item` | Whether Douyin marks the post a local-life (shop, restaurant) item. |
| `ai_label` | Douyin's AI-content label, where it carries one (null otherwise). |
| `can_comment` | Whether comments are open. |
| `can_share` | Whether sharing is allowed. |
| `can_duet` | Whether duets are allowed. |
| `can_stitch` | Whether stitches are allowed. |
| `can_download` | Whether the creator allows downloads in the app. |
| `is_private` | Whether the post is private. |
| `share_title` | The post's share title. |
| `translation` | With `translateTo`: the caption in your language, by Douyin's own translator. |
| `translation_note` | How the translation was made, or why there is none. |
| `transcript` | With `transcript`: the video's speech as text (its first 3 minutes on a longer video; null with no speech). |
| `transcript_minutes` | With `transcript`: the started minutes transcribed, each one `transcript` charge (1 to 3; null with no transcript). |
| `transcript_note` | With `transcript`: how the transcript was made (with the part it covers on a video over 3 minutes), or why there is none (no speech, an image note, cut). |
| `video_file_url` | With `shouldDownloadVideos`: the stored MP4's link (does not expire). |
| `cover_file_url` | With `shouldDownloadCovers`: the stored cover's link. |
| `image_file_urls` | With `shouldDownloadSlideshowImages`: the stored images' links. |
| `media_files` | Every stored file of the row: kind, key, url, bytes, reused. |
| `files_note` | Why an asked file is not on the row (too large, not served for a video read by link, cut). |
| `verdict` | On an input row: CAPPED (your count), TRUNCATED (Douyin's depth ended first: `note` gives the count), LIST_END (the list's own end, read twice), COMPLETE, or PARTIAL (the run stopped while it was read). |
| `rows_delivered` | On an input row: the posts it delivered. |
| `loads` | On an input row: the search loads or list pages it read. |
| `sort_honoured` | On a keyword row with a sort: whether every Douyin answer came in that order (the Actor sorted the ones that did not). |
| `time_window_honoured` | On a keyword row with `publishTime`: whether every answer was inside the window (posts outside it are left out, free). |
| `duration_honoured` | On a keyword row with `duration`: whether every answer was inside the range. |
| `note` | Why an input row has the status or the verdict it has. |
| `scraped_at` | When this row was read (UTC). |

Example record:

```json
{
  "record_type": "post",
  "status": "ok",
  "input": "美食",
  "input_type": "keyword",
  "keyword": "美食",
  "position": 5,
  "id": "7476470597065657641",
  "url": "https://www.douyin.com/video/7476470597065657641",
  "share_url": "https://www.iesdouyin.com/share/video/7476470597065657641/",
  "content_type": "video",
  "description": "葱烧肥牛拌饭太香了！ 解锁天花板级肥牛吃法！有手就能做，一招解决宅家下饭难题！#肥牛饭 #妈呀太香了 #肥牛的神仙吃法 #下饭神菜 #拌饭神器",
  "title": "葱烧肥牛拌饭太香了！",
  "hashtags": [
    "肥牛饭",
    "妈呀太香了",
    "肥牛的神仙吃法",
    "下饭神菜",
    "拌饭神器"
  ],
  "hashtag_ids": [
    "1593997709016087",
    "1619283196524547",
    "1701661009318926",
    "1660140444068876",
    "1625691893414923"
  ],
  "mentions": null,
  "created_at": "2025-03-02T06:00:00Z",
  "duration_s": 40.434,
  "language": "zh",
  "likes": 1152679,
  "comments": 7612,
  "shares": 305706,
  "collects": 482226,
  "downloads": 8115,
  "whatsapp_shares": 2,
  "author_name": "夏叔厨房",
  "author_id": "2273413469048935",
  "author_sec_uid": "MS4wLjABAAAAYT9oc6rr0kDXBlwIvBAK7W2ZH134Uq9X-_FdAjJnK_fhwKc3b8d_FZfQdY6EiJJX",
  "author_unique_id": "XSCF1314",
  "author_url": "https://www.douyin.com/user/MS4wLjABAAAAYT9oc6rr0kDXBlwIvBAK7W2ZH134Uq9X-_FdAjJnK_fhwKc3b8d_FZfQdY6EiJJX",
  "author_followers": 23287295,
  "author_followers_source": "video_page",
  "author_verified": true,
  "author_verification": null,
  "author_bio": "跟着夏叔学做菜，做家人的金牌大厨！\n有温度的国宴大厨 私藏配方倾囊分享\n中国烹饪大师、北京烹饪协会副秘书长\n世界中餐业联合会青年名厨专业委员会执行主席\n第六届世界中餐烹饪大赛特金奖获得者\n中国药膳研究会文化建设专委会委员\n美食节目主持人，《天天饮食》《养生堂》等百余档电视节目特邀嘉宾",
  "author_region": "CN",
  "author_language": "zh-Hans",
  "author_posts": null,
  "author_following": null,
  "author_total_likes": null,
  "play_url": "https://v3-dymsearch.douyinvod.com/6d56413da81060ba23b9ee7edf09f9f2/6af8a5f0/video/tos/cn/tos-cn-ve-15/o4CBwmLA2bkDWvs8gVK9AFf8ADAFDiEngQaIqf/?a=581610&ch=11&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2144&bt=2144&cs=0&ds=3&ft=ukz_CPa1DyjNHSVQ9wbtX_Hhd.oRprb03-ApQX&mime_type=video_mp4&qs=0&rc=NTw4OGU4Ozo1NzpnZzdlaEBpajQ8c3A5cjR1eTMzNGkzM0AtLTY0YzNgXjExMjYwYi9gYSNqXmJfMmRjci1gLS1kLS9zcw%3D%3D&btag=c0000e00018000&dy_q=1794676664&feature_id=fea919893f650a8c49286568590446ef&l=2026111501174307A5837FB4B03EB7BCCA",
  "play_url_h264": "https://v3-dymsearch.douyinvod.com/6d56413da81060ba23b9ee7edf09f9f2/6af8a5f0/video/tos/cn/tos-cn-ve-15/o4CBwmLA2bkDWvs8gVK9AFf8ADAFDiEngQaIqf/?a=581610&ch=11&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2144&bt=2144&cs=0&ds=3&ft=ukz_CPa1DyjNHSVQ9wbtX_Hhd.oRprb03-ApQX&mime_type=video_mp4&qs=0&rc=NTw4OGU4Ozo1NzpnZzdlaEBpajQ8c3A5cjR1eTMzNGkzM0AtLTY0YzNgXjExMjYwYi9gYSNqXmJfMmRjci1gLS1kLS9zcw%3D%3D&btag=c0000e00018000&dy_q=1794676664&feature_id=fea919893f650a8c49286568590446ef&l=2026111501174307A5837FB4B03EB7BCCA",
  "play_url_h265": "https://v3-dymsearch.douyinvod.com/ead2a22c19acd5994884ebf656bd41af/6af8a5f0/video/tos/cn/tos-cn-ve-15/oECO7eM9gm384aPJHeWXEeLQA0yWgBPUBRAAEG/?a=581610&ch=11&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=1365&bt=1365&cs=2&ds=4&ft=ukz_CPa1DyjNHSVQ9wbtX_Hhd.oRprb03-ApQX&mime_type=video_mp4&qs=0&rc=ZWVpPDNoPDs0PGk6ZWc7ZUBpajQ8c3A5cjR1eTMzNGkzM0AvXjUwMzEtNWMxNTU2NjBjYSNqXmJfMmRjci1gLS1kLS9zcw%3D%3D&btag=c0000e00018000&dy_q=1794676664&feature_id=fd1a6f06b2578346110d4dcf922975c0&l=2026111501174307A5837FB4B03EB7BCCA",
  "watermarked_url": "https://v3-dymsearch.douyinvod.com/85cc989781a7f857006aebd602fadf52/6af8a5f0/video/tos/cn/tos-cn-ve-15/owbQAfIaEFAvcwggI9gDCFkqbDxg8snB2ALfBE/?a=581610&ch=11&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=3111&bt=3111&cs=0&ds=3&ft=ukz_CPa1DyjNHSVQ9wbtX_Hhd.oRprb03-ApQX&mime_type=video_mp4&qs=0&rc=O2RmMzQ7ZjM6Zzw3PGlkOkBpajQ8c3A5cjR1eTMzNGkzM0AyXmNhYTQzNmMxYDA0My5iYSNqXmJfMmRjci1gLS1kLS9zcw%3D%3D&btag=c0000e00018000&dy_q=1794676664&feature_id=dc6e471fd69cf67451806384e04f2b47&l=2026111501174307A5837FB4B03EB7BCCA",
  "video_bytes": 11098503,
  "renditions": [
    {
      "gear": "normal_1080_0",
      "bit_rate": 3148431,
      "codec": "h264",
      "width": 1080,
      "height": 1920,
      "bytes": 15912958,
      "url": "https://v3-dymsearch.douyinvod.com/657bd70be131f32ba5f84756bef2e4fa/6af8a5f0/video/tos/cn/tos-cn-ve-15/ocbnBD8PiCTiVP9AagUIwtXL9elyBAQ2AfiEBC/?a=581610&ch=11&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=3074&bt=3074&cs=0&ds=4&ft=ukz_CPa1DyjNHSVQ9wbtX_Hhd.oRprb03-ApQX&mime_type=video_mp4&qs=0&rc=Njg2aGc0NjNoOzw7aTw4NEBpajQ8c3A5cjR1eTMzNGkzM0AwYDU0L19jX18xYzAuNC4tYSNqXmJfMmRjci1gLS1kLS9zcw%3D%3D&btag=c0000e00018000&dy_q=1794676664&feature_id=46a7bb47b4fd1280f3d3825bf2b29388&l=2026111501174307A5837FB4B03EB7BCCA"
    },
    {
      "gear": "low_720_0",
      "bit_rate": 2206183,
      "codec": "h264",
      "width": 720,
      "height": 1280,
      "bytes": 11150601,
      "url": "https://v3-dymsearch.douyinvod.com/4d02cfbcd71199e0d20d3db1c7b80928/6af8a5f0/video/tos/cn/tos-cn-ve-15/ooXnPFeyKAo2Q9v7gIitwCCBCflBVIbiAABnEE/?a=581610&ch=11&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C3&cv=1&br=2154&bt=2154&cs=0&ds=3&ft=ukz_CPa1DyjNHSVQ9wbtX_Hhd.oRprb03-ApQX&mime_type=video_mp4&qs=1&rc=ZWdkNTg8Ozg5OjxpNWdnO0BpajQ8c3A5cjR1eTMzNGkzM0BgNmBfNi0vNS8xYy00XzU2YSNqXmJfMmRjci1gLS1kLS9zcw%3D%3D&btag=c0000e00018000&dy_q=1794676664&feature_id=46a7bb47b4fd1280f3d3825bf2b29388&l=2026111501174307A5837FB4B03EB7BCCA"
    }
  ],
  "width": 1080,
  "height": 1920,
  "ratio": "720p",
  "video_format": "mp4",
  "cover_url": "https://p11-sign.douyinpic.com/tos-cn-i-dy/b2754778d75b4ba9a090e5146d49ffe0~tplv-dy-resize-walign-adapt-aq:540:q75.webp?biz_tag=aweme_video&card_type=153&column_n=0&from=327834062&l=2026111501174307A5837FB4B03EB7BCCA&lk3s=138a59ce&s=PackSourceEnum_SEARCH&sc=cover&se=false&x-expires=1795885200&x-signature=BPm8IX2E0xvSJgk0XBXww8u128s%3D",
  "origin_cover_url": "https://p9-sign.douyinpic.com/tos-cn-p-0015/oUfCtB9vbnlkIgiYwyViXAUBBxEtwI9Be2CACA~tplv-dy-360p.jpeg?biz_tag=aweme_video&card_type=153&column_n=0&from=327834062&l=2026111501174307A5837FB4B03EB7BCCA&lk3s=138a59ce&s=PackSourceEnum_SEARCH&sc=origin_cover&se=false&x-expires=1795885200&x-signature=SAVZmpCzWKrPZk%2BZIfJgwV%2FUr6k%3D",
  "dynamic_cover_url": "https://p11-sign.douyinpic.com/obj/tos-cn-i-dy/b2754778d75b4ba9a090e5146d49ffe0?lk3s=138a59ce&x-expires=1795885200&x-signature=ALb6O5%2FdZcJ2tfzwbc6aUnLaCEk%3D&from=327834062_large&s=PackSourceEnum_SEARCH&se=false&sc=dynamic_cover&biz_tag=aweme_video&l=2026111501174307A5837FB4B03EB7BCCA",
  "images": null,
  "media_expires_at": "2026-11-14T18:18:24Z",
  "music_id": "7476472126975789862",
  "music_title": "@夏叔厨房创作的原声",
  "music_author": "夏叔厨房",
  "music_duration_s": 40,
  "music_original": true,
  "music_cover_url": "https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_db5201b1978282cc858811aac3622a25.jpeg?from=327834062",
  "video_tags": [
    "美食",
    "美食展示",
    "普通美食展示"
  ],
  "suggested_searches": [
    "懒人版番茄肥牛饭",
    "夏叔是什么级别的厨师",
    "肥牛是牛的哪个部位"
  ],
  "city_code": "110000",
  "province": "Beijing",
  "region": null,
  "place_name": null,
  "chapters": null,
  "is_ad": false,
  "is_life_item": false,
  "ai_label": null,
  "can_comment": true,
  "can_share": true,
  "can_duet": true,
  "can_stitch": true,
  "can_download": true,
  "is_private": false,
  "share_title": "葱烧肥牛拌饭太香了！ 解锁天花板级肥牛吃法！有手就能做，一招解决宅家下饭难题！#肥牛饭 #妈呀太香了 #肥牛的神仙吃法 #下饭神菜 #拌饭神器",
  "translation": null,
  "translation_note": null,
  "transcript": null,
  "transcript_minutes": null,
  "transcript_note": null,
  "video_file_url": null,
  "cover_file_url": null,
  "image_file_urls": null,
  "media_files": null,
  "files_note": null,
  "verdict": null,
  "rows_delivered": null,
  "loads": null,
  "sort_honoured": null,
  "time_window_honoured": null,
  "duration_honoured": null,
  "note": null,
  "scraped_at": "2026-11-14T17:17:51Z"
}
```

### Pricing

**Pay for the posts a run delivers**, plus one run start; the add-ons only on the rows that carry them. No platform usage is billed to you, and the post price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Post (`post`) | per 1,000 | $3.825 | $3.25125 | $2.6775 | $2.1423 |
| Stored video file (`video_file`) | per file | $0.021 | $0.021 | $0.021 | $0.021 |
| Transcript (`transcript`) | per started minute | $0.008 | $0.008 | $0.008 | $0.008 |
| Run start (`start`) | per run | $0.0081 | $0.0081 | $0.0081 | $0.0081 |

A post is **$3.825 per 1,000** on the Free plan ($0.003825 a post) and $3.25125 on Starter, with everything its row carries: caption, hashtags, time, exact likes, comments, shares and saves, the author with the exact follower count, the media links, cover, music, Douyin's tags and the place. Each run that delivers a charged post also pays the **run start, $0.0081 once**; a run that delivers none pays nothing at all. So the default input (two keywords, 10 posts each) costs $0.0846 on the Free plan and $0.073125 on Starter; 10 keywords at 50 posts each at most $1.9206 and $1.633725, and less when a keyword's depth this hour is under 50 (10 to 45 distinct posts a keyword on our test runs of builds 0.1.6–0.1.10, 2026-11-14). With `shouldDownloadVideos`, each MP4 stored in your key-value store is $0.021 on every plan (one rendition up to 80 MB; a file an earlier row or run already stored is a link, free); with `transcript`, each started minute of a video's transcribed speech is $0.008 on every plan (a 40-second video $0.008, a 2-minute video $0.016; a longer video gets its first 3 minutes, so $0.024 at most; a video with no speech, an image note and a failed transcript are free). The stored file is priced at what its storage costs us. Free: every input's own row, ads left out, posts a filter leaves out, a keyword Douyin finds nothing for, a missing video, a value that names nothing, the exact followers, `authorDetails`, the translation, covers and image-note images, a post another input already delivered (one row, one charge), and a run that delivered no post (no run start either). A run that stops early (a timeout, an abort, your charge limit) is charged for the posts it delivered.

Before the first request the log names the prices at your plan and the most the run can cost: `maxResultsPerQuery` a search or list, one post a video link, `maxItems` over the whole run, every post with the add-ons you asked, and never more than your charge limit. Enterprise plans have their own rates — the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **Inputs** — `keywords`: words to search (Chinese or any language). `videoUrls`: Douyin video or image-note links in any form (douyin.com/video/…, /note/…, iesdouyin.com/share/video/…, v.douyin.com short links, share texts, bare ids). `hashtags`: a hashtag link, its id, or its name (found through the posts of a search for it). `relatedTo`: videos whose related list to read. `hotTopics`: the top N topics of Douyin's hot-search board, each topic's videos. Each input is its own walk; one that finds nothing never stops the next.
- **What a row is** — `record_type` = `post`: one Douyin post, charged — `input`, `input_type` (keyword, video, hashtag, related, hot_topic), `keyword` (the search word, the hashtag or the hot topic) and `position` (its place in that walk) name the input that delivered it first. `record_type` = `target`: the free row of one input — `rows_delivered`, `loads`, the `verdict` (CAPPED: your count; TRUNCATED: Douyin's depth ended first, with the count; LIST_END: a hashtag or related list's own end, read twice; COMPLETE; PARTIAL: the run stopped while it was read) and its `note`, or the `status` that gave no post (`no_results`, `not_found`, `invalid_input`, `failed`, `not_read`).
- **How deep a keyword goes** — Douyin serves a logged-out search 8 to 16 posts a load; its own next-page call is walled. This Actor reads the keyword again on the same connection while each load adds new posts (up to 4), opens fresh connections in parallel (up to 4 at once) for a deep ask, and stops at your `maxResultsPerQuery` or when four fresh connections in a row add nothing. On our test runs of builds 0.1.6–0.1.10 (2026-11-14) a keyword gave 10 to 45 distinct organic posts, by keyword and by hour; ads are left out unless `includeAds`. A video link is read from the video's own page: caption, time, duration, cover, exact likes and comments, author and exact followers (Douyin's page carries no media link, music, shares or saves for it).
- **Add-ons** — `authorFollowers` (on by default, free) fills the exact follower count from the video's own page, one page per distinct author of the run. `authorDetails` (free) adds the author's exact post count, following and total likes. `translateTo` (free) adds a machine translation of each caption by Douyin's own translator, labelled in `translation_note`. `transcript` transcribes each video's speech (the audio track of the smallest rendition, a video over 3 minutes to its third minute, sent to one speech model: the words, with no word timing) into `transcript`, charged per started minute (`transcript_minutes` on the row); a video with no speech or an image note is free and `transcript_note` says why. Sung lyrics are transcribed like speech and charged; a fragment of four words or fewer over a clip of 8 s or more, a stock outro phrase ("Thanks for watching", "谢谢观看") and an answer longer than the clip can hold are free. `shouldDownloadVideos` saves each video's MP4 (the play rendition, no watermark; over 80 MB the largest rendition under the cap) and charges each stored file; `shouldDownloadCovers` and `shouldDownloadSlideshowImages` save the covers and image-note images free; `videoKvStoreName` names the store. A run cut by its time limit delivers the posts it read, each unfinished add-on marked `cut`.

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `keywords` | `array` | `[]` | Words to search on Douyin, one a line, in Chinese or any language (美食, iphone, 家常菜). A pasted Douyin search link is read as its keyword. Each keyword is its own search: one that finds nothing never stops the next. |
| `videoUrls` | `array` | `[]` | Douyin videos to read: a link (douyin.com/video/…, douyin.com/note/…, iesdouyin.com/share/video/…, a v.douyin.com short link), a share text that holds one, or a bare id. Each gives the post from its own page: caption, time, duration, cover, exact likes and comments, the author and the exact followers. |
| `hashtags` | `array` | `[]` | Hashtags whose video list to read: a link (douyin.com/hashtag/<id>), its id, or its name with or without # (a name is found through the posts of a search for it). |
| `relatedTo` | `array` | `[]` | Video links or ids whose related-videos list to read (the videos Douyin shows next to it). |
| `hotTopics` | `integer` | `0` | Read the videos of the top N topics of Douyin's hot-search board (抖音热榜) now, each up to the per-search cap. 0 = off. |
| `maxResultsPerQuery` | `integer` | `20` | The most posts each keyword, hashtag, related list or hot topic delivers. Douyin serves a search 8–16 posts a load and its own depth moves by the hour (10 to 45 distinct posts a keyword on our test runs of builds 0.1.6–0.1.10, 2026-11-14): a search that stops short says so on its row (TRUNCATED, with the count), never padded. 0 = as many as the source serves, up to 500. |
| `sort` | `general` / `most_liked` / `latest` | `"general"` | Douyin's own sort of a keyword search. The Actor checks the order on each answer's posts and sorts the answer itself where Douyin did not; the keyword's row says whether Douyin honoured it. |
| `publishTime` | `unlimited` / `one_day` / `one_week` / `half_year` | `"unlimited"` | Douyin's publish-time filter on a keyword search; every post outside the window is left out (free) whether Douyin applied the filter or not. |
| `duration` | `unlimited` / `under_1m` / `one_to_five` / `over_5m` | `"unlimited"` | Douyin's duration filter on a keyword search; every post outside the range is left out (free). Image notes have no length and are left out by this filter. |
| `contentType` | `all` / `videos` / `image_notes` | `"all"` | Videos, image notes (图文) or both. Image notes only: the keyword is searched as '<keyword> 图文', Douyin's own door to notes. |
| `includeAds` | `boolean` | `false` | Deliver the promoted posts of a search too, flagged is_ad true. Off: only organic posts (the ads' tracking links are never on a row). |
| `authorFollowers` | `boolean` | `true` | Fill author_followers with the exact count from the video's own page, one page per distinct author of the run (free). Off: faster, and author_followers stays null on search, hashtag and related posts. |
| `authorDetails` | `boolean` | `false` | Add the author's exact post count, following count and total likes (one small call per distinct author, free). |
| `translateTo` | `string` | `""` | A language code (en, de, ja): a machine translation of each caption by Douyin's own translator, next to the original (translation, translation_note). Empty = no translation. Free. |
| `transcript` | `boolean` | `false` | Transcribe each video's speech (its first 3 minutes on a longer video) with one speech model on the audio track of its smallest rendition: the text, with no word timing. Charged per started minute ($0.008 a minute, at most 3 a video); a video with no speech, an image note and a failed transcript are free. |
| `shouldDownloadVideos` | `boolean` | `false` | Save each video's MP4 (the play link's rendition, no watermark; the smallest rendition under the 80 MB cap when it is larger) to the run's key-value store; video_file_url is the stored file's link, which does not expire. Charged per video file stored. |
| `shouldDownloadCovers` | `boolean` | `false` | Save each post's cover image to the store (cover_file_url). Free. |
| `shouldDownloadSlideshowImages` | `boolean` | `false` | Save every image of an image note to the store (image_file_urls). Free. |
| `videoKvStoreName` | `string` | `""` | A named key-value store for the files (kept after the run's own store expires); empty = the run's store. |
| `maxItems` | `integer` | `0` | The most charged posts of the whole run; 0 = no cap beyond your charge limit. The input rows are free and not counted. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A keyword Douyin finds nothing for is not an error: it gets one free row with `status` = `no_results` (after a second fresh connection agrees), and the run goes on with the other inputs. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Why is there no play count?**

Douyin's web pages and APIs serve `play_count` 0 for every post logged out (124 of 124 search records we counted, and the leader's own column is 0). A column that is always 0 would mislead, so this Actor has none.

**Why did my keyword stop before my count?**

Douyin's logged-out search has a depth that moves by the hour: the same posts come back after a few dozen. When four fresh connections in a row add nothing, the keyword ends with `verdict` TRUNCATED and the count on its row, and you are charged for the posts delivered only. Add related keywords, a hashtag or the filters to reach more posts.

**Does Douyin honour the sort and the filters?**

Most hours, on the answers it computes for the request; some hours it answers every request for a keyword with one shared set. This Actor sends the filters, checks every post's own likes, date and length, leaves out the posts outside the window or the range (free), sorts each answer by your sort, and the keyword's row says whether Douyin honoured each filter.

**Can I get a creator's posts, a sound's videos, comments or the play count?**

Not in this Actor: Douyin serves a creator's post list, a sound's list and a collection only behind a login or a signature no logged-out client opens, so they are not offered. Comments are another object. Use video links, keywords and hashtags instead.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/douyin-search-scraper').call({"keywords": ["\u7f8e\u98df", "iphone"], "maxResultsPerQuery": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/douyin-search-scraper').call(run_input={'keywords': ['美食', 'iphone'], 'maxResultsPerQuery': 20})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/douyin-search-scraper --input '{"keywords": ["\u7f8e\u98df", "iphone"], "maxResultsPerQuery": 20}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~douyin-search-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"keywords": ["\u7f8e\u98df", "iphone"], "maxResultsPerQuery": 20}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/douyin-search-scraper` and ask, for example: "Search Douyin for 美食 and give me the 50 most liked videos of the last week with their likes, author follower counts and video links". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: `keyword`, `searchTerms`, `searchQueries`, `queries` as `keywords`; `startUrls`, `urls`, `postUrls`, `videoLinks` as `videoUrls`; `hashtag`, `challenges`, `tags`, `topics` as `hashtags`; `maxResults`, `resultsPerPage`, `resultsLimit`, `maxVideos` as `maxResultsPerQuery` (and more). An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/douyin-search-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Telegram Profile Scraper](https://apify.com/hyperbach/telegram-profile-scraper)** — Telegram channels, groups, bots and users by username or link, with the exact subscriber or member count.
- **[YouTube Channel Search Scraper](https://apify.com/hyperbach/youtube-channel-search-scraper)** — the YouTube channels a keyword finds, with subscribers, the exact video and view counts and the country.
- **[Threads Scraper](https://apify.com/hyperbach/threads-scraper)** — Threads profiles with the exact follower count, their posts and replies with view counts, and keyword and tag search, without a login.
- **[Substack Scraper](https://apify.com/hyperbach/substack-scraper)** — the posts of a Substack newsletter with the full text of free posts, the date, the paywall flag and the likes.
- **[Weibo Scraper](https://apify.com/hyperbach/weibo-scraper)** — Weibo posts, profiles, search, comments and the hot-search boards, without a login.
- **[Pinterest Search Scraper](https://apify.com/hyperbach/pinterest-search-scraper)** — the pins of a Pinterest search, with the link each pin points to, the image and the pinner.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

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

Words to search on Douyin, one a line, in Chinese or any language (美食, iphone, 家常菜). A pasted Douyin search link is read as its keyword. Each keyword is its own search: one that finds nothing never stops the next.

## `videoUrls` (type: `array`):

Douyin videos to read: a link (douyin.com/video/…, douyin.com/note/…, iesdouyin.com/share/video/…, a v.douyin.com short link), a share text that holds one, or a bare id. Each gives the post from its own page: caption, time, duration, cover, exact likes and comments, the author and the exact followers.

## `hashtags` (type: `array`):

Hashtags whose video list to read: a link (douyin.com/hashtag/<id>), its id, or its name with or without # (a name is found through the posts of a search for it).

## `relatedTo` (type: `array`):

Video links or ids whose related-videos list to read (the videos Douyin shows next to it).

## `hotTopics` (type: `integer`):

Read the videos of the top N topics of Douyin's hot-search board (抖音热榜) now, each up to the per-search cap. 0 = off.

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

The most posts each keyword, hashtag, related list or hot topic delivers. Douyin serves a search 8–16 posts a load and its own depth moves by the hour (10 to 45 distinct posts a keyword on our test runs of builds 0.1.6–0.1.10, 2026-11-14): a search that stops short says so on its row (TRUNCATED, with the count), never padded. 0 = as many as the source serves, up to 500.

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

Douyin's own sort of a keyword search. The Actor checks the order on each answer's posts and sorts the answer itself where Douyin did not; the keyword's row says whether Douyin honoured it.

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

Douyin's publish-time filter on a keyword search; every post outside the window is left out (free) whether Douyin applied the filter or not.

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

Douyin's duration filter on a keyword search; every post outside the range is left out (free). Image notes have no length and are left out by this filter.

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

Videos, image notes (图文) or both. Image notes only: the keyword is searched as '<keyword> 图文', Douyin's own door to notes.

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

Deliver the promoted posts of a search too, flagged is_ad true. Off: only organic posts (the ads' tracking links are never on a row).

## `authorFollowers` (type: `boolean`):

Fill author_followers with the exact count from the video's own page, one page per distinct author of the run (free). Off: faster, and author_followers stays null on search, hashtag and related posts.

## `authorDetails` (type: `boolean`):

Add the author's exact post count, following count and total likes (one small call per distinct author, free).

## `translateTo` (type: `string`):

A language code (en, de, ja): a machine translation of each caption by Douyin's own translator, next to the original (translation, translation_note). Empty = no translation. Free.

## `transcript` (type: `boolean`):

Transcribe each video's speech (its first 3 minutes on a longer video) with one speech model on the audio track of its smallest rendition: the text, with no word timing. Charged per started minute ($0.008 a minute, at most 3 a video); a video with no speech, an image note and a failed transcript are free.

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

Save each video's MP4 (the play link's rendition, no watermark; the smallest rendition under the 80 MB cap when it is larger) to the run's key-value store; video_file_url is the stored file's link, which does not expire. Charged per video file stored.

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

Save each post's cover image to the store (cover_file_url). Free.

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

Save every image of an image note to the store (image_file_urls). Free.

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

A named key-value store for the files (kept after the run's own store expires); empty = the run's store.

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

The most charged posts of the whole run; 0 = no cap beyond your charge limit. The input rows are free and not counted.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "keywords": [
    "美食",
    "iphone"
  ],
  "videoUrls": [],
  "hashtags": [],
  "relatedTo": [],
  "hotTopics": 0,
  "maxResultsPerQuery": 10,
  "sort": "general",
  "publishTime": "unlimited",
  "duration": "unlimited",
  "contentType": "all",
  "includeAds": false,
  "authorFollowers": true,
  "authorDetails": false,
  "translateTo": "",
  "transcript": false,
  "shouldDownloadVideos": false,
  "shouldDownloadCovers": false,
  "shouldDownloadSlideshowImages": false,
  "videoKvStoreName": "",
  "maxItems": 20
}
```

# Actor output Schema

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

All scraped records in the default dataset. One row per Douyin post (and one free row per input):

## `runSummary` (type: `string`):

How the run went: posts charged, video files, free rows, rows by status, each input (verdict, loads, what Douyin honoured), the add-on counts, the source counters (requests, page loads by connection class, the shared-set re-reads, crawler pages, list pages, dead and slow exits, bytes, seconds per call kind) and the memory watch.

# 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": [
        "美食",
        "iphone"
    ],
    "maxResultsPerQuery": 10,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/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": [
        "美食",
        "iphone",
    ],
    "maxResultsPerQuery": 10,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/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": [
    "美食",
    "iphone"
  ],
  "maxResultsPerQuery": 10,
  "maxItems": 20
}' |
apify call hyperbach/douyin-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hyperbach/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/yuMZfWPsRhc7ZqGMn/builds/Bpiol1oqmrL9fMbKo/openapi.json
