# Douyin Video Downloader & Scraper - No Watermark (`hgservices/douyin-scraper`) Actor

Download Douyin (抖音) videos without watermark and scrape profiles: captions, likes, comments, views, music & hashtags. Export to JSON, CSV, or Excel. No login, no code.

- **URL**: https://apify.com/hgservices/douyin-scraper.md
- **Developed by:** [Harish Garg](https://apify.com/hgservices) (community)
- **Categories:** Videos, AI, MCP servers
- **Stats:** 26 total users, 9 monthly users, 91.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Douyin Scraper — Download Videos & Export Profile Data (No Watermark)

Scrape **Douyin (抖音)**, China's version of TikTok, and export clean, structured data in seconds. Get **no-watermark video download URLs**, captions, view/like/comment counts, comment threads, author details, music, hashtags, and more — from single videos or entire creator profiles. No login, no coding, no browser extensions.

Export results to **JSON, CSV, or Excel**, or pull them straight into your app via the Apify API.

### What this Douyin scraper does

- 🎬 **Download Douyin videos without watermark** — get the direct MP4 URL for any video, or have the actor download the file for you.
- 👤 **Scrape Douyin profiles** — pull a creator's full video history, newest first.
- 📊 **Export engagement metrics** — likes, comments, shares, and saves for every video.
- 🖼️ **Handles photo/slideshow posts** — image posts are captured too, not just videos.
- 🎵 **Get the background music** — track title and audio URL for each post.
- ⚡ **Fast and reliable** — no login or cookies required; just paste a link and run.

### What data you get

For every Douyin post, this scraper returns:

| Data | Description |
|------|-------------|
| No-watermark video URL | Direct MP4 link, ready to download or embed |
| Caption & hashtags | Full description text plus extracted hashtags |
| Author | Display name, unique ID, and profile ID |
| Engagement | Likes, comments, shares, and saves |
| Publish date | When the video was posted |
| Duration & region | Video length and country |
| Cover image | Thumbnail URL |
| Music | Track title and audio URL |
| Photo posts | Image URLs for slideshow-style posts |
| Comments (optional) | Top-level comments with text, author, likes, reply count, and IP region |
| On-screen text (OCR) | Douyin's own OCR of text shown in the video, when available |

### How to use the Douyin scraper

1. **Add Douyin links** — paste one or more video URLs (e.g. `https://www.douyin.com/video/1234...` or a `v.douyin.com` share link) and/or creator profile URLs (homepage/share links, or a bare `sec_uid` like `MS4wLjABAAAA...`). You can mix both.
2. **Set your options** — choose how many videos to pull per profile, whether to include engagement stats and comments, and whether to download the video files.
3. **Run and export** — click **Start**, then download your results as JSON, CSV, or Excel, or fetch them via the API.

#### Example input

```json
{
  "startUrls": [
    "https://www.douyin.com/video/7045159024525905183"
  ],
  "profileUrls": [
    "https://www.douyin.com/user/MS4wLjABAAAARhKifOuUM5SVneEoxKNleQQxW3tKGDzdd9rah6nEpLc"
  ],
  "maxVideosPerProfile": 30,
  "includeStats": true,
  "downloadVideos": true,
  "mediaFormat": "video"
}
```

#### Example output (one video)

```json
{
  "awemeId": "7045159024525905183",
  "url": "https://www.douyin.com/video/7045159024525905183",
  "desc": "37岁再次手绘家乡图寻亲 #抖音寻人",
  "createTime": "2021-12-24T14:55:12+00:00",
  "authorName": "黎方富",
  "durationMs": 123513,
  "region": "CN",
  "videoUrlNoWatermark": "https://v9-v2-mps-cdn.douyinvod.com/.../main.mp4",
  "videoMirrors": ["https://v9-v2-mps-cdn.douyinvod.com/.../main.mp4", "..."],
  "downloadedFileUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/7045159024525905183.mp4",
  "cover": "https://p3-pc-sign.douyinpic.com/...jpeg",
  "musicUrl": "https://sf11-cdn-tos.douyinstatic.com/obj/ies-music/....mp3",
  "hashtags": ["抖音寻人"],
  "seoOcrContent": "37岁再次手绘家乡图寻亲",
  "diggCount": 9755,
  "commentCount": 1044,
  "shareCount": 551,
  "collectCount": 289,
  "admireCount": 12,
  "comments": [
    {
      "cid": "7045200000000000000",
      "text": "希望早日找到家人",
      "createTime": "2021-12-25T02:11:03+00:00",
      "diggCount": 88,
      "replyCount": 3,
      "authorName": "路人甲",
      "authorSecUserId": "MS4wLjABAAAA...",
      "authorUid": "1234567890",
      "ipLabel": "四川"
    }
  ]
}
```

The `comments` array is included only when **Include comments** (`includeComments`) is enabled — top-level comments only, up to `maxCommentsPerVideo` per video (newest first). Each comment carries its text, author, like count, reply count, and IP region. Enabling it adds paginated requests per video, so runs are slower and more billable.

`downloadedFileUrl` is included only when **Save media file to storage** (`downloadVideos`) is enabled — it's a permanent, non-expiring link to the media file saved in the run's key-value store. Set `mediaFormat` to `audio` to save the post's MP3 audio/music track instead of the MP4 (this is the sound attached to the post, not the video's own audio track). The direct CDN links (`videoUrlNoWatermark`, `videoMirrors`) are always returned as a fallback.

