# Douyin Scraper - Profiles, Videos, Comments and Trending (`pomlabs/douyin-scraper`) Actor

Douyin (Chinese TikTok) without login or cookies: creator profiles with their latest posts, full video stats with comments, videos that use a sound, the hot search board and creator search by keyword. Clean English fields. $1.50 per 1,000 results.

- **URL**: https://apify.com/pomlabs/douyin-scraper.md
- **Developed by:** [Pom Labs](https://apify.com/pomlabs) (community)
- **Categories:** Social media, Videos, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 video delivereds

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/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 - Profiles, Videos, Comments, Danmaku and Trending

Get data from **Douyin** (抖音), the Chinese TikTok, **without login, cookies or a Chinese phone number**: creator **profiles** with their latest posts, full **video stats with comments and danmaku (bullet comments)**, **no-watermark MP4 links and downloads**, **videos that use a sound**, the **five hot-search boards** with each topic's lead video, and **creator search** by keyword.

### Why this one

- **One field for everything:** put profile links, video links, short share links (v.douyin.com), sound links, keywords and `trending` in the same list. The input names of other Douyin actors work too (`profileUrls`, `videoUrls`, `userUrls`, `keywords`, `maxPostsPerProfile`, `maxItems`, `shouldDownloadVideos`...).
- **Profiles:** followers, following, total likes, number of posts, bio, verified title, IP location, province and city, plus the latest posts (Douyin shows visitors about 40), with a date filter (`recentDays`, `oldestPostDate`) and `excludePinned`.
- **Videos:** likes, comments, shares, favorites, recommends, length, size, publish date, caption, hashtags, **Douyin's own topic tags** (`videoTags`, e.g. 美食 → 家常菜), AI-generated label, warning label, collection, chapters, sound with its **audio link**, cover, photo posts with every image, and `videoUrl`: a **no-watermark 1080p link that does not expire**, free on every video.
- **Full post detail:** statistics (likes, comments, shares, favorites, recommends, admires), permissions (download, duet, stitch, comment, private, in review, why download is blocked), commerce and ad flags, story flags, @mentions, the creator's declaration (作者声明), every bitrate with codec, fps and size, and the sound's owner, length and how many videos use it.
- **Only here:** the **danmaku count** of each video and Douyin's **related searches (大家都在搜)** shown under it, a free list of what viewers search next.
- **Profiles in depth:** verification type and text, account certificate, school, shop and live-commerce flags, Star Atlas (星图) flag, collections, personal tags, Instagram/Twitter/YouTube handles when set, every avatar size, background image and share links.
- **Downloads (optional):** MP4 without watermark, covers and photo-post images saved to your key-value store, with the link in each row.
- **Comments:** paginated, up to 1,000 per video, with likes, reply count, date and the IP location Douyin shows.
- **Danmaku (弹幕):** the on-screen bullet comments of a video, up to 1,000, each with the second of the video it appears at.
- **Trending:** the five hot-search boards (hot topics 热点榜, entertainment 娱乐榜, society 社会榜, product picks 种草榜, challenges 挑战榜) with heat value, views, number of videos, best rank, cover, topic link and, on the challenge board, the most used sound. Turn on `includeTrendVideos` to also get the video Douyin opens for each topic, with full stats.
- **Clean output:** English field names, ISO dates, durations in seconds. Failed lookups are free.

### Input

| Field | What it does |
|---|---|
| `queries` | Profile links (`https://www.douyin.com/user/MS4wLjABAAAA...`), video links or ids, `v.douyin.com` share links, sound links (`douyin.com/music/<id>`), `trending` (or `trending:society`, `trending:seeding`...), or keywords (creator search) |
| `maxResults` | Posts per profile, videos per sound, trends per board or creators per keyword (default 30) |
| `maxComments` | Comments per video link (default 0) |
| `maxDanmaku` | Bullet comments per video link (default 0) |
| `includeRelated` | Videos Douyin recommends next to each video link |
| `trendBoards` | Which boards `trending` returns: `hot`, `entertainment`, `society`, `seeding`, `challenge` (Chinese names work too) |
| `includeTrendVideos` | The lead video of each trending topic, with full stats |
| `recentDays`, `oldestPostDate`, `excludePinned` | Filters for profile posts |
| `downloadVideos`, `downloadCovers`, `downloadImages`, `kvStoreName` | Save MP4s (no watermark), covers and photo-post images to a key-value store |

### Output

```json
{
  "type": "video",
  "source": "profile",
  "rank": 1,
  "awemeId": "7710161880123717873",
  "url": "https://www.douyin.com/video/7710161880123717873",
  "description": "不知道吃什么菜的时候那就来这道榨菜炒肉丝嘎嘎下饭#榨菜炒肉丝 #家常菜",
  "author": "娇娇的美食日记",
  "authorDouyinId": "dylk4dp2vnqz",
  "authorFollowers": 689476,
  "likes": 54,
  "comments": 5,
  "shares": 11,
  "favorites": 34,
  "durationSec": 42,
  "publishedAt": "2026-11-20T08:05:54Z",
  "videoTags": [{"name": "美食", "level": 1}, {"name": "美食展示", "level": 2}, {"name": "普通美食展示", "level": 3}],
  "videoUrl": "https://www.douyin.com/aweme/v1/play/?video_id=v2700fgi0000dbvvtu7og65oljn73gt0&ratio=1080p&line=0",
  "width": 720,
  "height": 1280,
  "musicUrl": "https://lf9-music-east.douyinstatic.com/obj/ies-music-hj/7710161887962549049.mp3",
  "status": "ok"
}
```

A danmaku row: `{"type": "danmaku", "awemeId": "7610711200906065509", "text": "好吃", "atSec": 0.0, "userId": "72724259772"}`. A trend row: `{"type": "trend", "board": "challenge", "boardName": "挑战榜", "rank": 1, "word": "...", "hotValue": 8032974, "views": 4115770, "videoCount": 10, "bestRank": 6, "musicId": "7710880700014119699", "url": "https://www.douyin.com/hot/2765447"}`.

Rows have a `type`: `user` (profile or creator found by keyword), `video`, `comment`, `danmaku` or `trend`. Queries that fail (removed video, bad link, Douyin refusing) come as a row with `type: "error"` and the reason, and are not charged.

### Use cases

- **China market research:** what Chinese viewers watch and say about a brand, a product or a game, in comments and bullet comments.
- **Influencer discovery:** find Douyin creators by keyword, with followers and likes, then read their profiles and posts.
- **Competitor and brand tracking:** follow the latest posts of a set of accounts and their numbers, with a date filter.
- **Trend watching:** the five hot-search boards every day, with the lead video of each topic.
- **Content and AI datasets:** no-watermark MP4s, covers and Douyin's topic tags.

### Pricing

**$1.50 per 1,000 results** (profiles, videos, comments, danmaku and trends), less on higher Apify plans. Files saved to your key-value store (MP4s, covers and photos of image posts): **$2.50 per 1,000** files (storing a file costs more than a data row). The `videoUrl` link is free.

### Notes

- Douyin shows visitors only the latest ~40 posts of a profile; the full count comes in the profile row (`posts`).
- Keyword search returns creators. Keyword search of videos needs a logged-in Douyin account and is not offered yet.
- `play_count` is hidden by Douyin on the web, so views are not returned; likes, comments, shares and favorites are.

# Actor input Schema

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

One per line: a profile link (https://www.douyin.com/user/MS4wLjABAAAA...), a video link or id (https://www.douyin.com/video/7709904111285587242), a short share link (v.douyin.com/...), a sound link (douyin.com/music/<id>), the word trending (hot search board; trending:entertainment, trending:society, trending:seeding or trending:challenge for one board), or a keyword (creator search). Up to 20. Empty = the trending example.

## `maxResults` (type: `integer`):

Posts of a profile (Douyin shows visitors the latest ~40), videos of a sound, trends per board or creators per keyword. 1 to 1,000.

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

For video queries: how many comments to return (0 = none). Up to 1,000.

## `includeRelated` (type: `boolean`):

For video queries: also return the videos Douyin recommends next to it (up to Max results).

## `maxDanmaku` (type: `integer`):

For video queries: how many on-screen bullet comments (弹幕) to return, each with the second of the video it appears at (0 = none). Up to 1,000.

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

Which hot-search boards the word trending returns: hot topics (热点榜), entertainment (娱乐榜), society (社会榜), product picks (种草榜) and challenges (挑战榜). Each topic carries its board. Empty = hot topics.

## `includeTrendVideos` (type: `boolean`):

For trending: also return the video Douyin opens for each topic, with full stats (charged as a video).

## `recentDays` (type: `integer`):

For profile queries: only posts published in the last N days (0 = no limit).

## `oldestPostDate` (type: `string`):

For profile queries: only posts published on or after this date (YYYY-MM-DD, China time).

## `excludePinned` (type: `boolean`):

For profile queries: skip the posts the creator pinned to the top.

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

Save each video's MP4 (no watermark) to the run's key-value store; the link goes in videoFile. Charged per stored file. Every video also carries videoUrl, a no-watermark link that does not expire, at no extra cost.

## `downloadCovers` (type: `boolean`):

Save each video's cover image to the key-value store (coverFile). $0.0025 per cover saved.

## `downloadImages` (type: `boolean`):

Save every image of photo posts to the key-value store (imageFiles). $0.0025 per image saved.

## `kvStoreName` (type: `string`):

Optional named key-value store for the downloads (kept after the run). Empty = the run's own store.

## `searchType` (type: `string`):

What keywords search. Creators (users) for now.

## Actor input object example

```json
{
  "queries": [
    "trending"
  ],
  "maxResults": 20,
  "maxComments": 20,
  "includeRelated": false,
  "maxDanmaku": 0,
  "trendBoards": [
    "hot"
  ],
  "includeTrendVideos": false,
  "recentDays": 0,
  "excludePinned": false,
  "downloadVideos": false,
  "downloadCovers": false,
  "downloadImages": false,
  "searchType": "users"
}
```

# 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 = {
    "queries": [
        "trending"
    ],
    "maxResults": 20,
    "maxComments": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pomlabs/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 = {
    "queries": ["trending"],
    "maxResults": 20,
    "maxComments": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pomlabs/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 '{
  "queries": [
    "trending"
  ],
  "maxResults": 20,
  "maxComments": 20
}' |
apify call pomlabs/douyin-scraper --silent --output-dataset

```

## MCP server setup

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