# Douyin Scraper (`blueskyscraper/douyin-scraper`) Actor

Scrape Douyin (抖音, Chinese TikTok) without an account: videos from keyword search and creator profiles with likes, comments, shares, saves, hashtags, music, cover and video file, plus video comments with likes, replies and region. Chinese or English keywords. JSON, CSV, Excel.

- **URL**: https://apify.com/blueskyscraper/douyin-scraper.md
- **Developed by:** [BlueskyScraper](https://apify.com/blueskyscraper) (community)
- **Categories:** Social media, Videos, AI
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.79 / 1,000 videos

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 Scraper** extracts videos and comments from **Douyin (抖音, the Chinese TikTok)** without an account, cookies or a Chinese phone number: keyword search, creator profiles and video comments, with likes, comments, shares, saves, hashtags, music, cover and the video file. **$3.99 per 1,000 videos, no start fee.**

### What can you scrape?

- 🔍 **Search** — videos whose title matches your keyword, each with full stats (likes, comments, shares, saves, length, music, creator followers). Optional "published after" date filter.
- 👤 **Creators** — every video on a creator profile, newest first.
- 💬 **Comments** — the comments of a video with likes, reply count, region (IP location) and whether the creator liked them.
- 🔔 **Monitoring mode** — schedule it and get only videos and comments that are new since the last run.

For influencer marketing in China, e-commerce and trend research, brand monitoring and short-video analytics.

### How much does it cost?

| Row | Price |
|---|---|
| **Video** | $0.00399 — $3.99 per 1,000 |
| **Comment** | $0.00479 — $4.79 per 1,000 |

No start fee, no proxy or compute charge on top. Error rows are never billed. **Maximum rows per run** is a hard ceiling on the bill.

Other Douyin scrapers in the Store charge $4.99–$10 per 1,000 results.

### ⬇️ Input

```json
{
    "keywords": ["咖啡", "露营"],
    "profileUrls": ["https://www.douyin.com/user/MS4wLjABAAAA8U_l6rBzmy7bcy6xOJel4v0RzoR_wfAubGPeJimN__4"],
    "videoUrls": ["https://www.douyin.com/video/7695040675984805171"],
    "maxResultsPerInput": 100
}
```

### ⬆️ Output

```json
{
    "type": "video",
    "id": "7641141168071721088",
    "url": "https://www.douyin.com/video/7641141168071721088",
    "description": "号称世界最佳旅行岛的巴厘岛真实是什么样的 #旅行vlog #交换世界计划 #青年创作者成长计划 #巴厘岛",
    "hashtags": [
        "旅行vlog",
        "交换世界计划",
        "青年创作者成长计划",
        "巴厘岛"
    ],
    "likes": 263147,
    "comments": 12514,
    "shares": 51572,
    "saves": 25573,
    "durationSec": 915,
    "isImagePost": false,
    "coverUrl": "https://p3-sign.douyinpic.com/tos-cn-p-0015/ooEUIDVfsbfIbMA9myCqQCFc2GaDoggAArqMKB~tplv-dy-360p.webp?lk3s=138a59ce&x-expires=1794153600&x…",
    "videoUrl": "https://v5-dy-ov-experiment.zjcdn.com/66ff8ad1b0e60f7c9ebc4cc8c4aa5777/6ade3d0f/video/tos/cn/tos-cn-ve-15/o4U3GW5IYNQfFcAUAhnI7mQLfe4riVB…",
    "musicTitle": "@符郎郎创作的原声",
    "musicAuthor": "符郎郎",
    "location": "广东",
    "authorName": "符郎郎",
    "authorId": "1288261194747736",
    "authorSecUid": "MS4wLjABAAAA1RWU2UrUicbwt1HnEaipQ2kTd9bpDLeu5x8kF-FLjz4KSfLeFtSmCmnPpAT0pMov",
    "authorDouyinId": "FuLangLang666",
    "authorUrl": "https://www.douyin.com/user/MS4wLjABAAAA1RWU2UrUicbwt1HnEaipQ2kTd9bpDLeu5x8kF-FLjz4KSfLeFtSmCmnPpAT0pMov",
    "authorFollowers": 0,
    "isAd": false,
    "publishedAt": "2026-05-18T08:10:18.000Z",
    "query": "巴厘岛",
    "source": "search"
}
```

### FAQ

#### Do I need a Douyin account or cookies?

No. Paste keywords, profile links or video links and run.

#### Why is there no view count?

Douyin hides play counts from everyone except the creator. Likes, comments, shares and saves are public and included.

#### Do video links expire?

Yes — Douyin signs video file links for a few hours. Download the files soon after the run, or keep only the stats.

#### Is it legal?

The Actor reads public videos only. Names and comments can be personal data under the PIPL and GDPR — have a lawful reason to process them.

# Actor input Schema

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

Chinese works best: <code>咖啡</code>, <code>护肤</code>, <code>巴厘岛</code>. Each keyword returns videos whose title matches, each with full stats.

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

Profile link: <code>https://www.douyin.com/user/MS4wLjABAAAA…</code> (or the MS4w… sec_uid). Returns the creator's videos, newest first.

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

Video link or ID: <code>https://www.douyin.com/video/7695040675984805171</code>. Returns the video's comments.

## `publishedAfter` (type: `string`):

Search: keep only videos published on or after this date (<code>YYYY-MM-DD</code>).

## `maxResultsPerInput` (type: `integer`):

Cap for each keyword, creator or video: videos per search or creator; comments per video.

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

Stop after this many rows in the whole run — a hard ceiling on cost.

## `monitoringStoreName` (type: `string`):

Give the run a name (e.g. <code>brand-mentions</code>) and every later run with the same name returns <b>only rows it has not delivered before</b>. Empty = normal run.

## Actor input object example

```json
{
  "keywords": [
    "咖啡"
  ],
  "maxResultsPerInput": 50,
  "maxItems": 10000
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per result; error rows explain inputs that could not be read.

# 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": [
        "咖啡"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("blueskyscraper/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 = { "keywords": ["咖啡"] }

# Run the Actor and wait for it to finish
run = client.actor("blueskyscraper/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 '{
  "keywords": [
    "咖啡"
  ]
}' |
apify call blueskyscraper/douyin-scraper --silent --output-dataset

```

## MCP server setup

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