# Douyin Transcript (抖音) - Chinese Speech to Text, SRT & Metadata (`kantolabs/douyin-transcript`) Actor

Turn public Douyin (抖音) videos into accurate punctuated Chinese transcripts: text, timed segments, SRT/VTT subtitles, plus title, hashtags, author and likes. Failed videos are free. | 抖音视频转文字：带标点的中文文案、时间轴、SRT字幕及视频标题、话题、作者和点赞数，失败不收费。

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

## Pricing

from $5.60 / 1,000 transcripts

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 Transcript: Chinese Speech to Text, SRT & Video Metadata (抖音 转文字)

**Douyin Transcript** turns public **Douyin (抖音) videos into accurate, punctuated Chinese transcripts**. Paste video links, `v.douyin.com` share links, the share text copied from the Douyin app, or plain video IDs, and get back the full text, **timed segments**, ready-made **SRT and WebVTT subtitles** and the video's **metadata** (title, hashtags, author, followers, likes, comments, shares, saves, music, Douyin's own category tags). One row per input, in your order. **Failed, deleted, private and blocked videos are free.**

Speech recognition runs on **SenseVoice-Small**, a speech model trained by Alibaba's FunAudioLLM team on hundreds of thousands of hours of Chinese, Cantonese, English, Japanese and Korean. It writes **punctuation** (，。？！) and numbers the way people write them, and it gets names and everyday Mandarin right where Whisper-based tools stumble.

### What you get for each video

| Field | Example |
|---|---|
| `transcript` | 雨天开车玻璃上是不是很容易起雾？你看我这个玻璃。根本上看不清楚前面的路况…… |
| `segments` | `[{"start": 0.26, "end": 2.88, "text": "雨天开车玻璃上是不是很容易起雾？"}, …]` |
| `srt` / `vtt` | complete subtitle files as text, lines balanced for Chinese (max 2 × 16 characters) |
| `language`, `languages` | `zh` (also `yue` Cantonese, `en`, `ja`, `ko`; mixed videos list all) |
| `firstSpokenLine` | the hook: the first sentence spoken |
| `characterCount`, `wordCount`, `speechSeconds` | text length and how much of the video is speech |
| `hasBackgroundMusic` | `true` when music plays under (or instead of) the voice |
| `title`, `description`, `hashtags`, `publishedAt`, `durationSeconds` | from Douyin |
| `authorName`, `authorDouyinId`, `authorUrl`, `authorFollowers`, `authorVerified` | creator |
| `likeCount`, `commentCount`, `shareCount`, `collectCount` | engagement at the time of the run |
| `musicTitle`, `musicAuthor`, `douyinCategories`, `coverUrl`, `width`, `height` | extras |
| `status`, `error`, `billedTranscripts`, `billedExtraMinutes` | what happened and what it cost |

Clean, flat rows: they drop straight into Google Sheets, Airtable, a CRM or an LLM prompt.

### How to use it

1. Paste one Douyin video per line into **Douyin video links**. All of these work:
   - `https://www.douyin.com/video/7534679152504376595`
   - `https://v.douyin.com/xxxxxxx/` (a share link)
   - the whole share text from the app: `7.43 复制打开抖音，看看【…的作品】… https://v.douyin.com/xxxxxxx/ 复制此链接…`
   - `https://www.douyin.com/jingxuan?modal_id=7534679152504376595`
   - `https://www.iesdouyin.com/share/video/7534679152504376595/`
   - the 19-digit video ID alone
2. Click **Start**. A one-minute video takes about 15-20 seconds, a 10-minute video about 3 minutes.
3. Open the **Transcripts** view, or download JSON / CSV / Excel. Call it from the API, schedule it, or plug it into Make, n8n or Zapier.

**From a scraper:** put the ID of any Apify dataset that holds Douyin links or IDs (for example the output of a Douyin search or profile scraper) into **dataset**. **Watch mode** remembers what was already transcribed, so a scheduled run only pays for new videos.

### Pricing

Pay per result, no subscription. Only **finished transcripts** are charged:

| Event | Free & Starter plans | Scale plan | Business plan |
|---|---|---|---|
| **Transcript** (one video, includes the first minute of audio) | $0.007 | $0.0063 | $0.0056 |
| **Extra minute** (each started minute after the first) | $0.006 | $0.0054 | $0.0048 |

Plus Apify's standard actor start fee ($0.00005 per GB of memory, so $0.0001 per run at the default 2 GB).

**Examples (Free/Starter):**

- a 45-second video = 1 transcript = **$0.007**
- a 2:30 video = 1 transcript + 2 extra minutes = **$0.019**
- 100 one-minute videos = **$0.70**
- a 20-minute video = 1 transcript + 19 extra minutes = **$0.121**

**Free (never charged):** deleted, private or blocked videos, videos Douyin does not allow outside the app, image posts, videos with no speech (music only), duplicates, links that are not Douyin videos, videos over your length limit, and anything skipped because of your "Max cost per run" or the run timeout. Set **Max cost per run** in the run options and the actor stops cleanly before going over it.

### Why this Douyin transcript tool