### Looking for keyword search?

Keyword search now lives in its own dedicated actor — **Douyin Search Scraper** — built for discovering videos by search term with sort, publish-window, and duration filters. This actor stays focused on what it does best: video URLs and profiles.

### Popular use cases

- **Content creators & marketers** — download Douyin videos without watermark to repurpose or archive.
- **Trend & influencer research** — track what's performing across creators and topics.
- **Competitor analysis** — monitor rival brands' Douyin content and engagement.
- **Datasets for AI/ML** — collect video, caption, and metadata at scale.
- **Social media analytics** — measure reach and engagement over time.

### Frequently asked questions

**Can I download Douyin videos without a watermark?**
Yes. Every result includes a direct no-watermark MP4 URL. The actor also saves the file to your storage automatically — **Save media file to storage** is on by default; turn it off if you only want the URLs.

**Do I need a Douyin account or login?**
No. This scraper works without any account, password, or cookies.

**Can I scrape all videos from a Douyin user?**
Yes. Add the profile URL and set how many videos to fetch. Videos are returned newest first.

**Can I search Douyin by keyword instead of pasting URLs?**
Keyword search has moved to its own dedicated actor, **Douyin Search Scraper**. This one focuses on video URLs and profiles.

**Does it work with Douyin share links?**
Yes — both full `douyin.com/video/...` URLs and short `v.douyin.com/...` share links are supported.

**What formats can I export?**
JSON, CSV, and Excel, or pull data programmatically through the Apify API.

**Does it capture photo (slideshow) posts?**
Yes. Image posts return their picture URLs alongside the usual metadata.

### Integrations

Connect this Douyin scraper to your workflow with the **Apify API**, or automate it with **Make**, **Zapier**, **n8n**, Google Sheets, Slack, and more. Schedule runs to keep your Douyin data fresh automatically.

### Is it legal to scrape Douyin?

This scraper collects **publicly available** data only. You are responsible for how you use the data — respect Douyin's terms, applicable laws (such as GDPR), and copyright. Do not use scraped content in ways that infringe creators' rights.

# Actor input Schema

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

Douyin video URLs or share links (e.g. https://www.douyin.com/video/123... or https://v.douyin.com/xxxx/). Each produces one row with the no-watermark MP4 URL.

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

Douyin user profile URLs (https://www.douyin.com/user/MS4wLjABAAAA...), v.douyin.com share links to a profile, or a bare sec\_uid (MS4wLjABAAAA...). The actor lists each user's posts, newest first.

## `maxVideosPerProfile` (type: `integer`):

Upper bound on posts fetched per profile URL.

## `includeStats` (type: `boolean`):

Profile listings don't return like/comment/share/collect counts. Enable to fetch them per video — one extra request each (slower, more billable events). Has no effect on individual Video URLs, which already return full detail.

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

Fetch each video's top-level comments (text, author, like count, reply count, IP region) and attach them to the row as a `comments` array. Adds paginated requests per video — slower and more billable. Applies to both Video URLs and Profile URLs.

## `maxCommentsPerVideo` (type: `integer`):

Upper bound on top-level comments fetched per video when 'Include comments' is on. Fetched newest-first in pages of 20.

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

Download each item's media file into the run's key-value store and expose it in the dataset as `downloadedFileUrl` — a permanent, non-expiring link you can use instead of the signed douyinvod.com CDN URLs, which expire after a while. On by default. Turn off to skip the download and rely only on the direct CDN URLs (videoUrlNoWatermark, videoMirrors), which are always returned regardless.

## `mediaFormat` (type: `string`):

Which file to save when 'Save media file to storage' is on. 'Video' stores the no-watermark MP4 (<awemeId>.mp4). 'Post audio / music track' stores the sound attached to the post as an MP3 (<awemeId>.mp3) — this is the post's music/original-sound resource, NOT a demux of the video's own audio track, so for videos set to a licensed song you get that song, not the in-video audio.

## `failOnDownloadError` (type: `boolean`):

Only applies when 'Save media file to storage' is on. Douyin's CDN links fail intermittently; the actor already retries across mirror URLs. If a file still can't be stored after retries, this marks the whole run as FAILED instead of finishing green — so a missing file is never reported as success. The dataset row is still written with the direct CDN URLs (videoUrlNoWatermark, videoMirrors) and a `downloadError` field. Turn off to keep the run green and just flag failures per row.

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

Optional. Not required for correctness (the signed API works direct), but helps spread requests and avoid rate limits at scale.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.douyin.com/video/7045159024525905183"
  ],
  "maxVideosPerProfile": 20,
  "includeStats": false,
  "includeComments": false,
  "maxCommentsPerVideo": 20,
  "downloadVideos": true,
  "mediaFormat": "video",
  "failOnDownloadError": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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": [
        "https://www.douyin.com/video/7045159024525905183"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hgservices/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": ["https://www.douyin.com/video/7045159024525905183"] }

# Run the Actor and wait for it to finish
run = client.actor("hgservices/douyin-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "https://www.douyin.com/video/7045159024525905183"
  ]
}' |
apify call hgservices/douyin-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=hgservices/douyin-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/NaJlT9yHmCzCyHHuC/builds/ocBaRZL1jClm2aRPa/openapi.json
