# Douyin Scraper (抖音): Videos, Comments, Users, Search & HD (`openclawai/douyin-scraper`) Actor

Scrape Douyin (抖音): user videos, video details, profiles, comments + replies, fans, following, keyword search, hashtag and music videos, hot search and HD no-watermark download links. No login or cookies. Pay only per result.

- **URL**: https://apify.com/openclawai/douyin-scraper.md
- **Developed by:** [Pika Choo](https://apify.com/openclawai) (community)
- **Categories:** Social media, Videos, AI
- **Stats:** 5 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.50 / 1,000 douyin videos

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, Comments, Users, Search & HD

Scrape Douyin (抖音, the Chinese TikTok) without login: user videos, comments with replies, fans, search, hot search and HD links. **$2.50 per 1,000 videos.**

### 📋 Table of contents

- [What does it do?](#what-does-it-do)
- [Features](#features)
- [Pricing](#pricing)
- [Input](#input)
- [Output](#output)
- [Troubleshooting](#troubleshooting)
- [Who uses this Douyin Scraper?](#who-uses-this-douyin-scraper)
- [Use cases](#use-cases)
- [FAQ](#faq)
- [API, Python, JavaScript and MCP](#api-python-javascript-and-mcp)

### What does it do?

Douyin Scraper collects public data from Douyin, China's biggest short-video app. Give it share links, profile links, `sec_user_id` values or Chinese keywords and it returns videos with full stats, creator profiles, comment threads, fans and following lists, search results, hashtag and music feeds, the hot-search board and full-quality download links. No Douyin account, no Chinese phone number, no cookies and no proxy.

### Features

#### 🎬 What you can scrape on Douyin

| Mode | What you give it | What you get |
|---|---|---|
| `user_posts` | profile link / user ID | User posts — all videos from a profile |
| `video_detail` | video or post link | Video details — one video per link |
| `user_profile` | profile link / user ID | User profile — bio, followers, likes |
| `video_comments` | video or post link | Video comments (+ replies) |
| `search_videos` | keywords | Search videos (keywords) |
| `search_users` | keywords | Search users (keywords) |
| `search_hashtags` | keywords | Search hashtags (keywords) |
| `search_music` | keywords | Search sounds / music (keywords) |
| `hashtag_videos` | #hashtag, tag link or ID | Hashtag videos — videos under a hashtag |
| `music_videos` | sound link or ID | Sound videos — videos using a sound |
| `followers` | profile link / user ID | Followers of an account |
| `following` | profile link / user ID | Accounts an account follows |
| `user_likes` | profile link / user ID | Liked videos (only if public) |
| `hot_search` | nothing | Hot search terms |
| `live_info` | profile or live room link | Live room info |
| `hd_video_link` | video link | Douyin HD video download link |

#### ✨ Smart features

- `v.douyin.com` share links are resolved for you
- Replies are placed right under their comment (comments with 3+ replies)
- HD no-watermark download links (paid plans)
- Chinese keyword search for videos, users, hashtags and music
- Hot-search board in one call
- Duplicates are removed automatically
- 🔓 No login, no cookies, no proxy setup
- 💸 Pay only for results: hint and error rows are free

#### 🧭 More scrapers from us

- [TikTok, Douyin & Bilibili Scraper (all platforms in one run)](https://apify.com/openclawai/tiktok-douyin-bilibili-scraper)
- [TikTok Scraper](https://apify.com/openclawai/tiktok-scraper)
- [Bilibili Scraper](https://apify.com/openclawai/bilibili-scraper)
- [Kuaishou Scraper (快手)](https://apify.com/openclawai/kuaishou-scraper)

### Pricing

You pay per result. No compute or proxy charges on top, and hint and error rows are free.

| What you get | Price per 1,000 |
|---|---|
| 🎶 Douyin videos (any mode) | **$2.50** |
| 💬 Comments and replies | **$0.50** |
| 👥 Accounts from fans, following or user search | **$1.00** |
| 🔍 Profiles and live rooms | **$1.50** |
| #️⃣ Hashtags, music, hot-search terms | **$1.00** |
| ⬇️ HD download link (per video) | **$8.00** |

#### How much does it cost to scrape Douyin data?

| Job | Cost |
|---|---|
| 1,000 Douyin videos | $2.50 |
| 10,000 Douyin videos | $25 |
| 100,000 Douyin videos | $250 |
| 1,000 videos + 20,000 comments | $12.50 |

Set **Max cost per run** in the run options and the actor stops cleanly at that amount.

#### 🆓 Free plan

On the free Apify plan each run returns up to 10 results, so you can check the data before you buy. Comment replies need a paid plan. Any paid Apify plan removes the limit.

#### ⚡ Speed

List modes return about 20 rows per request, so 1,000 videos usually take one to two minutes.

### Input

| Field | What it does |
|---|---|
| `mode` | Links, @usernames or IDs: user_posts, video_detail, user_profile, video_comments, hashtag_videos, music_videos, followers, following, user_likes, live_info, hd_video_link. Keywords: search_videos, search_users, search_hashtags, search_music. No input: hot_search. |
| `urls` | One per line: video links, profile links (douyin.com/user/…), sec_user_id, hashtag or music IDs. Share links (v.douyin.com) work too. |
| `queries` | Keywords for the search modes, one per line. Chinese keywords give the best results. |
| `maxItems` | Stop after this many rows per link or keyword (comments include their replies). |
| `includeReplies` | In video_comments mode, also fetch the replies under each comment that has 3 or more replies (TikTok, Douyin, Bilibili). Replies are billed as comments. Paid Apify plans only. |
| `downloadVideos` | Add the direct video file URL to each video row when the platform provides one. |

#### 🧪 Example inputs

**Latest 100 videos from a creator**

```json
{"mode": "user_posts", "urls": ["https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"], "maxItems": 100}
```

**Search Douyin videos**

```json
{"mode": "search_videos", "queries": ["咖啡", "露营"], "maxItems": 200}
```

**Comments with replies**

```json
{"mode": "video_comments", "urls": ["https://www.douyin.com/video/7448118827402972455"], "maxItems": 500, "includeReplies": true}
```

**Fans of a creator**

```json
{"mode": "followers", "urls": ["MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70"], "maxItems": 1000}
```

**Today's hot-search board**

```json
{"mode": "hot_search"}
```

### Output

Every row uses the same fields. Export as JSON, CSV, Excel, XML or HTML.

#### 📦 Example output

```json
{
  "platform": "douyin",
  "item_type": "video",
  "item_id": "7153549929326120227",
  "url": "https://www.douyin.com/video/7153549929326120227",
  "title": "只对你发过的誓  只被你看过的痣#le",
  "description": "只对你发过的誓  只被你看过的痣#le",
  "author_id": "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE",
  "author_name": "songzhen",
  "author_username": "020112sz",
  "duration_sec": 14.0,
  "cover_url": "https://p5-ex-gddgtc-sign.douyinpic.com/tos-cn-i-0813/96130846637a45f4…",
  "video_url_nowm": "https://v3-music.douyinstatic.com/53ec2948446e2952809f37138889f948/6ae…",
  "music_title": "那奇沃夫_Cartier",
  "music_author": "DAMItime",
  "hashtags": [
    "le"
  ],
  "created_at": "2022-10-12T09:07:20+00:00",
  "play_count": 0,
  "like_count": 1418337,
  "comment_count": 60715,
  "share_count": 117880,
  "collect_count": 71978,
  "mode": "user_posts",
  "source_input": "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE",
  "scraped_at": "2026-10-08T19:59:26.391257+00:00",
  "raw": {
    "…": "full original record"
  }
}
```

#### 📤 Main fields

| Field | Description |
|---|---|
| `platform`, `item_type`, `mode`, `source_input` | Where the row came from and what it is (`video`, `user`, `comment`, `hint`, `error`…) |
| `item_id`, `url` | Native ID and a link back to the item |
| `title`, `description`, `hashtags`, `created_at` | Text and publish time (ISO 8601) |
| `author_id`, `author_name`, `author_username` | Creator or account |
| `play_count`, `like_count`, `comment_count`, `share_count`, `collect_count` | Engagement counts |
| `raw` | The full original record, every field the platform returned |
| `error_message` | Explanation on free `hint` / `error` rows |

### Troubleshooting

#### Search returns odd results?

Douyin search works best with Chinese keywords. Try the Chinese term for your topic.

#### Getting no results?

Check that the link or username is public and typed correctly. Private accounts, deleted posts and hidden lists return a free `hint` row that says why. Keyword modes need the **Keywords** field, link modes need **Links**.

#### Getting fewer results than `maxItems`?

The platform ran out of items for that input (a small profile, a niche keyword), or the run reached its **Max cost per run** limit. The log says which one.

#### Some fields are empty?

Platforms don't return every field for every item. Everything the platform did return is kept in `raw`.

#### Video or image links stopped working?

Media URLs from these platforms expire after a few hours. Download files right after the run.

#### The run failed or shows an error row?

Retry once: the platforms sometimes refuse a request for a few minutes. If it keeps failing, open an issue with the run link and we'll fix it fast.

### Who uses this Douyin Scraper?

#### 🌏 Brands entering China

Track competitors, KOLs and trends on Douyin.

#### 🧑‍🤝‍🧑 KOL agencies

Pull creator profiles, fans and engagement for campaign planning.

#### 📊 Market researchers

Read comments for sentiment on products and brands.

#### 🎬 Content teams

Download reference videos in full quality.

#### 🤖 AI and data teams

Collect Chinese captions and comments as training data.

#### 🧑‍💻 Developers and AI agents

Bring Douyin data into apps through the API or MCP.

### Use cases

#### KOL discovery

Search users by keyword, then pull profiles and recent videos to rank creators.

#### China trend monitoring

Pull the hot-search board daily and follow the topics that rise.

#### Comment sentiment

Collect comment threads on product videos and score them.

#### Cross-market research

Compare the same niche on Douyin and TikTok with the [TikTok Scraper](https://apify.com/openclawai/tiktok-scraper).

### FAQ

#### Can I scrape Douyin without an account?

Yes. No Douyin login, Chinese phone number, cookies or API keys.

#### Does Douyin have an official API?

Douyin's open platform is for apps working with their own logged-in users and needs a Chinese business entity. This actor needs nothing.

#### Do I need a Chinese proxy?

No.

#### Can I scrape Douyin comments and replies?

Yes. Use `video_comments` with **Include comment replies** on.

#### How much does it cost to scrape 10,000 Douyin videos?

About $25, at $2.50 per 1,000 videos.

#### Can I download Douyin videos without a watermark?

Video rows include a no-watermark URL when available; `hd_video_link` gives full-quality files.

#### Can I scrape a creator's fans?

Yes, with `followers` and `following`, when the lists are public.

#### Can I search Douyin in Chinese?

Yes, and it gives the best results.

#### Is there a free tier?

Yes. On the free Apify plan each run returns up to 10 results. HD links need a paid plan.

#### Can I use it from Python, JavaScript or an AI agent?

Yes, through the Apify API, the client libraries, or MCP.

### API, Python, JavaScript and MCP

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("openclawai/douyin-scraper").call(run_input={"mode": "user_posts", "urls": ["https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"], "maxItems": 100})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**JavaScript**

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

const client = new ApifyClient({ token: "YOUR_APIFY_TOKEN" });
const run = await client.actor("openclawai/douyin-scraper").call({"mode": "user_posts", "urls": ["https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"], "maxItems": 100});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**MCP** (Claude, ChatGPT, Cursor and other MCP clients): `https://mcp.apify.com/?tools=openclawai/douyin-scraper`

Works with Zapier, Make, n8n, Google Sheets, Slack, webhooks and scheduled runs.

### 🛡️ Legal

Collects **public** data only. You are responsible for complying with Douyin's terms and with privacy laws such as GDPR, CCPA and PIPL when you store personal data.

### ⭐ Support

Something not working? Check the `hint` / `error` rows, then open an issue with the run link. We reply fast.

# Actor input Schema

## `mode` (type: `string`):

Links, @usernames or IDs: user_posts, video_detail, user_profile, video_comments, hashtag_videos, music_videos, followers, following, user_likes, live_info, hd_video_link. Keywords: search_videos, search_users, search_hashtags, search_music. No input: hot_search.

## `urls` (type: `array`):

One per line: video links, profile links (douyin.com/user/…), sec_user_id, hashtag or music IDs. Share links (v.douyin.com) work too.

## `queries` (type: `array`):

Keywords for the search modes, one per line. Chinese keywords give the best results.

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

Stop after this many rows per link or keyword (comments include their replies).

## `includeReplies` (type: `boolean`):

In video_comments mode, also fetch the replies under each comment that has 3 or more replies (TikTok, Douyin, Bilibili). Replies are billed as comments. Paid Apify plans only.

## `downloadVideos` (type: `boolean`):

Add the direct video file URL to each video row when the platform provides one.

## Actor input object example

```json
{
  "mode": "user_posts",
  "urls": [
    "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"
  ],
  "maxItems": 20,
  "includeReplies": false,
  "downloadVideos": true
}
```

# Actor output Schema

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

No description

# 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 = {
    "mode": "user_posts",
    "urls": [
        "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("openclawai/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 = {
    "mode": "user_posts",
    "urls": ["https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("openclawai/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 '{
  "mode": "user_posts",
  "urls": [
    "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE"
  ],
  "maxItems": 20
}' |
apify call openclawai/douyin-scraper --silent --output-dataset

```

## MCP server setup

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