# Douyin Scraper: Videos, Profiles, Comments | $0.80/1K (`architekture/douyin-scraper`) Actor

Douyin scraper for public profiles, video links and comments: description, author with follower count, likes, comments, shares, saves, music, hashtags, cover and duration. No login, no cookies. Only-new mode for monitoring. Pay per result: $0.80 per 1,000 rows.

- **URL**: https://apify.com/architekture/douyin-scraper.md
- **Developed by:** [architek.earth](https://apify.com/architekture) (community)
- **Categories:** Social media, Agents, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.80 / 1,000 rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper: Videos, Profiles, Comments | $0.80/1K

**Recorded run: 1,000 rows (128 videos and 872 comments) from 3 douyin profiles in 231 seconds** (2026-11-17, build 0.1.3, run `vVHuxiBMW9a9o43UG`, 137 signed calls, 0 retries, 1,000 charged). A bounded sample, not a whole-catalogue benchmark.

architek.earth: an independent data studio. Pay-per-result scrapers with recorded runs, stable schemas and free status rows, built for people and AI agents.

**What's new**

- **2026-11-17**: First release. Douyin (抖音) profiles, video links and comments: description, posting time, author with follower count, likes, comments, shares, saves, music, hashtags, cover, duration and the video file URL. Only-new mode for monitoring and a free 20-row preview. Launch price $0.80 per 1,000 rows until 2026-12-31.

Douyin Scraper opens douyin.com the way a visitor does and reads the same data the web page loads for a guest. No douyin account, phone number, cookie or session string is involved, so there is nothing to log in, expire or get banned.

| Source | Data | From | Standout fields |
|---|---|---|---|
| Public douyin profiles, videos and comments (www.douyin.com) | Videos with engagement, comments | $0.80 / 1,000 rows | `stats`, `author.followers`, `music`, `hashtags`, `isPinned`, comment `replyCount` |

### ✅ Why choose this scraper

- **Engagement and follower count in every video row, no add-ons.** `stats` has likes, comments, shares and saves; `author.followers` is filled on profile and video rows alike. On the field leader, follower count is a paid add-on and "missing follower count" comes up in its closed issues.
- **Comments in the same run.** Switch on `includeComments` and every delivered video is followed by its top comments: text, likes, time, commenter nickname, reply count, region label, pinned and liked-by-author flags.
- **One price for every row.** A video row and a comment row both cost $0.0008. No start fee, no per-input fee.
- **Honest about what is not there.** Deleted, private or unknown videos and accounts end as free status rows that say which case applies, and the rest of the run continues.
- **Only new rows on a schedule.** With `incrementalMode` the scraper remembers delivered video and comment IDs under your `stateKey`; the next run delivers only new posts among a profile's latest `maxPostsPerProfile` and new comments among each video's top `maxCommentsPerVideo`. In recorded run `4CE1EFVqg4Sbb9gTJ` the same profile and video were checked again: 0 videos delivered again (a free `NO_NEW_POSTS` row), 2 comments that had newly entered the top-3 windows, 82 known rows skipped, 2 rows charged.

#### Tested head-to-head (2026-11-17)

Our numbers come from our own recorded runs only; the field numbers are public store data. We did not run any competing product.

| | This scraper | Field (public store data, 2026-11-17) |
|---|---|---|
| Price per 1,000 rows | $0.80, no start fee | Leader $7.00 ($4.00 on Gold); lowest priced top-10 member $1.00 plus $3.00 per 1,000 inputs |
| Follower count | In every video row at the base price | Optional paid add-on on the leader (`scrapeAdditionalUserInfo`) |
| Play count | Not available: douyin hides it on the web (`plays` is null) | Optional paid add-on on the leader (`scrapePlayCount`) |
| Comments | Included, same price per row | Not listed in the leader's README |
| Recorded runs | Release checks `vVHuxiBMW9a9o43UG`, `KJkeeEa7Dhv2S1yuz`, `JHirf0qUAzCpUmOVI`, `cEcPIBxVNFlYf6IpB`, `4CE1EFVqg4Sbb9gTJ` all succeeded. During the build, 4 of 16 runs ended early: 3 as free `BLOCKED` rows with exit 0 when douyin's page or a large post list did not arrive (`pmghNERxTfgLaFeph`, `0otgFddydCbPTVeie`, `dHhkne6jQ1CjllUMx`) and 1 failed (`ytoxFma1vh35TI9N1`); builds since 0.1.9 retry those cases on a new session and with a smaller list | 30-day non-success 0.5% (leader) |

16 runs are a small sample; they do not show that this scraper is more reliable than any other.

### ⚠️ Worth knowing up front

- **No keyword or hashtag search.** douyin asks visitors to log in before it searches, on every route we tested. This scraper takes profile links and video links only.
- **About 44 latest posts per profile.** For a visitor, douyin serves one page of a profile's posts (44 in our recorded runs, pinned posts first) and answers the next page with nothing. `maxPostsPerProfile` above that number cannot return more; `RUN_SUMMARY.profilesAtGuestDepth` counts profiles that hit this limit. For older videos, pass their links in `videoUrls`.
- **Play counts are mostly hidden.** douyin's web data reports 0 plays for nearly every video; the scraper returns `null` rather than a false zero. Likes, comments, shares and saves are real counters.
- **Comments are the top-level comments** in douyin's own order (most liked and pinned first), not replies. douyin repeats some top comments on later pages; the scraper skips repeats and never charges twice for one comment.
- **Short links are not followed.** `v.douyin.com/...` links from the share button need a browser redirect; open one and paste the `douyin.com/video/...` or `douyin.com/user/...` link it shows. A short link ends as a free `SHORT_LINK` status row.
- **douyin sometimes drops a large answer.** A post list or comment page that does not arrive is asked again on the same session, then on a new one, and a post list once more at douyin's own page size of 18. If it still does not arrive, the run stops with a free `BLOCKED` row and keeps what it delivered; with a `stateKey`, the next run continues there.
- `playUrl`, `coverUrl` and `music.url` point at douyin's CDN and expire; download the files soon after the run if you need them.
- Invalid links (`INVALID_URL`, `SHORT_LINK`), deleted or private videos (`VIDEO_UNAVAILABLE`), unknown or private accounts (`PROFILE_NOT_FOUND`, `PRIVATE_PROFILE`), accounts without posts (`NO_POSTS`), videos without comments (`NO_COMMENTS`), nothing new since the last run (`NO_NEW_POSTS`), a verification page from douyin (`BLOCKED`), and runs stopped by the time limit, your spending limit or the preview limit (`PARTIAL`, `BUDGET_LIMIT`, `PREVIEW_LIMIT`) each write a free status row (`"recordType": "status"`). A `BLOCKED` run keeps and charges only the rows it delivered and exits normally.

### ⚡ Try the example

The free preview returns up to 20 rows per run and never charges. It is on in the input form and off by default through the API.

Open the [input page](https://console.apify.com/actors/U89JOjSI4PWfC2pm5/input), switch to JSON, paste this and start:

```json
{
  "profileUrls": ["https://www.douyin.com/user/MS4wLjABAAAAjb1juHnK9tygA0nuoGgSEMW7ZuJzXNnTMx9XwaQh19k"],
  "videoUrls": ["https://www.douyin.com/video/7577614489533680959"],
  "maxPostsPerProfile": 10,
  "includeComments": true,
  "maxCommentsPerVideo": 5,
  "preview": true
}
```

Recorded preview run `JHirf0qUAzCpUmOVI`: 10 videos and 10 comments in 110 seconds, 0 charged, then a free `PREVIEW_LIMIT` row. Set `preview` to `false` for paid collection.

### ⚙️ Input

| Parameter | Type | Default | Description |
|---|---|---|---|
| `profileUrls` | array | none | `https://www.douyin.com/user/<id>` links or the bare ID (`MS4wLjABAAAA...`). Up to 100 per run. |
| `videoUrls` | array | none | `douyin.com/video/<id>`, `douyin.com/note/<id>`, links with `?modal_id=<id>`, `iesdouyin.com/share/video/<id>` or bare video IDs. Up to 1,000 per run. |
| `maxPostsPerProfile` | integer | `20` | Most video rows per profile, newest first with pinned posts on top (1 to 1,000; a visitor sees about 44). |
| `includeComments` | boolean | `false` | Also return comment rows for each delivered video. |
| `maxCommentsPerVideo` | integer | `20` | Most comment rows per video (1 to 5,000). |
| `incrementalMode` | boolean | `false` | Deliver only videos and comments that earlier runs with the same `stateKey` did not deliver, within the same windows (latest `maxPostsPerProfile` posts, top `maxCommentsPerVideo` comments). |
| `stateKey` | string | none | Any name for this collection. Needed for incremental mode; also lets a stopped run continue without paying twice. |
| `preview` | boolean | `false` (form: `true`) | Up to 20 rows, never charged. |
| `feedback` | string | none | Optional note for the maintainers. Logged and read by a human; never changes output. |

A video link in `profileUrls` is read as a video, and a profile link in `videoUrls` as a profile. Duplicates are merged and a video found twice is delivered and charged once.

#### Input recipes

Public example tasks are not published yet. Each recipe below is paste-ready JSON for the [input page](https://console.apify.com/actors/U89JOjSI4PWfC2pm5/input) (JSON tab).

- **Latest posts of two creators:** `{"profileUrls": ["https://www.douyin.com/user/MS4wLjABAAAAjb1juHnK9tygA0nuoGgSEMW7ZuJzXNnTMx9XwaQh19k", "https://www.douyin.com/user/MS4wLjABAAAAmIUcH6QuPwoTQYnt_xVUdKH4iCdmr1jj97jzPc77_MU"], "maxPostsPerProfile": 50}`
- **Video stats for a list of links:** `{"videoUrls": ["https://www.douyin.com/video/7577614489533680959"]}`
- **Top 100 comments of a video:** `{"videoUrls": ["https://www.douyin.com/video/7577614489533680959"], "includeComments": true, "maxCommentsPerVideo": 100}`
- **Daily creator monitor (new posts and new comments only):** `{"profileUrls": ["https://www.douyin.com/user/MS4wLjABAAAAjb1juHnK9tygA0nuoGgSEMW7ZuJzXNnTMx9XwaQh19k"], "includeComments": true, "maxCommentsPerVideo": 20, "incrementalMode": true, "stateKey": "daily-creator-watch"}`

### 🧱 Stable fields

These top-level fields keep their name and kind of value in every release. Fields are only ever added, never renamed or removed.

Video rows (`"recordType": "video"`):

| Field | Type | Meaning |
|---|---|---|
| `videoId` / `url` | string | douyin video ID and its `https://www.douyin.com/video/<id>` link (`/note/<id>` for photo posts). |
| `description` | string, nullable | Caption with hashtags as written. |
| `createTime` / `createTimestamp` | string / integer, nullable | Posting time, ISO 8601 UTC / Unix seconds. |
| `author` | object | `{id, secUid, uniqueId, nickname, followers, profileUrl}`; `followers` is null only where douyin hides it. |
| `stats` | object | `{plays, likes, comments, shares, collects}`; `plays` is null when douyin reports 0 (hidden). |
| `music` | object, nullable | `{id, title, author, url, durationSec}`. |
| `hashtags` | array | Hashtag names without `#`. |
| `coverUrl` / `playUrl` | string, nullable | Cover image and video file URLs (expire). |
| `durationSec` / `width` / `height` | number / integer, nullable | Video length in seconds and frame size. |
| `mediaType` / `imageUrls` | string / array | `video` or `images` (photo post) and the photo URLs. |
| `isPinned` | boolean | Pinned on the author's profile. |
| `source` / `inputRef` | string | `profile` or `video`, and the input link that produced the row. |
| `scrapedAt` | string | Read time, ISO 8601 UTC. |
| `changeType` | string | `"new"` on rows from incremental mode. |

Comment rows (`"recordType": "comment"`):

| Field | Type | Meaning |
|---|---|---|
| `commentId` / `videoId` / `videoUrl` | string | Comment ID and the video it belongs to. |
| `text` | string, nullable | Comment text with douyin's emoji codes (e.g. `[发呆]`). |
| `likes` / `replyCount` | integer, nullable | Likes on the comment / replies under it. |
| `createTime` / `createTimestamp` | string / integer, nullable | Comment time, ISO 8601 UTC / Unix seconds. |
| `authorNickname` / `authorId` | string, nullable | Commenter's display name and numeric ID. |
| `isPinned` / `likedByAuthor` | boolean | Pinned by the video author / liked by the video author. |
| `ipLocation` | string, nullable | Region label douyin shows next to the comment. |
| `inputRef` / `scrapedAt` / `changeType` | string | As on video rows. |

Status rows (`"recordType": "status"`, free): `inputRef`, `status`, `message`. `deliveryId` is a technical delivery key, not part of the contract. To have another field pinned, say so in `feedback`.

### 📦 Output example

Abridged real rows from run `KJkeeEa7Dhv2S1yuz` on 2026-11-17 (URLs shortened; values are a snapshot):

```json
{
  "recordType": "video",
  "videoId": "7577614489533680959",
  "url": "https://www.douyin.com/video/7577614489533680959",
  "description": "这个贵州五线小城，凭什么是中国“吃商”最高的城市？ 糟了，捅了贵州老吃家的窝了！\n#抖音美食班当季新菜单 #当季新菜单挑战赛 #贵州美食 #中国街头小吃 #老吃家",
  "createTime": "2025-11-28T09:00:00Z",
  "createTimestamp": 1764320400,
  "author": {
    "id": "75736792009",
    "secUid": "MS4wLjABAAAAjjwfy25gmtDlk8Wg6FNIBzHdHicG6BpZZNvWoTLL8S4",
    "uniqueId": "daoyueshe",
    "nickname": "盗月社食遇记",
    "followers": 2277394,
    "profileUrl": "https://www.douyin.com/user/MS4wLjABAAAAjjwfy25gmtDlk8Wg6FNIBzHdHicG6BpZZNvWoTLL8S4"
  },
  "stats": {
    "plays": null,
    "likes": 4076132,
    "comments": 163511,
    "shares": 5202653,
    "collects": 857347
  },
  "music": {
    "id": "7577614774507424547",
    "title": "@盗月社食遇记创作的原声",
    "author": "盗月社食遇记",
    "url": "https://lf26-music-east.douyinstatic.com/obj/...",
    "durationSec": 1082
  },
  "hashtags": [
    "抖音美食班当季新菜单",
    "当季新菜单挑战赛",
    "贵州美食",
    "中国街头小吃",
    "老吃家"
  ],
  "coverUrl": "https://p3-pc-sign.douyinpic.com/image-cut-to...",
  "durationSec": 1082.5,
  "mediaType": "video",
  "imageUrls": [],
  "playUrl": "https://v26-webf.douyinvod.com/025fd8b636b4c4...",
  "width": 3840,
  "height": 2160,
  "isPinned": false,
  "source": "video",
  "inputRef": "https://www.douyin.com/video/7577614489533680959",
  "scrapedAt": "2026-11-17T07:08:41Z"
}
```

```json
{
  "recordType": "comment",
  "commentId": "7578191179746788145",
  "videoId": "7577614489533680959",
  "videoUrl": "https://www.douyin.com/video/7577614489533680959",
  "text": "这个老板娘真的很好看，她说出五十岁的时候我真的震惊了[发呆]",
  "likes": 36618,
  "createTime": "2025-11-29T16:52:14Z",
  "createTimestamp": 1764435134,
  "authorNickname": "韩富贵～",
  "authorId": "95194827309",
  "replyCount": 273,
  "isPinned": false,
  "likedByAuthor": false,
  "ipLocation": "湖南",
  "inputRef": "https://www.douyin.com/video/7577614489533680959",
  "scrapedAt": "2026-11-17T07:08:44Z"
}
```

Free status rows from run `cEcPIBxVNFlYf6IpB`:

```json
{"recordType": "status", "inputRef": "https://v.douyin.com/iRNBho6u/", "status": "SHORT_LINK", "message": "Short links (v.douyin.com) are not followed. Open it in a browser and paste the douyin.com/video/... or douyin.com/user/... link it opens"}
{"recordType": "status", "inputRef": "https://www.douyin.com/user/MS4wLjABAAAAzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz", "status": "PROFILE_NOT_FOUND", "message": "douyin has no account with this ID (it may be deleted or banned)"}
{"recordType": "status", "inputRef": "https://www.douyin.com/video/7296149517517212980", "status": "VIDEO_UNAVAILABLE", "message": "douyin does not show this video to visitors (deleted, private or never existed; reason: status_self_see)"}
{"recordType": "status", "inputRef": "1234567890123456789", "status": "VIDEO_UNAVAILABLE", "message": "douyin does not show this video to visitors (deleted, private or never existed; reason: core_dep)"}
```

### 🧠 Advanced usage

**Creator monitoring.** Schedule a run with `incrementalMode: true`, one `stateKey` per watch list and `includeComments: true`. Each run looks at the profile's latest `maxPostsPerProfile` posts and the top `maxCommentsPerVideo` comments of each of them, and delivers only what earlier runs did not, so a new comment that climbs into the top comments of an older post is caught too.

**Completeness.** `RUN_SUMMARY` in the run's key-value store has `status` (`COMPLETE`, `PARTIAL`, `BUDGET_LIMIT`, `PREVIEW_LIMIT`), video and comment counts, rows charged, rows skipped as already known, `profilesAtGuestDepth`, and the signed-call count. `PARTIAL` means a `BLOCKED` or `SOURCE_CHANGED` status row or a stop at the time limit.

**Stopped runs.** With a `stateKey`, run the same input again: finished links are skipped and rows already delivered are never delivered or charged again.

**Speed.** One browser page signs every call; video details and comment pages are read five at a time. The recorded 1,000-row run took 231 seconds.

### 🔌 Integrations

Results land in a dataset you can export as JSON, CSV or Excel, send to Google Sheets, or pass to Make, Zapier or n8n; a webhook can fire when a run finishes, and a schedule runs it on a timetable.

#### n8n

Add an **HTTP Request** node: method `POST`, URL `https://api.apify.com/v2/acts/architekture~douyin-scraper/run-sync-get-dataset-items?timeout=300&maxTotalChargeUsd=0.50`, authentication Header Auth with `Authorization: Bearer <your token>`, body JSON:

```json
{"profileUrls": ["https://www.douyin.com/user/MS4wLjABAAAAjb1juHnK9tygA0nuoGgSEMW7ZuJzXNnTMx9XwaQh19k"], "includeComments": true, "maxCommentsPerVideo": 10, "incrementalMode": true, "stateKey": "n8n-douyin-watch"}
```

The node returns the rows as items. Add a **Switch** node on `recordType` (`video`, `comment`, `status`) and route videos and comments to a sheet, Slack or a database. Put a **Schedule Trigger** in front once the first result looks right.

#### Make

Add **HTTP: Make a request**: method `POST`, the same URL, header `Authorization: Bearer <your token>`, body type raw, content type `application/json`, the same JSON body, and "Parse response" on. Follow it with an **Iterator** over the returned array and a **Router** with filters on `recordType`. Do not retry an ambiguous POST automatically; check first whether a run was created.

### 💸 Pricing

Pay per result. Platform and proxy usage are included. Status rows, unavailable videos and accounts, repeated comments and failed calls are free.

| Event | Price | What it covers |
|---|---|---|
| Free preview | $0 | Up to 20 rows per run with `preview: true`. |
| `row` | $0.80 / 1,000 rows ($0.0008 each) | One delivered video row or comment row. |

Launch price until 2026-12-31. 1,000 rows cost $0.80; the $5 monthly free credit covers about 6,250 rows. Silver plans pay 10% less and Gold and above 20% less. Set a maximum cost per run to cap any run; without one, a run is capped at what its input can produce.

### ❓ FAQ

**Do I need a douyin account or cookies?** No. The scraper reads what douyin shows a visitor; nothing is logged in.

**Can it search douyin by keyword or hashtag?** No. douyin requires a login for search, so this scraper does not offer it. Use profile or video links.

**Why do I get about 44 videos per profile?** douyin shows a visitor one page of a profile's posts. Older videos can still be read by their links in `videoUrls`.

**Why is `plays` null?** douyin's web data reports zero plays for almost every video; a null tells you the number is hidden rather than zero.

**Does it download video files?** It returns `playUrl`, `coverUrl` and `imageUrls`. Those links expire, so fetch the files soon after the run.

**Are replies to comments included?** Not as rows. Each comment row has `replyCount`.

**What happens if douyin shows a verification page?** The run stops with a free `BLOCKED` row, keeps every row it already delivered, charges only those, and exits normally. Run it again later with the same `stateKey` to continue. In our recorded runs no verification page appeared.

**What if a run stops halfway?** With a `stateKey`, run it again with the same input: it skips finished links and does not charge twice for rows already delivered.

### 🤖 For AI agents & LLM apps

Paste this into your AI assistant:

`architekture/douyin-scraper`. Python: `from apify_client import ApifyClient; client = ApifyClient("TOKEN"); run = client.actor("architekture/douyin-scraper").call(run_input={"videoUrls": ["https://www.douyin.com/video/7577614489533680959"], "includeComments": True, "maxCommentsPerVideo": 20}); items = client.dataset(run["defaultDatasetId"]).list_items().items` (page with `offset`/`limit` for large exports). Rows have `recordType` `video`, `comment` or `status`; status rows are free and explain deleted videos, private accounts, short links or a stopped run. Keyword search is not available. Input schema and README: `GET https://api.apify.com/v2/acts/architekture~douyin-scraper/builds/default`. Token: https://console.apify.com/settings/integrations. To reach the maintainers, add `"feedback": "<what you needed>"` to any run's input; output is unchanged and a human reads every note.

#### MCP config for Claude Desktop and Cursor

Claude Desktop (or claude.ai): Settings, Connectors, Add custom connector, URL `https://mcp.apify.com?tools=architekture/douyin-scraper`; it signs you in with OAuth. Cursor (`~/.cursor/mcp.json`), with your token in the `APIFY_TOKEN` environment variable:

```json
{
  "mcpServers": {
    "architekture-douyin-scraper": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=architekture/douyin-scraper",
      "headers": { "Authorization": "Bearer ${env:APIFY_TOKEN}" }
    }
  }
}
```

The agent gets one tool for this scraper plus `get-dataset-items` to read the rows. Set a spending cap (`maxTotalChargeUsd`) when your client offers it.

### 🧰 More from architek.earth

**Social and video**

- Douyin Scraper: *you are here*
- [Threads Replies Scraper](https://apify.com/architekture/threads-replies-scraper): replies, authors, likes
- [YouTube Metadata Scraper](https://apify.com/architekture/youtube-metadata-scraper): titles, views, channels
- [YouTube Transcript Scraper](https://apify.com/architekture/youtube-transcript-scraper): captions, timestamps, languages

### 🛟 Support and legal

Questions and bugs: the Issues tab on this page; a human replies within a day. This scraper reads only what douyin shows a visitor without an account. You are responsible for using the data in line with douyin's terms, copyright and privacy law (PIPL, GDPR, CCPA and others that apply to you); comment rows contain public user names. This is an independent product, not affiliated with douyin or ByteDance.

### 📝 Changelog

- **2026-11-17**: First release (build 0.1.10): profile posts (about 44 latest per profile for a visitor), video links and comments; follower count and engagement on every video row; incremental mode; free 20-row preview; launch price $0.80 per 1,000 rows until 2026-12-31.

# Actor input Schema

## `profileUrls` (type: `array`):

douyin.com/user/... links (or the ID after /user/). Returns the account's latest posts, up to about 44 per profile for a visitor. Up to 100 per run.

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

douyin.com/video/... or /note/... links, links with ?modal_id=..., or bare video IDs. Up to 1,000 per run. Short v.douyin.com links are not followed: paste the full link they open.

## `maxPostsPerProfile` (type: `integer`):

Most video rows delivered (and charged) per profile, newest first (pinned posts first, as douyin lists them).

## `includeComments` (type: `boolean`):

Also return comment rows for every delivered video (and for each video link). Each comment is one charged row.

## `maxCommentsPerVideo` (type: `integer`):

Most comment rows per video, in douyin's order (top comments first). Used only with Include comments.

## `preview` (type: `boolean`):

Deliver up to 20 rows per run without any charge. Switch off for paid collection.

## `incrementalMode` (type: `boolean`):

Deliver only posts (among the latest maxPostsPerProfile) and comments (among the top maxCommentsPerVideo) that earlier runs with the same stateKey did not deliver. For scheduled monitoring.

## `stateKey` (type: `string`):

Any name for this collection (e.g. brand-watch). Needed for incremental mode; also lets a stopped run continue without paying twice.

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

Optional. Logged and read by a human; never changes the output.

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.douyin.com/user/MS4wLjABAAAAjb1juHnK9tygA0nuoGgSEMW7ZuJzXNnTMx9XwaQh19k"
  ],
  "videoUrls": [
    "https://www.douyin.com/video/7577614489533680959"
  ],
  "maxPostsPerProfile": 10,
  "includeComments": false,
  "maxCommentsPerVideo": 10,
  "preview": true,
  "incrementalMode": false
}
```

# Actor output Schema

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

One row per delivered video or comment, plus free status rows.

## `summary` (type: `string`):

RUN_SUMMARY record: status and counts.

# 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 = {
    "profileUrls": [
        "https://www.douyin.com/user/MS4wLjABAAAAjb1juHnK9tygA0nuoGgSEMW7ZuJzXNnTMx9XwaQh19k"
    ],
    "videoUrls": [
        "https://www.douyin.com/video/7577614489533680959"
    ],
    "maxPostsPerProfile": 10,
    "maxCommentsPerVideo": 10,
    "preview": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("architekture/douyin-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 = {
    "profileUrls": ["https://www.douyin.com/user/MS4wLjABAAAAjb1juHnK9tygA0nuoGgSEMW7ZuJzXNnTMx9XwaQh19k"],
    "videoUrls": ["https://www.douyin.com/video/7577614489533680959"],
    "maxPostsPerProfile": 10,
    "maxCommentsPerVideo": 10,
    "preview": True,
}

# Run the Actor and wait for it to finish
run = client.actor("architekture/douyin-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 '{
  "profileUrls": [
    "https://www.douyin.com/user/MS4wLjABAAAAjb1juHnK9tygA0nuoGgSEMW7ZuJzXNnTMx9XwaQh19k"
  ],
  "videoUrls": [
    "https://www.douyin.com/video/7577614489533680959"
  ],
  "maxPostsPerProfile": 10,
  "maxCommentsPerVideo": 10,
  "preview": true
}' |
apify call architekture/douyin-scraper --silent --output-dataset

```

## MCP server setup

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