# Douyin Video & Creator Scraper - Chinese TikTok Trends & Audio (`madeingermany/douyin-scraper`) Actor

Scrape Douyin (抖音, China's TikTok) — no login, no browser. Full video detail (likes, shares, collects, comments, audio), creator profiles, and comments.

- **URL**: https://apify.com/madeingermany/douyin-scraper.md
- **Developed by:** [Made In Germany](https://apify.com/madeingermany) (community)
- **Categories:** Videos, Social media
- **Stats:** 5 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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 — Chinese TikTok Videos, Influencer Profiles & Viral Trends 🎵 🇨🇳

High-performance, pure HTTP Apify Actor to extract video details, creator profiles, metrics, and comment threads from **Douyin (抖音)** — China's original TikTok platform with over 750M+ daily active users.

No login required, no heavy browser overhead, and zero configuration needed.

***

### ⚡ Why Use This Douyin Scraper?

- **Pure HTTP Fast-Path Engine**: Uses Crawlee and `got-scraping` with automated ByteDance session token registration (`ttwid`) and cryptographic client signing (`a_bogus`, `sm3`).
- **No Headless Browser Overhead**: Up to **10x faster** and consumes **90% less RAM** than Playwright or Puppeteer scrapers.
- **No Login / Account Required**: Extract public videos, trending feeds, creator profiles, and comment threads out of the box.
- **Clean Unified Schema**: Outputs normalized, production-grade JSON records with video metrics, author information, download links, and comment threads.
- **Pay-Per-Event (PPE) Pricing**: Predictable, ultra-low cost billing — pay only for what you extract!

***

### 💰 Pricing (Pay-Per-Event)

This actor operates on a pay-as-you-go **Pay-Per-Event (PPE)** pricing model. You only pay for what you extract:

| Event Name | Purpose | Price (USD) | Description |
|---|---|---|---|
| **`apify-actor-start`** | Actor Start | `$0.005` | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |
| **`apify-default-dataset-item`** | Result | `$0.003` | One scraped result in the default dataset — a video, a creator profile, or a comment. |

***

### 📊 Extracted Data

| Data Type | Description | Key Extracted Fields |
|---|---|---|
| 🎬 **Videos** | Complete post metadata & engagement | `awemeId`, `desc`, `authorNickname`, `diggCount`, `commentCount`, `shareCount`, `videoUrl`, `downloadUrls`, `coverUrl`, `duration`, `hashtags`, `musicTitle` |
| 👤 **Creators** | Creator profile & analytics | `secUid`, `nickname`, `signature`, `followers`, `following`, `totalLikes`, `videoCount`, `avatarUrl`, `ipLocation` |
| 💬 **Comments** | Top-level comment discussions | `commentId`, `awemeId`, `text`, `likes`, `replyCount`, `userName`, `userSecUid`, `ipLocation`, `createTime` |

***

### ⚙️ Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrls` | Array | `[{"url": "https://www.douyin.com/"}]` | Douyin video URLs, user profiles, short links (`v.douyin.com`), or bare video IDs. |
| `searchQuery` | String | `"Trending Videos"` | Filter label or category mode for the run. |
| `maxItems` | Integer | `50` | Maximum number of total records (videos, profiles, comments) to scrape. |
| `includeComments` | Boolean | `false` | When enabled, scrapes comment threads for each video URL. |
| `maxComments` | Integer | `50` | Maximum comments collected per video when `includeComments` is true. |
| `proxy` | Object | `{ "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }` | Apify Proxy configuration (Residential proxies recommended for high throughput). |
| `douyinCookie` | String | `""` | Optional browser cookie from `douyin.com` if custom authentication is desired. |

#### Sample Input

```json
{
  "startUrls": [
    { "url": "https://www.douyin.com/video/7615930241370348219" },
    { "url": "https://www.douyin.com/user/MS4wLjABAAAAUT_tvNpyI5-tObkvU2xaaqyeDpek5UJXLG8mePjYxTQ" }
  ],
  "includeComments": true,
  "maxComments": 20,
  "maxItems": 100,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

***

### 📦 Output Format

#### Video Record

```json
{
  "type": "video",
  "awemeId": "7615930241370348219",
  "desc": "夜宵简单吃个长沙滋啦冒油的炭烤牛肋排和三文鱼牛肉卷… #饭搭子 #深夜放毒 #寻味烟火气 #长沙美食",
  "authorNickname": "章章干嘛呢",
  "diggCount": 139847,
  "commentCount": 11025,
  "shareCount": 598443,
  "videoUrl": "https://v26-web.douyinvod.com/...",
  "url": "https://www.douyin.com/video/7615930241370348219",
  "isImagePost": false,
  "createTime": "2026-03-11T09:39:01.000Z",
  "duration": 12600,
  "hashtags": ["饭搭子", "深夜放毒", "寻味烟火气", "长沙美食"],
  "likes": 139847,
  "comments": 11025,
  "shares": 598443,
  "collects": 13776,
  "authorName": "章章干嘛呢",
  "authorSecUid": "MS4wLjABAAAAUT_tvNpyI5-tObkvU2xaaqyeDpek5UJXLG8mePjYxTQ",
  "authorFollowers": 62679,
  "coverUrl": "https://p3-pc.douyinpic.com/...",
  "videoUrls": ["https://v26-web.douyinvod.com/..."],
  "downloadUrls": ["https://v26-web.douyinvod.com/..."],
  "width": 1080,
  "height": 1920,
  "musicTitle": "@章章干嘛呢创作的原声",
  "shareUrl": "https://www.douyin.com/video/7615930241370348219"
}
```

#### Creator Profile Record

```json
{
  "type": "user",
  "awemeId": "MS4wLjABAAAAUT_tvNpyI5-tObkvU2xaaqyeDpek5UJXLG8mePjYxTQ",
  "desc": "在我喜欢的状态里记录我喜欢的生活🤳 美食｜看展｜旅游攻略｜记录生活",
  "authorNickname": "章章干嘛呢",
  "diggCount": 5130107,
  "commentCount": 0,
  "shareCount": 0,
  "videoUrl": "https://www.douyin.com/user/MS4wLjABAAAAUT_tvNpyI5-tObkvU2xaaqyeDpek5UJXLG8mePjYxTQ",
  "secUid": "MS4wLjABAAAAUT_tvNpyI5-tObkvU2xaaqyeDpek5UJXLG8mePjYxTQ",
  "nickname": "章章干嘛呢",
  "signature": "在我喜欢的状态里记录我喜欢的生活🤳 美食｜看展｜旅游攻略｜记录生活",
  "followers": 49659,
  "following": 304,
  "totalLikes": 5130107,
  "videoCount": 370,
  "avatarUrl": "https://p3-pc.douyinpic.com/...",
  "url": "https://www.douyin.com/user/MS4wLjABAAAAUT_tvNpyI5-tObkvU2xaaqyeDpek5UJXLG8mePjYxTQ",
  "ipLocation": "湖南"
}
```

#### Comment Record

```json
{
  "type": "comment",
  "awemeId": "7615930241370348219",
  "desc": "已观，饿之，邀好友观之，共难受之。",
  "authorNickname": "yuki小蛋堡🍔",
  "diggCount": 2970,
  "commentCount": 1161,
  "shareCount": 0,
  "videoUrl": "https://www.douyin.com/video/7615930241370348219",
  "commentId": "7615932448664650533",
  "text": "已观，饿之，邀好友观之，共难受之。",
  "createTime": "2026-03-11T09:47:36.000Z",
  "likes": 2970,
  "replyCount": 1161,
  "userName": "yuki小蛋堡🍔",
  "userSecUid": "MS4wLjABAAAA...",
  "userUrl": "https://www.douyin.com/user/MS4wLjABAAAA...",
  "ipLocation": "湖南"
}
```

***

### 🎯 Use Cases

- **KOL & Influencer Discovery**: Search creators by follower count, total likes, and niche engagement across the Chinese domestic market.
- **Trend & Viral Content Monitoring**: Track trending videos, view metrics, popular hashtags, and audio tracks in real time.
- **Competitor Benchmarking**: Measure competitor engagement rates, publication velocity, and audience responses.
- **Brand Sentiment Analysis**: Collect and analyze comments on brand campaigns, products, or reviews.

***

### 🏷️ SEO & Discovery Tags

`douyin scraper`, `douyin api`, `china tiktok scraper`, `douyin video downloader`, `douyin comments scraper`, `douyin profile scraper`, `douyin kol analytics`, `short video data`, `bytedance scraper`, `trending douyin videos`, `crawlee douyin`

# Actor input Schema

## `startUrls` (type: `array`):

Douyin video URLs, user profiles, short links (v.douyin.com), or bare video IDs. To scrape trending videos, leave https://www.douyin.com/ as default.

## `searchQuery` (type: `string`):

Free-text search filter or category mode (e.g. 'Trending Videos').

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

Maximum number of total records (videos, profiles, comments) to collect and push to the dataset.

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

For each video URL, also scrape its top comment threads.

## `maxComments` (type: `integer`):

Upper bound on comments collected per video when 'Include Comments' is enabled.

## `includeUserPosts` (type: `boolean`):

For each user-profile URL, also scrape the creator's posted videos.

## `maxUserPosts` (type: `integer`):

Upper bound on videos collected per creator when 'Include User's Videos' is enabled.

## `douyinCookie` (type: `string`):

Optional logged-in cookie string from douyin.com. Video, creator profile, and comment scraping work completely without it.

## `proxy` (type: `object`):

Apify Proxy configuration. By default, residential proxies are enabled for optimal throughput and anti-bot circumvention.

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

Alternative alias for proxy configuration.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.douyin.com/"
    }
  ],
  "searchQuery": "Trending Videos",
  "maxItems": 50,
  "includeComments": false,
  "maxComments": 50,
  "includeUserPosts": false,
  "maxUserPosts": 30,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://www.douyin.com/"
        }
    ],
    "searchQuery": "Trending Videos"
};

// Run the Actor and wait for it to finish
const run = await client.actor("madeingermany/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 = {
    "startUrls": [{ "url": "https://www.douyin.com/" }],
    "searchQuery": "Trending Videos",
}

# Run the Actor and wait for it to finish
run = client.actor("madeingermany/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 '{
  "startUrls": [
    {
      "url": "https://www.douyin.com/"
    }
  ],
  "searchQuery": "Trending Videos"
}' |
apify call madeingermany/douyin-scraper --silent --output-dataset

```

## MCP server setup

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