# Douyin Video Details by Link (`automatic/douyin-video-scraper`) Actor

Paste Douyin (抖音) links or ids and get each post's caption, hashtags, publish time, likes, comments, shares and saves, creator, video link, cover, duration, music and photo-post images. Short v.douyin.com links and share text work.

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

## Pricing

from $2.49 / 1,000 posts

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 Video Details by Link

Paste Douyin (抖音) links and get one clean row per post: **the caption and
hashtags, publish time, likes, comments, shares and saves, the creator, the
video link, cover, duration and sound**, plus every image of a photo post.

- **Paste whatever you have:** douyin.com video and note links, `v.douyin.com`
  short links, share links, links with `modal_id=`, the whole share text copied
  from the Douyin app, or just the numeric ids. Up to 1,000 per run.
- **Engagement at a glance:** likes, comments, shares and saves for every post,
  with the exact publish time, ready for a spreadsheet or dashboard.
- **Know the creator:** nickname, Douyin handle (抖音号), bio, avatar, post
  count and profile link on every row.
- **Video and photo posts alike:** the video link, cover, duration and size, or
  every slideshow image with its own link, plus the sound's title and author.
- **No login, no cookies, no setup:** press Start with your links.
- **You pay only for posts delivered.** A typo, a removed or private post or a
  profile link is skipped and listed in the run summary, never charged.

Built for brand and social-media teams tracking Douyin campaigns, agencies
reporting on creators, researchers studying Chinese social media, and
cross-border sellers watching what sells on Douyin.

### Use cases

- **Campaign tracking:** paste the posts of a launch and follow likes,
  comments, shares and saves day by day with a scheduled run.
- **Creator vetting:** check how a creator's recent posts perform before you
  book them.
- **Content research:** collect captions, hashtags and sounds of the posts you
  care about for trend analysis.
- **Archiving:** keep a record of posts with their covers, images and video
  links.

### Quick start

Read two videos and a photo post:

```json
{
  "links": [
    "https://www.douyin.com/video/7372484719365098803",
    "https://v.douyin.com/-787EN-nLFs/",
    "https://www.douyin.com/note/7443029603163163938"
  ]
}
```

Share text copied straight from the app works too:

```json
{
  "links": ["7.43 复制打开抖音，看看【作品】https://v.douyin.com/-787EN-nLFs/ 复制此链接"]
}
```

Run with an empty input to see a small sample (two videos and a photo post).

### Input

| Field | Default | What it does |
|---|---|---|
| `links` | none | Douyin links or numeric post ids, up to 1,000. One per line. |

Accepted links: `douyin.com/video/<id>`, `douyin.com/note/<id>`,
`douyin.com/slides/<id>`, any douyin.com page with `modal_id=<id>`,
`iesdouyin.com/share/video/<id>`, `v.douyin.com/<code>` short links and the
app's share text. A link that is not a post, a removed post or a typo is
skipped and named in the run summary; everything else still runs.

### What you get

One row per post. Real example (cover link shortened):

```json
{
  "postId": "7372484719365098803",
  "url": "https://www.douyin.com/video/7372484719365098803",
  "shareUrl": "https://www.iesdouyin.com/share/video/7372484719365098803/",
  "postType": "video",
  "awemeType": 4,
  "description": "你对我的好我一直记得 因为只有你把我当小孩#双子座",
  "hashtags": [{ "name": "双子座", "id": "1570162538341377" }],
  "createdAt": "2024-05-24T08:46:14Z",
  "createTime": 1716540374,
  "author": {
    "nickname": "萧萧不吃辣",
    "secUid": "MS4wLjABAAAAGhTVHcr1tmaen43gOCk7JxI2ZHioZL3UzgmydgHUFFQ",
    "uniqueId": "L99612",
    "shortId": "612808329",
    "signature": "唯一小号@萧萧又怎么了",
    "avatarUrl": "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_f96ccdf24e53e435a85a1976f2c7fe0b.jpeg?from=327834062",
    "postCount": 651,
    "profileUrl": "https://www.douyin.com/user/MS4wLjABAAAAGhTVHcr1tmaen43gOCk7JxI2ZHioZL3UzgmydgHUFFQ"
  },
  "stats": {
    "likeCount": 312789,
    "commentCount": 4070,
    "shareCount": 79974,
    "collectCount": 19868
  },
  "video": {
    "playUrl": "https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0300fg10000cp856k7og65v9dtsd470&ratio=720p&line=0",
    "playUrls": ["https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0300fg10000cp856k7og65v9dtsd470&ratio=720p&line=0"],
    "videoUri": "v0300fg10000cp856k7og65v9dtsd470",
    "coverUrl": "https://p11-sign.douyinpic.com/tos-cn-i-0813c001/o4AAWPm4AU97EUKAFFAB8EIDQg9DUAcCfSfT9n~tplv-dy-resize-walign-adapt-aq:720:q75.webp?…",
    "durationSeconds": 8.01,
    "width": 1920,
    "height": 1080,
    "bitRates": []
  },
  "images": [],
  "imageCount": 0,
  "music": {
    "id": "7348905216869174025",
    "title": "@KD_B Music创作的原声一KD_B Music",
    "author": "KD_B Music",
    "durationSeconds": 29,
    "coverUrl": "https://p26.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-i-0813_oMDhlc4OEhKACgeCH1nztAM9h0AfAArgAzpkId.jpeg?from=327834062"
  },
  "chapters": [],
  "labels": [],
  "contentNotice": null,
  "geofencing": null,
  "input": "https://www.douyin.com/video/7372484719365098803",
  "collectedAt": "2026-11-17T13:35:32Z"
}
```