- **Accurate Chinese with punctuation.** In our tests on real Douyin videos SenseVoice wrote 联检大楼, 失联人员, 后视镜, 扇形图标 correctly; a Whisper-small run of the same clips wrote 连检, 失恋人员, 后续镜, 善行图标 and no punctuation at all.
- **Subtitles ready to use.** SRT and WebVTT with Chinese-length lines, cut at commas and full stops, not in the middle of a word.
- **Metadata included** at no extra cost: no second scraper needed.
- **Free failures, one row per input.** Every input gets a row with a plain-English reason, so you can match results to your list. Only finished transcripts are charged.
- **No login, no cookies.** The actor opens the same public player Douyin offers every website for embedding its videos.

### Limits (honest list)

- **Public videos only.** Private, deleted and age- or region-restricted videos return a free `not-found` / `not-embeddable` row. A few videos are not allowed outside the Douyin app by their owner or by Douyin (the player says 当前内容无法播放); those are free rows too.
- **Image posts (图文)** have no speech: free `image-post` row with the metadata.
- **Music-only videos** return a free `no-speech` row. Sung lyrics are transcribed like speech and are less accurate than talk.
- **Languages:** Mandarin, Cantonese, English, Japanese, Korean. Other languages and strong dialects come out poorly.
- Speaker names are not detected (no "who said what").
- **Max video length** defaults to 30 minutes (up to 180); longer videos are skipped for free.

### FAQ

#### How do I get the transcript of a Douyin video?

Paste the link (or the share text from the app) and start the actor. The text, segments and subtitles are in the dataset a few seconds later.

#### Can I download Douyin subtitles as SRT?

Yes. Each row has an `srt` field with the full SRT file and a `vtt` field with WebVTT. Save the field's text as a `.srt` / `.vtt` file.

#### Does it translate to English?

Not yet. The transcript stays in the spoken language (Chinese text for Chinese speech; English speech is written in English). Paste the transcript into any translator or LLM.

#### Do I need a Douyin account or cookies?

No. Nothing is logged in and no cookies of yours are used.

#### Can I transcribe a creator's whole profile?

Give the actor a dataset of that creator's video links from a profile scraper (dataset field), or paste the links. Profile URLs themselves are not expanded.

#### Is it legal?

The actor reads publicly available videos through Douyin's public embed player, the same way a website shows an embedded Douyin video. You are responsible for how you use the transcripts (copyright, privacy). This actor is not affiliated with Douyin or ByteDance.

### Credits

Speech model: **SenseVoice-Small** by FunAudioLLM (Alibaba Tongyi Lab), from the FunASR project (https://github.com/FunAudioLLM/SenseVoice), run with sherpa-onnx (Apache-2.0). Voice activity detection: Silero VAD (MIT).

### More video tools from Kanto Labs

- [Social Video Transcript](https://apify.com/kantolabs/social-video-transcript): TikTok, Instagram, YouTube, Facebook and X videos to text.
- [Video Frame Extractor](https://apify.com/kantolabs/video-frame-extractor): keyframes and thumbnails from any video.
- [Video OCR](https://apify.com/kantolabs/video-ocr): read the on-screen text of videos.

Questions or a video that fails? Open an issue on the Issues tab; we answer within a day.

# Actor input Schema

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

One video per line. Any of: a douyin.com/video/... link, a v.douyin.com share link, the whole share text copied from the Douyin app (复制链接), a jingxuan/discover link with ?modal_id=, an iesdouyin.com share link, or the 19-digit video ID. Public videos only. One row per line, in the same order.

## `datasetId` (type: `string`):

ID of an Apify dataset whose rows hold Douyin video links or IDs (for example the output of a Douyin search or profile scraper). Fields read: awemeId, aweme_id, videoId, id, url, videoUrl, shareUrl and any field holding a douyin.com link. In an integration chain pass {{resource.defaultDatasetId}}.

## `maxItems` (type: `integer`):

Read at most this many rows from the dataset above.

## `maxVideoMinutes` (type: `integer`):

Videos longer than this are skipped as a free row, so one long video cannot eat your budget.

## `includeSegments` (type: `boolean`):

Add the subtitle-length segments with start and end times in seconds.

## `includeSrt` (type: `boolean`):

Add the transcript as an SRT subtitle file (text in the row).

## `includeVtt` (type: `boolean`):

Add the transcript as a WebVTT subtitle file (text in the row).

## `onlyNewVideos` (type: `boolean`):

Remember every video transcribed and skip it (free) on later runs. The list is kept in a named key-value store in your own Apify account. Handy for scheduled runs over a scraper's dataset.

## `watchlistName` (type: `string`):

Separate lists for separate projects, for example "competitors". Letters, numbers and dashes.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.douyin.com/video/7681665941524877011"
  ],
  "maxItems": 100,
  "maxVideoMinutes": 30,
  "includeSegments": true,
  "includeSrt": true,
  "includeVtt": true,
  "onlyNewVideos": false,
  "watchlistName": "default"
}
```

# Actor output Schema

## `transcripts` (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 = {
    "videoUrls": [
        "https://www.douyin.com/video/7681665941524877011"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("kantolabs/douyin-transcript").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 '{
  "videoUrls": [
    "https://www.douyin.com/video/7681665941524877011"
  ]
}' |
apify call kantolabs/douyin-transcript --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kantolabs/douyin-transcript"
        }
    }
}
```

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/q8Qjh1zuOX4f1ivdQ/builds/HUT5gvsHPBHtkwWPz/openapi.json
