# Douyin Comments Scraper (`automly/douyin-comments-scraper`) Actor

Scrape Douyin (抖音) comments from video and image post links without login: comment text, likes, reply count, date, IP location, pinned and liked-by-creator flags, and the commenter's profile. Up to about 10,000 comments per video.

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

## Pricing

from $0.59 / 1,000 comments

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 Comments Scraper

### What is Douyin Comments Scraper?

**Douyin Comments Scraper** lets you **scrape the comments of Douyin (抖音) videos and image posts**: comment text, likes, reply count, posting date, the commenter's IP location (IP属地), pinned and liked-by-creator flags, attached pictures, and the commenter's name, 抖音号 and profile link. Paste video links, click **Start**, and download the comments as Excel, CSV or JSON.

- ⚡ **Fast:** 100 comments from 2 videos in under 30 seconds, run start included (our tests)
- 💬 **Deep:** up to about 10,000 comments per video
- 📍 **Commenter details:** IP location, 抖音号 and profile link on every comment
- 🔓 **No login:** no Douyin account, cookies or API key needed

### What can Douyin Comments Scraper do?

- Scrape the **comments of any public Douyin video or image post** (图文) from its link, share link or ID
- Choose **how many comments per video**, or take every comment Douyin shows
- Mark comments the **creator pinned or liked**
- Paste **v.douyin.com share links** or the whole share text copied from the Douyin app
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from Douyin comments?

| | | |
|---|---|---|
| 💬 Comment text | ❤️ Likes | 🔁 Reply count |
| 📅 Posting date and time | 📍 IP location (IP属地) | 🖼️ Attached pictures |
| 📌 Pinned by the creator | 👍 Liked by the creator | 👤 Commenter name and 抖音号 |
| 🔗 Commenter profile link | 🆔 Comment and video IDs | 🎬 Video link |

### How to scrape Douyin comments

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Douyin Comments Scraper**.
3. Paste **Video links**: videos, image posts or v.douyin.com share links, one per line.
4. Set **Comments per video** (0 for every comment shown). Click **Start**.
5. When the run finishes, download your comments as Excel, CSV, JSON, HTML or XML.

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

You pay only for the comments you get. Higher Apify plans pay less:

| Apify plan | Per 1,000 comments |
|---|---|
| Free | $1.49 |
| Starter (Bronze) | $0.99 |
| Scale (Silver) | $0.69 |
| Business (Gold) and higher | $0.59 |

Each run also pays a **$0.0005 start fee** (a twentieth of a cent). Platform usage is included in these prices, so you pay nothing else for the run, and the videos themselves are not charged. Example: 100 comments from each of 10 videos (1,000 comments) cost $1.49 on the Free plan and $0.59 on Business, plus the start fee. Every Apify account gets **$5 of free usage each month**.

### ⬇️ Input

| Setting | What it does |
|---|---|
| Video links | Douyin video or image post links, share links or video IDs, one per line |
| Comments per video | Most comments to save per video; 0 for every comment Douyin shows |

```json
{
  "postUrls": ["https://www.douyin.com/video/7691170921935146278"],
  "maxCommentsPerPost": 100
}
```

### ⬆️ Output

One row per comment:

```json
{
  "type": "comment",
  "id": "7692062732707169087",
  "videoId": "7691170921935146278",
  "url": "https://www.douyin.com/video/7691170921935146278",
  "text": "一直搜救真的蛮感人的",
  "createdAt": "2026-10-02T13:31:58Z",
  "likes": 1248,
  "replies": 10,
  "isPinned": false,
  "likedByAuthor": false,
  "ipLocation": "安徽",
  "images": [],
  "authorNickname": "不要迈巴赫只要张凌赫",
  "authorDouyinId": "194731669",
  "authorId": "85423850658",
  "authorSecUid": "MS4wLjABAAAAi4HT-8Ak2h6ZxOCFQOSD5OiZ2OfnpG_lxj33YGgZ478",
  "authorUrl": "https://www.douyin.com/user/MS4wLjABAAAAi4HT-8Ak2h6ZxOCFQOSD5OiZ2OfnpG_lxj33YGgZ478",
  "authorAvatarUrl": "https://p3-pc.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015...",
  "source": "https://www.douyin.com/video/7691170921935146278",
  "scrapedAt": "2026-11-15T16:50:32Z"
}
```

Dates are UTC (ISO 8601). You can view the rows as a table in Apify Console or download them as Excel, CSV, JSON, HTML or XML.

### How can I use Douyin comments?

- **Audience research:** read what viewers say under a creator's or a brand's videos
- **Social listening:** follow reactions to a product, a campaign or a news story
- **Influencer checks:** see how engaged a creator's audience is and where it is (IP location)
- **Data for AI and analysis:** feed comment texts into sentiment or topic models

### ❓FAQ

#### How many comments can I scrape from one Douyin video?

Up to about 10,000 comments per video, in the order Douyin shows them. The comment count on a video includes replies; each comment row has its reply count, but replies themselves are not included: Douyin does not show them to visitors who are not logged in.

#### Can I scrape the comments of a creator's videos?

Paste the links of the videos you want. To list a creator's newest videos with their links, use **Douyin Profile Scraper**, or **Douyin Scraper** for profiles, videos and comments in one run. A profile link given here is listed in the run report as the wrong kind of link.

#### Do I need a Douyin account?

No. You don't need a Douyin account, cookies, an API key or a Chinese phone number.

#### What happens with a deleted video or a wrong link?

The run still succeeds. The link is listed as not found in the log and in the run report (`report-summary`), and costs nothing.

#### Can I use it with AI agents (MCP)?

Yes. Ask your agent, for example, "Get 200 comments from this Douyin video", and it can run this scraper with:

```json
{"postUrls": ["https://www.douyin.com/video/7691170921935146278"], "maxCommentsPerPost": 200}
```

#### Is it legal to scrape Douyin comments?

This scraper only collects data that people chose to publish publicly. Public comments can still contain personal data, which may be protected by laws such as GDPR or China's PIPL, so only scrape it for a legitimate reason and ask a lawyer if you are unsure. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

Douyin Comments Scraper is an independent tool. It is not affiliated with, endorsed by or sponsored by Douyin or ByteDance.

#### Something isn't working?

Open the **Issues** tab and tell us the link and what you expected. We usually reply within a day.

# Actor input Schema

## `postUrls` (type: `array`):

Douyin video or image post links, one per line, e.g. https://www.douyin.com/video/7691170921935146278, https://www.douyin.com/note/7652726341704608640 or a v.douyin.com share link (the whole share text copied from the app works too). Bare video ids work as well.

## `maxCommentsPerPost` (type: `integer`):

Most comments to save per video, e.g. 100. Set 0 for every comment Douyin shows (up to about 10,000 top-level comments a video, most liked first).

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

Leave the default.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.douyin.com/video/7691170921935146278"
  ],
  "maxCommentsPerPost": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `comments` (type: `string`):

No description

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

No description

## `report` (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 = {
    "postUrls": [
        "https://www.douyin.com/video/7691170921935146278"
    ],
    "maxCommentsPerPost": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/douyin-comments-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 = {
    "postUrls": ["https://www.douyin.com/video/7691170921935146278"],
    "maxCommentsPerPost": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/douyin-comments-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 '{
  "postUrls": [
    "https://www.douyin.com/video/7691170921935146278"
  ],
  "maxCommentsPerPost": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/douyin-comments-scraper --silent --output-dataset

```

## MCP server setup

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