A photo post has `"postType": "photo"` and its images in order, each with a
display link and the save link Douyin offers:

```json
{
  "postType": "photo",
  "imageCount": 3,
  "images": [
    {
      "url": "https://p5-ex-gddgtc-sign.douyinpic.com/tos-cn-i-0813c001/oIWIrEBAvA8g9zwWAZCA3PsgNAKzii07IDB93~tplv-dy-aweme-images:q75.webp?…",
      "downloadUrl": "https://p5-ex-gddgtc-sign.douyinpic.com/tos-cn-i-0813c001/oIWIrEBAvA8g9zwWAZCA3PsgNAKzii07IDB93~tplv-dy-water-v2:…",
      "width": 1080,
      "height": 1440
    }
  ]
}
```

`labels` holds the badges Douyin shows on a post (for example 来自抖音精选)
and `contentNotice` the notice it shows under it (for example
作者声明：内容来源于网络). Fields a post does not have are `null` or empty.
The run summary (`OUTPUT` in the key-value store) lists skipped and failed
links with the reason and why the run stopped.

### Use it as an API

One public Douyin video or photo post with media and engagement. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.

```bash
curl --get 'https://automatic--douyin-video-scraper.apify.actor/' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --data-urlencode post=7372484719365098803
```

Send the same fields as a JSON object with `POST /`. Results are in `data`. See `GET /openapi.json` for the request and response definitions.

### Pricing

Pay per post delivered, with no start fee:

| | Free | Bronze | Silver | Gold and up |
|---|---|---|---|---|
| Post with all details | $3.49 / 1,000 | $3.19 / 1,000 | $2.79 / 1,000 | $2.49 / 1,000 |

Set a maximum cost per run and the run stops cleanly at it, keeping every
post already saved.

### Good to know

- You bring the links: this Actor reads the posts you paste. Douyin search,
  creator profiles (all posts of an account) and comments are not included.
- Play (view) counts are not included: Douyin's public post pages show 0 for
  every post.
- The video link is the one Douyin's own share page plays, exactly as served,
  so it carries Douyin's watermark. Video files are not downloaded into your
  storage; open or save them from `playUrl`.
- Cover, image and avatar links are signed by Douyin and stop working after a
  few weeks, so save the files you need soon after the run.
- Follower counts are not on the public post page and are not included; the
  creator's post count is.
- Hashtag ids are given when Douyin's page carries them exactly; for newer
  hashtags it only carries a rounded number, so `id` is `null` and the name is
  always there.
- Captions, names and labels are in Chinese as the creator wrote them.
- About 15 minutes for 1,000 links; the run warns up front when its
  timeout is too short for everything asked.

# Actor input Schema

## `links` (type: `array`):

Up to 1,000 Douyin videos or photo posts. Paste any link: https://www.douyin.com/video/7372484719365098803, a v.douyin.com short link, an iesdouyin.com share link, a /note/ photo-post link, a link with modal_id=, the whole share text copied from the app, or just the numeric id. A typo, a removed or private post, or a profile or search link is skipped and named in the run summary; the others still run. An empty run input reads a small sample.

## Actor input object example

```json
{
  "links": [
    "https://www.douyin.com/video/7372484719365098803",
    "https://www.iesdouyin.com/share/video/7580786002243947785/",
    "https://www.douyin.com/note/7443029603163163938"
  ]
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "links": [
        "https://www.douyin.com/video/7372484719365098803",
        "https://www.iesdouyin.com/share/video/7580786002243947785/",
        "https://www.douyin.com/note/7443029603163163938"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/douyin-video-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 = { "links": [
        "https://www.douyin.com/video/7372484719365098803",
        "https://www.iesdouyin.com/share/video/7580786002243947785/",
        "https://www.douyin.com/note/7443029603163163938",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("automatic/douyin-video-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 '{
  "links": [
    "https://www.douyin.com/video/7372484719365098803",
    "https://www.iesdouyin.com/share/video/7580786002243947785/",
    "https://www.douyin.com/note/7443029603163163938"
  ]
}' |
apify call automatic/douyin-video-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/douyin-video-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/uCd7fOKAsBUdf2Yt5/builds/9dtghwb1ynx0WeMze/openapi.json
