# Douyin Scraper: $1 per 1,000 Videos (`rowfinch/douyin-scraper`) Actor

Scrape Douyin (抖音) profiles and videos: each profile's latest posts with caption, likes, comments, shares, saves, music, hashtags and video links, the author's followers and IP location, or the profiles alone. Optional real play counts. $1 per 1,000 videos.

- **URL**: https://apify.com/rowfinch/douyin-scraper.md
- **Developed by:** [Rowfinch](https://apify.com/rowfinch) (community)
- **Stats:** 1 total users, 1 monthly users, 75.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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

Get the latest posts of Douyin (抖音) profiles, or single videos by link: caption, likes, comments, shares, saves, music, hashtags and video links, with the author's followers, likes and IP location. Real play counts on request.

**$1 per 1,000 videos.**

### What it's for

- **Creator and influencer analysis**: a creator's engagement, post by post, before you hire them.
- **Competitor tracking**: brands' and creators' new posts, on a schedule with `recentDays: 1`.
- **Campaign reports**: the latest numbers of every video in a campaign, from a list of links.
- **Creator lists**: followers, likes, post count and IP location of many profiles at once, with `maxPostsPerProfile: 0`.

### Input

| Field | What it does |
|---|---|
| `profileUrls` | Profile URLs (`douyin.com/user/…`), share links (`v.douyin.com/…`) or Douyin IDs (抖音号), one per line |
| `maxPostsPerProfile` | Posts per profile, newest first (default 100; 0 returns the profiles alone) |
| `recentDays` | Only posts from the last N days |
| `oldestPostDate` | Only posts from a date like `2026-09-01`, or within a period like `7 days` |
| `excludePinnedPosts` | Leave out pinned posts |
| `videoUrls` | Video or image post links, share links or whole share texts, one per line |
| `includePlayCounts` | Real play counts, which Douyin hides from profiles |

Coming from another Douyin scraper? These are the input fields of the most used Douyin profile scraper on Apify, and the main output fields keep its names (`authorMeta`, `statistics`, `videoMeta`…). Saved inputs and API calls keep working.

### Output

One row per video or image post:

```json
{
  "id": "7698756615016647986",
  "url": "https://www.douyin.com/video/7698756615016647986",
  "shareUrl": "https://www.iesdouyin.com/share/video/7698756615016647986/",
  "type": "video",
  "text": "“妈妈背着你去领奖”一位母亲背着失去双腿的女儿，到小学领取“品学兼优”奖。",
  "createTimeISO": "2026-10-20T14:27:48.000Z",
  "createDate": "2026-10-20",
  "isPinned": false,
  "isAd": false,
  "authorMeta": {
    "id": "3456469629417758",
    "secUid": "MS4wLjABAAAAcql96AwAhCEywWGo4ERqVzfOGUazbiUlobEuF3o_dBYJh915kpZyQB6LjbuHXnGA",
    "name": "快看",
    "customUsername": "quicklook",
    "profileUrl": "https://www.douyin.com/user/MS4wLjABAAAAcql96AwAhCEywWGo4ERqVzfOGUazbiUlobEuF3o_dBYJh915kpZyQB6LjbuHXnGA",
    "verified": true,
    "enterpriseVerifyReason": "新华社快看官方账号",
    "followersCount": 9030653,
    "followingCount": 245,
    "totalLikesReceived": 558853154,
    "awemeCount": 51186
  },
  "videoMeta": { "duration": 22987, "width": 720, "height": 1280, "format": "mp4", "playUrl": "https://v5-dy-ov-experiment.zjcdn.com/...", "cover": "https://p3-sign.douyinpic.com/..." },
  "musicMeta": { "id": "7698756606976445222", "title": "@快看创作的原声", "author": "快看", "isOriginal": true, "duration": 23 },
  "statistics": { "diggCount": 63, "commentCount": 1, "shareCount": 0, "collectCount": 5, "playCount": 2615, "downloadCount": 0, "recommendCount": 4 },
  "hashtags": [],
  "images": [],
  "input": "quicklook"
}
```

`videoMeta.duration` is in milliseconds. Image posts (`"type": "image"`) list their images in `images`, without watermark. `statistics.playCount` is filled only when `includePlayCounts` is on. `ipLocation`, on the post and on the author, is the province or country Douyin shows for them.

With `maxPostsPerProfile: 0`, one row per profile, with the `authorMeta` fields above.

Profiles and links that can't be read get a row with the reason, free of charge:

```json
{ "input": "https://www.douyin.com/video/7000000000000000001", "error": "Not found" }
```

### Price

- **$1 per 1,000 videos**
- **$0.003 per profile or video link** that returns results
- **$1 per 1,000 play counts**, when you turn them on
- Private, deleted or invalid profiles and links: free

| Run | Cost |
|---|---|
| 10 profiles, 100 posts each | $1.03 |
| 100 profiles alone | $0.30 |
| 1,000 video links | $4 |

A run stops at the maximum cost you set for it. On Apify's free plan, a run returns up to 100 results.

### FAQ

**Do I need a Douyin account, cookies or a Chinese proxy?**
No.

**Can it download the video files?**
Each row links to the video without watermark (`videoMeta.playUrl`), valid for about a day, and to its cover.

**Can I search by keyword?**
Use the Douyin Search Scraper.

**Is it legal?**
It reads only public profiles and videos. Captions, usernames and locations can be personal data under China's PIPL, the GDPR and similar laws: use them for a legitimate purpose and honor deletion requests.

# Actor input Schema

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

Profile URLs (douyin.com/user/…), share links (v.douyin.com/…) or Douyin IDs (抖音号), one per line.

## `maxPostsPerProfile` (type: `integer`):

Newest first, videos and image posts. 0 returns the profiles alone.

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

Only posts from the last N days.

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

A date, or a period like 7 days for scheduled runs. UTC.

## `excludePinnedPosts` (type: `boolean`):

Pinned posts stay on top of a profile however old they are.

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

Video or image post URLs, share links or whole share texts, one per line.

## `includePlayCounts` (type: `boolean`):

Douyin hides plays from profiles; this looks them up for each post, at an extra charge.

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.douyin.com/user/MS4wLjABAAAAcql96AwAhCEywWGo4ERqVzfOGUazbiUlobEuF3o_dBYJh915kpZyQB6LjbuHXnGA"
  ],
  "maxPostsPerProfile": 20,
  "excludePinnedPosts": false,
  "includePlayCounts": false
}
```

# Actor output Schema

## `videos` (type: `string`):

No description

## `profiles` (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 = {
    "profileUrls": [
        "https://www.douyin.com/user/MS4wLjABAAAAcql96AwAhCEywWGo4ERqVzfOGUazbiUlobEuF3o_dBYJh915kpZyQB6LjbuHXnGA"
    ],
    "maxPostsPerProfile": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfinch/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 = {
    "profileUrls": ["https://www.douyin.com/user/MS4wLjABAAAAcql96AwAhCEywWGo4ERqVzfOGUazbiUlobEuF3o_dBYJh915kpZyQB6LjbuHXnGA"],
    "maxPostsPerProfile": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("rowfinch/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 '{
  "profileUrls": [
    "https://www.douyin.com/user/MS4wLjABAAAAcql96AwAhCEywWGo4ERqVzfOGUazbiUlobEuF3o_dBYJh915kpZyQB6LjbuHXnGA"
  ],
  "maxPostsPerProfile": 20
}' |
apify call rowfinch/douyin-scraper --silent --output-dataset

```

## MCP server setup

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