# Douyin Transcript Scraper: Text, SRT & English, $1.99/1K (`laptime/douyin-transcript-scraper`) Actor

From $1.99/1K transcripts (first minute included), no start fee, songs and failures free. No login. Paste Douyin (抖音) links, share text, ids, creators or collections: Chinese text, timestamps, SRT, chapters, likes, shares; optional English translation.

- **URL**: https://apify.com/laptime/douyin-transcript-scraper.md
- **Developed by:** [Laptime](https://apify.com/laptime) (community)
- **Categories:** Videos, Social media, Agents
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.29 / 1,000 transcript (speech-to-text)s

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 Scraper** turns Douyin (抖音) videos into text: paste video links, `v.douyin.com` share links (or the whole share text from the app), video ids, a creator's page or a collection, click **Start**, and export the Chinese transcript with timestamps, SRT subtitles, Douyin's chapters and an optional English translation. No login.

[![How to use Douyin Transcript Scraper without coding: paste a Douyin link, turn on English, click Start, export to Excel](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/douyin-transcript-scraper-steps.jpg?v=20261120)](https://raw.githubusercontent.com/laptimehq/laptime-assets/main/howto/douyin-transcript-scraper-steps.jpg?v=20261120)

1. Click **Try for free** at the top of this page (a free Apify account includes $5 of credit every month).
2. In **Douyin links / 抖音链接**, paste links, one per line, for example `https://www.douyin.com/video/7534679152504376595`. Turn on **English translation** (optional, paid) if you don't read Chinese.
3. Click **Start**. One video takes about 5 seconds; 50 videos about 30 seconds.
4. Open the **Output** tab and click **Export** → **Excel** or CSV.

> 💰 **$1.99 per 1,000 transcripts**, first minute of audio included, then $0.0015 per started minute. No start fee; songs, music-only, private and failed videos are free. Example: 100 two-minute videos ≈ **$0.35**; the free plan covers about 1,400 of them a month.
>
> ⚡ **50 Douyin videos transcribed in 31 seconds** (a creator's latest posts and collection, 19 Nov 2026, [benchmarks](#benchmarks)).
>
> 🌐 **English translation** with the same timestamps and English SRT, for $0.0015 per 1,000 characters. 🧭 **Douyin's own chapters and video summary** on every row. 📚 **Creators beyond the latest 18 posts:** we continue through their collections (合集), episode by episode. 🔔 **Only-new monitoring**: a run with nothing new costs $0.

| Video | Creator | Likes / shares / saves | Transcript | English |
|---|---|---|---|---|
| [7680748547309915428](https://www.douyin.com/video/7680748547309915428) | 央视网 (73.9M followers) | 15,065 / 272 / 1,482 | 我现在呢，验试在吉隆口岸受灾的核心区。这个红色挖机，往前大概目测只有20米的距离… (107 characters) | I am now in the core disaster area at the Gyirong Port. This red excavator is about 20 meters ahead… |

**Common mistakes**

- A creator gives only ~18 videos → Douyin shows logged-out visitors the latest ~18 posts. Raise **Max videos per creator or collection** and keep **continue with their collections** on: we then read the creator's collections (合集) episode by episode.
- A video came back as `lyrics` or `no_speech` → its audio is a song or music only. You get the song text in `lyrics` and the row is free. Turn on **On-screen text** to read the subtitles burned into the video instead.
- English speech came out as Chinese characters → set **Spoken language** to `auto` (or `en`). The default `zh` hint is the most accurate for Mandarin, which is almost all of Douyin.
- Search keywords → Douyin's search needs a logged-in account, so this Actor doesn't search. Paste creators, collections or sounds (`douyin.com/music/…`) instead.

**Questions or problems?** [Open an issue](https://apify.com/laptime/douyin-transcript-scraper/issues/open) (we read every one and usually answer within a few hours). **Need a custom version** (comments, another site, a private build)? Ask in an issue: we can build it as a private Actor on Apify.

### 中文说明

**抖音文字稿提取（Douyin Transcript Scraper）**：粘贴抖音视频链接、分享口令（整段复制粘贴即可）、视频 ID、作者主页或合集链接，点击 **Start**，即可导出每个视频的中文文字稿。无需登录，无需抖音账号或手机号。

1. 在 **Douyin links / 抖音链接** 中每行粘贴一个链接，例如 `https://www.douyin.com/video/7534679152504376595`，或 App 里复制的整段分享口令。
2. 点击 **Start**。一个视频约 5 秒，50 个视频约 30 秒。
3. 打开 **Output**，选择 **转写 (中文)** 视图：标题、作者、文字稿、开头钩子、章节、点赞/分享/收藏、合集和 SRT 时间轴。点击 **Export** 导出 Excel 或 CSV。

- 文字稿为**简体中文、带标点**，附逐句时间轴（`segments`）和 SRT/WebVTT 字幕（默认附带 SRT）。
- **英文翻译、AI 摘要、画面文字识别均为可选付费项，默认关闭。** 中文文字稿本身按 $1.99 / 1,000 个视频计费（含第 1 分钟音频，之后每分钟 $0.0015）；歌曲、纯音乐、私密或失败的视频不收费。
- 作者主页：未登录只能看到最新约 18 个作品，之后我们会继续转写该作者的合集。抖音搜索需要登录，所以本工具不支持关键词搜索。

### What is Douyin Transcript Scraper?

**Douyin Transcript Scraper** is a Douyin video to text API: for every video it returns the full Chinese transcript, timestamped segments, SRT/WebVTT subtitles, the opening hook, Douyin's own chapters and summary, the creator (with follower count), likes, comments, shares, saves, category, hashtags, music and collection. With **English translation** on, you also get the transcript, timed lines, SRT and title in English. No Douyin account, no Chinese phone number, no cookies.

Douyin doesn't publish caption files, so every transcript comes from our **Whisper speech-to-text** with a Mandarin language hint (it cut the word error rate from 25.6% to 9.6% in our 2026-11 model test). The first minute of audio is included in the price.

- 🌏 **Research Chinese social media without reading Chinese:** English transcript, title and AI summary per video.
- ✍️ **Repurpose Douyin content:** scripts, subtitles and blog posts from what was actually said.
- 🔍 **Study creators and niches:** a creator's latest videos and full collections with their hooks, chapters and engagement.
- 🤖 **Feed AI agents and RAG:** clean text plus timed segments, one row per video, flat fields.
- 📈 **Track competitors:** schedule a creator with only-new monitoring; each run delivers only new videos.

### How does it compare?

List prices (free plan) and features, checked on 19 Nov 2026:

| | **Laptime** | lance_api | apple_yang |
|---|---|---|---|
| 1,000 one-minute videos | **$1.99** | $8.00 ($1 + $7 per started minute) | $9.00 |
| 1,000 two-minute videos | **$3.49** | $15.00 | $9.00 |
| English translation, per 1,000 characters | **$0.0015** | $0.10 | |
| Creator pages, collections, sounds | **✅** | | |
| Douyin chapters + summary, on-screen text, AI summary, monitoring | **✅** | | |

### What data do you get?

| | | |
|---|---|---|
| 📝 Chinese transcript | ⏱️ Timed segments (start, end, text) | 🎬 SRT and WebVTT subtitles |
| 🌐 English translation, timed English lines, English SRT and title (optional) | 🧭 Douyin's chapters and video summary | 🪝 The hook: what is said in the first 3 seconds |
| 👤 Creator, sec_uid, profile link, followers | ❤️ Likes, comments, shares, saves | 🏷️ Category path and hashtags |
| 🎵 Music (original sound or song) and free song lyrics | 📚 Collection (合集) and episode number | 🔤 On-screen text: burned-in subtitles and titles (optional) |
| 📅 Publish date, duration, cover image | 🤖 AI summary and key points in English (optional) | 🔗 Permanent video URL and the input you gave |

Douyin doesn't show view counts to the public web, so `viewCount` is null rather than a fake 0.

### Use cases with copy-paste inputs

#### One video, with an English translation and summary

```json
{ "startUrls": ["https://www.douyin.com/video/7534679152504376595"], "translateToEnglish": true, "aiSummary": true, "aiSummaryLanguage": "en", "includeSrt": true }
```

#### A creator's latest videos and their collections

```json
{ "startUrls": ["https://www.douyin.com/user/MS4wLjABAAAAzQO_AJd_oZkuoGv4lDBFiu4IWV-LTJUwi6xmKC3khdY"], "maxVideosPerChannel": 50 }
```

The latest ~18 posts first, then each collection (合集) in episode order, each row with `collectionName` and `episode`.

#### Share text pasted from the Douyin app

```json
{ "startUrls": ["7.43 复制打开抖音，看看【央视网的作品】 https://v.douyin.com/mi-Dvafw0HI/ 复制此链接"] }
```

Only the link inside is used; `v.douyin.com` links open the video or creator they point to.

#### New videos of a creator, every day

```json
{ "startUrls": ["https://www.douyin.com/user/MS4wLjABAAAAk9mpFofCPQpsv1I1SVFxdb-A_BWiJnGy1qoDQxLEB4s"], "maxVideosPerChannel": 18, "onlyNew": true, "monitorName": "car-tips" }
```

Schedule it as a task: each run delivers (and charges) only videos you haven't received yet. **Monthly cost example:** 10 creators posting one 2-minute video a day ≈ 300 videos ≈ **$1.05/month**.

#### Burned-in subtitles and titles (on-screen text)

```json
{ "startUrls": ["https://www.douyin.com/video/7706500557700565203"], "includeOnScreenText": true }
```

#### A collection or a sound

```json
{ "startUrls": ["https://www.douyin.com/collection/7226017675682514983", "https://www.douyin.com/music/7534679127857777458"], "maxVideosPerChannel": 30 }
```

### How much does it cost?

| Event | Price | When |
|---|---|---|
| `speech-transcript` | **$1.99 / 1,000** | a video transcribed from its audio, first minute included |
| `speech-minute` | **$0.0015** | each started minute of audio after the first |
| `translation` | **$0.0015** | per started 1,000 characters translated to English (a 2-minute video is about 700), only when turned on |
| `on-screen-text` | **$0.0018** | only with **On-screen text** on, and only for videos where text was found |
| `ai-summary` | **$0.005** | only when you turn the AI summary on |

Lower prices on paid Apify plans (down to $1.29 per 1,000 transcripts). Worked example: 100 two-minute videos = 100 × ($0.00199 + $0.0015) = **$0.35**; with English translation add about $0.15. Listing creators and collections, songs (`lyrics`), music-only videos (`no_speech`), private or removed videos and failures are free. No start fee.

With your own LLM key in **Your own LLM API key**, on-screen text and AI summaries are never charged. On the Apify free plan, translation and on-screen text cover 100 videos per run on our AI.

**Works on the Apify free plan:** the $5 of monthly platform credit covers about 1,400 two-minute videos, no card needed.

### English translation

Turn on **English translation** (`translateToEnglish`) and every timed line is translated, so the English keeps the original timestamps:

- `translation`: the whole transcript in English;
- `translatedSegments`: `[{start, end, text}]` in English, same timing as `segments`;
- `translatedSrt`: English subtitles (with **SRT subtitles** on);
- `titleTranslation`: the title in English.

Videos already in English are returned as they are and not charged. For an English summary of a Chinese video, also turn on **AI summary** with **Summary language** `en`. The **English** view shows title, translation, AI summary and Douyin's summary side by side.

### On-screen text (OCR)

Many Douyin videos burn their subtitles and titles into the picture. Turn on **On-screen text** (`includeOnScreenText`) and an AI vision model reads up to 12 frames: subtitles, titles and stickers, one line each, in order, in `onScreenText`. It works on music-only videos too. `onScreenTextStatus` is `ok` (text found, charged), `none` (no text, free), `skipped` or `failed` (free).

### Douyin transcripts in Python, JavaScript and AI agents

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("laptime/douyin-transcript-scraper").call(run_input={
    "startUrls": ["https://www.douyin.com/video/7534679152504376595"],
    "translateToEnglish": True,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["url"], row["text"], row["translation"])
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('laptime/douyin-transcript-scraper').call({ startUrls: ['https://v.douyin.com/mi-Dvafw0HI/'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

One request that runs the Actor and returns the rows:

```bash
curl -X POST "https://api.apify.com/v2/acts/laptime~douyin-transcript-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' -d '{"startUrls":["https://www.douyin.com/video/7534679152504376595"],"translateToEnglish":true}'
```

**MCP (Claude, ChatGPT, Cursor):** add `https://mcp.apify.com?tools=laptime/douyin-transcript-scraper` and ask *"What does this Douyin video say, in English? <URL>"* or *"Summarise this creator's last 10 Douyin videos."* Claude Code:

```bash
claude mcp add --transport http laptime-douyin "https://mcp.apify.com?tools=laptime/douyin-transcript-scraper"
```

Send the rows to Google Sheets, n8n, Make or Zapier through Apify's integrations, or to any URL with a webhook.

### Output

Real output (shortened) for `https://www.douyin.com/video/7680748547309915428` with English translation on:

```json
{
  "status": "ok",
  "chargedEvent": "speech-transcript",
  "platform": "douyin",
  "url": "https://www.douyin.com/video/7680748547309915428",
  "title": "#媒体原创 大型机械已推进至西藏吉隆口岸受灾核心区，现场正加快搜寻失联人员的痕迹。#直击第一线",
  "titleTranslation": "#MediaOriginal Heavy machinery has advanced to the core disaster area of Tibet's Gyirong Port, where the search for traces of missing personnel is being accelerated. #LiveOnTheFrontline",
  "author": "央视网",
  "authorFollowers": 73907637,
  "publishedAt": "2026-09-02T01:47:12.000Z",
  "durationSeconds": 26.05,
  "likeCount": 15065,
  "shareCount": 272,
  "saveCount": 1482,
  "category": "时政社会 > 社会新闻 > 民生",
  "language": "zh",
  "transcriptSource": "speech-to-text",
  "hook": "我现在呢，验试在吉隆口岸受灾的核心区。",
  "text": "我现在呢，验试在吉隆口岸受灾的核心区。这个红色挖机，往前大概目测只有20米的距离。…",
  "translation": "I am now in the core disaster area at the Gyirong Port. This red excavator is about 20 meters ahead by visual estimate. …",
  "translationStatus": "ok",
  "segments": [{ "start": 0, "end": 4.344, "duration": 4.344, "text": "我现在呢，验试在吉隆口岸受灾的核心区。" }, { "start": 4.344, "end": 9.373, "duration": 5.029, "text": "这个红色挖机，往前大概目测只有20米的距离。" }],
  "translatedSegments": [{ "start": 0, "end": 4.344, "text": "I am now in the core disaster area at the Gyirong Port." }, { "start": 4.344, "end": 9.373, "text": "This red excavator is about 20 meters ahead by visual estimate." }]
}
```

The default video (`7534679152504376595`, a driving tip) also shows Douyin's chapters, summary and collection:

```json
{
  "chapters": [{ "start": 0, "end": 26, "title": "引言" }, { "start": 26, "end": 54, "title": "空调除雾: 打开空调和AC，选择扇形图标，快速除雾。" }, { "start": 54, "end": 67.76, "title": "后视镜加热: 找到长方形图标打开，加热后视镜，防止沾水。" }],
  "chapterSummary": "雨天开车时，玻璃容易起雾影响视线，可通过三步快速除雾：打开空调和AC，选择扇形图标；打开后视镜加热功能。…",
  "collectionName": "新手开车技巧",
  "episode": 181
}
```

`status` is `ok` (transcript, charged), `lyrics` (a song: text in `lyrics`, free), `no_speech` (music only or silence, free), `private_or_removed`, `not_a_video` (photo post), `too_long`, `blocked`, `unsupported_url`, `speech_to_text_failed` or `error` (all free). Every row has the same fields (null when unknown). Cover, video and music links expire after a few hours; `url` and `authorUrl` are permanent.

### Benchmarks

Measured on Apify, total run time including start-up (`tools/benchmarks/douyin-transcript-bench.sh`):

| Job | Time | Result |
|---|---|---|
| Default input: 1 video, 3 runs (19 Nov 2026) | 5.5–5.7 s | 3/3 transcripts |
| A creator's latest posts + collection, 50 videos, 89 minutes of audio (19 Nov 2026) | **31 s** | 44 transcripts, 5 music-only and 1 song (free) |
| 3 videos of 0.5–3.5 minutes with on-screen text (19 Nov 2026) | 7.4 s | text found in 3 of 3 |
| 6 videos (1.5–3.5 min) with English translation, AI summary and SRT (19 Nov 2026) | 20.1 s | 6/6 translated and summarised |

### Switch from another Douyin transcript Actor

Your old input works as is: `startUrls`, `urls`, `videoUrls`, `videoUrl`, `videoIds` and `creatorUrls` all take links, share text, ids or creators; `maxItems` caps the run; `translate: true` with `targetLanguage: "en"` turns on the English translation; `formats: ["srt", "vtt"]` adds subtitle files.

### FAQ

#### Do I need a Douyin account or a Chinese phone number?

No. It reads what Douyin shows a logged-out visitor: public videos, creators and collections.

#### Why speech-to-text and not Douyin's subtitles?

Douyin's web pages don't publish caption files, so every video is transcribed from its audio with Whisper (first minute included in the price). Subtitles burned into the picture can be read with **On-screen text**.

#### How accurate is it?

Whisper with a Mandarin hint is accurate on clear speech; expect a few homophone slips (同音字) on fast or noisy speech. The timed segments make it easy to check a line against the video.

#### Why did a video come back as `lyrics` or `no_speech`?

`lyrics`: its audio is a song. You get the song text in `lyrics`, and the row is free. `no_speech`: music only or silence. Neither is charged.

#### Can I search Douyin by keyword?

Douyin requires a login for search, so this Actor doesn't search. Use creators, collections or sounds, or paste links from Douyin's app.

#### Is it reliable?

A daily automated check runs the default input and alerts us when it returns nothing. A video that fails is retried with a fresh guest session and IP; anything that still fails is listed with its reason and costs nothing.

#### Is it legal to scrape Douyin transcripts?

It reads public videos only and no personal data beyond what creators publish. Transcripts may be copyrighted by their creators: use them for analysis, research, translation and accessibility, and check Douyin's terms and your local law before republishing.

### Related Actors

The same engine, with a form made for one job:

- [Video Transcript Scraper](https://apify.com/laptime/video-transcript-scraper): transcripts of YouTube, TikTok, Instagram, Facebook and X videos, from $1.99/1K.
- [TikTok Transcript Scraper](https://apify.com/laptime/tiktok-transcript-scraper): TikTok captions or speech-to-text from links or profiles, from $1.99/1K.
- [Instagram Reels Transcript Scraper](https://apify.com/laptime/instagram-reels-transcript-scraper): reel transcripts, hooks and on-screen text.
- [YouTube Transcript Scraper](https://apify.com/laptime/youtube-transcript-scraper): YouTube subtitles with timestamps, chapters and SRT.

Other Chinese platforms, all with no start fee:

- [Bilibili Transcript Scraper](https://apify.com/laptime/bilibili-transcript-scraper): speech-to-text transcripts of Bilibili videos.
- [Bilibili Scraper](https://apify.com/laptime/bilibili-scraper): videos, comments, danmaku and rankings.
- [Weibo Scraper](https://apify.com/laptime/weibo-scraper): hot search, posts, comments and profiles, with English translation.

### Feedback and support

Open an issue on the **Issues** tab: we answer within a day. Other platforms: [Video Transcript Scraper](https://apify.com/laptime/video-transcript-scraper).

If Douyin Transcript Scraper saved you time, a short review on the **Reviews** tab helps other people find it. We read every one, thank you!

# Changelog

This Actor's version history is a separate document: https://apify.com/laptime/douyin-transcript-scraper/changelog.md

# Actor input Schema

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

One per line: video links (douyin.com/video/…, /note/…, any page with ?modal_id=…, iesdouyin.com/share/video/…), v.douyin.com share links or the whole share text copied from the app, bare 19-digit video ids; creator pages (douyin.com/user/MS4wLjABAAAA…, or the bare sec_uid): their latest ~18 videos, then their collections (合集); collections (douyin.com/collection/…) in episode order; sounds (douyin.com/music/…). Douyin has no public caption files, so every transcript comes from our speech-to-text. 每行一个：视频链接、分享口令（整段粘贴即可）、视频 ID、作者主页或合集链接。

## `translateToEnglish` (type: `boolean`):

Also translate the transcript into English with AI: "translation" (full text), "translatedSegments" (same timestamps) and "translatedSrt" (English subtitles, with SRT on), plus "titleTranslation". Off by default. Charged $0.0015 per started 1,000 characters of transcript (translation event; a 2-minute video is about 700 characters). Free plan: 100 videos per run. 默认关闭；中文文字稿始终免费附带。

## `includeOnScreenText` (type: `boolean`):

Also read the text shown in the video (burned-in subtitles, titles, stickers) with an AI vision model: "onScreenText", one line each, in order. Works on music-only videos too. Adds a few seconds per video. Charged $0.0018 per video where text is found (on-screen-text event); free with your own key; Apify free plan: 100 videos per run.

## `maxSpeechMinutes` (type: `integer`):

Longest video to transcribe; longer videos return a free "too_long" row. The first minute of audio is included in the $1.99 per 1,000 price; each further started minute costs $0.0015 (speech-minute). Default 60.

## `speechLanguage` (type: `string`):

Language hint for speech-to-text. "zh" (default) suits almost all Douyin videos and is the most accurate; "auto" lets the model detect it (for mixed-language channels); pick another when you know the videos are in it.

## `maxVideosPerChannel` (type: `integer`):

For creator, collection and sound links: how many videos to transcribe. Creators: Douyin shows logged-out visitors the latest ~18 posts, then we continue with the creator's collections (合集) episode by episode. Default 10. Listing is free; each transcript is charged as usual.

## `includeCollections` (type: `boolean`):

After a creator's latest posts, transcribe the videos of their public collections, episode by episode, until "Max videos per creator" is reached. Off = latest posts only.

## `onlyNew` (type: `boolean`):

Skip videos that an earlier run with the same monitor name already delivered. Schedule a creator with this on to receive (and pay for) only new videos; a run with nothing new costs $0.

## `monitorName` (type: `string`):

Optional. Name of the only-new memory, e.g. "car-tips-daily"; runs with the same name share it. Letters, digits and dashes.

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

Safety cap on the number of videos one run processes, after channels, playlists and searches are expanded. Default 1,000.

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

On (default): add "segments", a list of {start, end, duration, text} in seconds, for each caption line.

## `includeTimestampedText` (type: `boolean`):

Add "timestampedText": one "\[mm:ss] text" line per caption, easy to quote in an LLM prompt. Off by default.

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

On (default): add the transcript as an SRT subtitle file in "srt" (the 时间轴 column of the "转写 (中文)" view). Turn off for smaller rows.

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

Add the transcript as a WebVTT subtitle file in "vtt". Off by default.

## `includeDescription` (type: `boolean`):

Include the video caption (the post text with hashtags) in "description". Turn off for smaller rows.

## `aiSummary` (type: `boolean`):

Add "aiSummary" (2-4 sentences) and "aiKeyPoints" (3-7 takeaways) to each transcript, written by Claude Haiku. Off by default. $0.005 per summary on our model; free with your own key. Apify free plan: 10 summaries per run.

## `aiSummaryLanguage` (type: `string`):

Optional. ISO code of the summary language: "en" (the prefill) = an English summary of a Chinese video. Empty = the transcript's language.

## `aiApiKey` (type: `string`):

Optional. Your OpenRouter (sk-or-…), OpenAI, Anthropic (sk-ant-…) or Gemini (AIza…) key. With your own key, AI summaries and on-screen text are not charged (the English translation always runs on our model). Empty = our hosted models.

## `aiModel` (type: `string`):

Optional. Model id for your own key or endpoint, e.g. "gpt-4.1-mini". Empty = a sensible default for the key type.

## `aiBaseUrl` (type: `string`):

Optional. Base URL of an OpenAI-compatible API (a local Ollama or vLLM server reachable from Apify), used with your own key and model; not charged.

## `maxConcurrency` (type: `integer`):

How many videos are processed at the same time. Default 10.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.douyin.com/video/7534679152504376595",
    "7.43 复制打开抖音，看看【作品】 https://v.douyin.com/mi-Dvafw0HI/ a@b.Cn 11/02",
    "7706500557700565203",
    "https://www.douyin.com/user/MS4wLjABAAAAzQO_AJd_oZkuoGv4lDBFiu4IWV-LTJUwi6xmKC3khdY"
  ],
  "translateToEnglish": false,
  "includeOnScreenText": false,
  "maxSpeechMinutes": 60,
  "speechLanguage": "zh",
  "maxVideosPerChannel": 10,
  "includeCollections": true,
  "onlyNew": false,
  "maxVideos": 1000,
  "includeSegments": true,
  "includeTimestampedText": false,
  "includeSrt": true,
  "includeVtt": false,
  "includeDescription": true,
  "aiSummary": false,
  "aiSummaryLanguage": "en",
  "maxConcurrency": 10
}
```

# Actor output Schema

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

Every row, one per video.

## `overview` (type: `string`):

The Transcripts view: status, title, author, language and text.

## `runStats` (type: `string`):

RUN_STATS: transcripts by source and status, charges, timings, proxy and speech-to-text usage.

# 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/7534679152504376595"
    ],
    "aiSummaryLanguage": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("laptime/douyin-transcript-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/7534679152504376595"],
    "aiSummaryLanguage": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("laptime/douyin-transcript-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 '{
  "startUrls": [
    "https://www.douyin.com/video/7534679152504376595"
  ],
  "aiSummaryLanguage": "en"
}' |
apify call laptime/douyin-transcript-scraper --silent --output-dataset

```

## MCP server setup

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