# Douyin Scraper & Video Downloader (TikTok China) (`scrapers_lat/douyin-scraper`) Actor

Scrape Douyin (抖音, TikTok China) videos by URL: video description, author profile (nickname, Douyin ID, bio), like/comment/share/collect counts, music, hashtags, cover and a downloadable no-watermark video URL. Paste video links, get clean data. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/douyin-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Social media, News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.80 / 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 & Video Downloader (TikTok China)

> Turn any Douyin (抖音) video link into clean structured data: caption, author profile, likes, comments, shares, saves, music, hashtags, cover image and a ready-to-download no-watermark video URL. Paste links, get a spreadsheet.

**📥 [Input](https://apify.com/scrapers_lat/douyin-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/douyin-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/douyin-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/douyin-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Douyin](https://img.shields.io/badge/Data-Douyin%20%E6%8A%96%E9%9F%B3-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>Video + author</strong><br>caption, profile, bio</td>
<td align="center"><strong>Engagement</strong><br>likes, comments, shares, saves</td>
<td align="center"><strong>Downloadable URL</strong><br>no-watermark video</td>
</tr></table>

<br>

### Who is it for

| Use case | Who benefits |
|---|---|
| Content research | Marketers and agencies tracking creators and viral formats in China |
| Trend analysis | Analysts measuring engagement, hashtags and sounds |
| Archiving | Teams saving videos and captions with a clean download URL |
| Enrichment | Builders feeding Douyin post data into their own tools |

### How to use it

1. Copy Douyin video links. The actor accepts desktop links (`https://www.douyin.com/video/...`), share links, short links (`https://v.douyin.com/...`) and raw video IDs.
2. Paste them into **Douyin Video URLs** (one run handles the whole list).
3. Set **Max Videos** and run. Export as JSON, CSV or Excel, or pull it through the Apify API.

### Frequently Asked Questions

**What links does it accept?**
Full desktop video links, mobile share links, short `v.douyin.com` links and plain numeric video IDs. Mix and match in one run.

**Is the download URL watermark-free?**
Each record includes a no-watermark `downloadUrl` and a watermarked fallback so you can pick either.

**Does it work for photo (image) posts?**
Yes. Image posts return their picture URLs in **imageUrls** alongside the same author and engagement fields.

**Will I be charged for links that fail?**
No. You are only charged for videos that return real data. Removed or invalid links produce no billable record.

**How fresh are the numbers?**
Likes, comments, shares and saves are read live at run time, so each record reflects the video at the moment of the run (see observedAt).

### Related scrapers

- [TikTok Hashtag Analytics & Trends Scraper](https://apify.com/scrapers_lat/tiktok-hashtag-analytics-scraper)
- [TikTok Shop Product Details Scraper](https://apify.com/scrapers_lat/tiktok-shop-product-scraper)
- [Instagram Reels Scraper](https://apify.com/scrapers_lat/instagram-reels-scraper)

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for public platforms: finance, news, real estate, jobs, e-commerce and government data. Browse the full catalog or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> 本工具与抖音（Douyin）无任何隶属关系，仅访问公开可见的视频数据。
>
> This actor is an independent tool and has no affiliation with Douyin or ByteDance. It only accesses publicly available video data. Use the results in accordance with the source's terms.

# Actor input Schema

## `maxVideos` (type: `integer`):

Maximum number of videos to collect across all provided URLs.

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

One or more Douyin video links. Accepts full desktop links (https://www.douyin.com/video/123...), H5 share links (https://www.iesdouyin.com/share/video/123...), short links (https://v.douyin.com/xxxxx/) or raw numeric video IDs. One run processes the whole list.

## Actor input object example

```json
{
  "maxVideos": 30,
  "videoUrls": [
    "https://www.douyin.com/video/7663425423312817471",
    "https://www.douyin.com/video/7641816063399456127"
  ]
}
```

# 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 = {
    "maxVideos": 30,
    "videoUrls": [
        "https://www.douyin.com/video/7663425423312817471",
        "https://www.douyin.com/video/7641816063399456127"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/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 = {
    "maxVideos": 30,
    "videoUrls": [
        "https://www.douyin.com/video/7663425423312817471",
        "https://www.douyin.com/video/7641816063399456127",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/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 '{
  "maxVideos": 30,
  "videoUrls": [
    "https://www.douyin.com/video/7663425423312817471",
    "https://www.douyin.com/video/7641816063399456127"
  ]
}' |
apify call scrapers_lat/douyin-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/vGOf9L1erU7KfM9O8/builds/rN2mTXCpRx2591LII/openapi.json
