YouTube Transcript Scraper · Chinese-first, AI fallback avatar

YouTube Transcript Scraper · Chinese-first, AI fallback

Pricing

from $5.00 / 1,000 caption transcript (字幕逐字稿)s

Go to Apify Store
YouTube Transcript Scraper · Chinese-first, AI fallback

YouTube Transcript Scraper · Chinese-first, AI fallback

Get transcripts from YouTube videos - Chinese first. Only ~25-37% of Chinese videos have captions; this Actor transcribes the rest with AI.

Pricing

from $5.00 / 1,000 caption transcript (字幕逐字稿)s

Rating

0.0

(0)

Developer

Blue59

Blue59

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

11 days ago

Last modified

Features

Limited permissions

Share

YouTube Transcript Scraper · Chinese-first (中文影片逐字稿)

Extract transcripts from YouTube video, channel or playlist URLs, with configurable caption language preferences. Traditional and Simplified Chinese are preferred by default. Export transcript text as JSON, CSV or Excel; request SRT/VTT when timing is available. 以中文為預設優先序,也可調整其他語言。

AI fallback requires your own Groq key in groqApiKey and aiFallback: true in the standard configuration. Caption extraction needs no Groq key. AI runs when no caption track is selected; a selected track that fails to download or fails validation is reported as a failure. Your Groq account usage is separate from this Actor's result fee.

Manual captions are selected by preferredLanguages: exact matches across the list first, then language-family matches. Defaults prefer Traditional Chinese, Simplified Chinese, generic Chinese and English. Auto-captions prefer identifiable original-language tracks by default; see the language-selection limitations below. This Actor does not itself translate transcripts.

Price at a glance (result events only): captions $0.005 per video (50 successful videos = $0.25) · AI with your own Groq key $0.03 per successful video, without an Actor minute event. SRT/VTT add no Actor event. Actor start is separate; Groq account usage is separate. Failed attempts and partial/status rows have no result event; earlier complete rows may already be charged.

中文說明(繁體):貼上 YouTube 影片、頻道或播放清單網址,依語言偏好取得字幕逐字稿;沒有選到字幕軌時,須自備 Groq 金鑰,並開啟 aiFallback 才能用 AI 轉寫。原文訊號不足時仍可能選到機器翻譯,不保證取得中文字幕。

中文说明(简体):粘贴 YouTube 视频、频道或播放列表链接,按语言偏好获取字幕文字稿;没有选到字幕轨时,须自备 Groq 密钥,并开启 aiFallback 才能用 AI 转写。原文信号不足时仍可能选到机器翻译,不保证取得中文字幕。

批次用法 / 批量用法(一次貼多個網址 / 一次粘贴多个链接):

{
"videoUrls": [
"https://www.youtube.com/watch?v=示意1",
"https://www.youtube.com/watch?v=示意2",
"https://www.youtube.com/watch?v=示意3"
],
"maxItems": 50
}

What can this YouTube transcript scraper do?

  • 📝 YouTube transcript API without the hassle — captions from single videos, whole channels or playlists (completion depends on access and run timeout)
  • 🇹🇼 Chinese-first language picking — for human-made captions: Traditional → Simplified → generic Chinese → English by default, configurable for any language. 人工字幕:繁中 → 簡中 → 通用中文 → 英文
  • 🗣️ Original-language auto-caption preference — uses -orig tracks, then the video's language. If neither identifies an original track, the full auto-caption table is selected by language preferences and may include YouTube machine translation. Set autoCaptionOriginalLanguage to false to use preferences directly. 自動字幕優先原文訊號;訊號不足時仍可能選到機器翻譯。
  • 🎬 SRT / WebVTT subtitle files — optional, free, with timestamps. 可選 SRT/VTT 字幕檔,免費附加
  • 🤖 Optional AI fallback — no captions? Transcribe the audio with Whisper using your own Groq key
  • ✅ Text validation — blank/short text and recognized error-page markers fail validation; caption tracks labelled Chinese are also checked for Chinese-character content. Rejected attempts have no result event. 文字檢查有範圍,不保證辨識所有錯誤。
  • ⚙️ Apify platform features — API, scheduling, webhooks, integrations (Make, Zapier, n8n, Google Sheets), MCP for AI agents

How to scrape YouTube transcripts

  1. Click Try for free and open the Input tab.
  2. Paste YouTube video, channel or playlist URLs (or 11-character video IDs) into Video URLs.
  3. Adjust Language preference if you want a language other than Chinese first (e.g. en, ja, es).
  4. Optional: pick Subtitle files (srt / vtt); tick AI fallback and paste your Groq key for videos without captions.
  5. Click Start, then export the dataset (JSON, CSV, Excel, HTML) from the Output tab or fetch it through the API.

How much does it cost?

Prices below use the latest startedAt record in the supplied public YouTube Store data (pricingPerEvent.actorChargeEvents, fixed eventPriceUsd). Result fees and Actor start are separate; Groq account usage is not included.

EventPriceWhen
Caption transcript$0.005 per videoThe video has a caption track (manual or auto)
AI transcript$0.03 per videoNo captions; AI fallback on with your Groq key, transcription succeeded
Actor start$0.00005 per eventPlatform start count depends on Actor memory: one event per GB, minimum one

Example: 50 successful caption results × $0.005 = $0.25, plus start events. SRT/VTT add no result event. Failed attempts and partial/status rows have no result event; start events and earlier complete results remain chargeable. 字幕檔不另加 Actor 事件;啟動費另計,不能把整次失敗寫成完全免費。

Near a deadline or abort, completed rows are retained and validated finished audio chunks may be saved as status: "partial", alongside an early-stop summary. These rows are not charged as results. Final storage writes can fail; delivery and charging are separate, so the last complete result may be uncharged or partly charged. See RUN_STATUS and RUN_REPORT.

Input

FieldDescription
videoUrlsVideo, channel or playlist URLs (11-character IDs also accepted) 影片/頻道/播放清單網址
preferredLanguagesCaption language priority; Traditional Chinese first by default 語言優先序
autoCaptionOriginalLanguageDefault true: prefer identifiable original-language auto-captions; without original-language signals, fall back to preferences, possibly including machine translation. false: use preferences directly 自動字幕優先原文訊號,不足時仍可能機翻
aiFallbackTranscribe with AI when there are no captions (needs your Groq key) 沒字幕時用 AI
subtitleFormatsAlso return srt / vtt subtitle files (free) 字幕檔輸出
groqApiKeyYour Groq key, only needed for AI fallback Groq 金鑰
maxItemsCap when expanding a channel or playlist 頻道展開上限

Example input:

{
"videoUrls": ["https://www.youtube.com/watch?v=pDxi9MljStw", "https://www.youtube.com/watch?v=aircAruvnKk"],
"preferredLanguages": ["zh-Hant", "zh-TW", "zh-Hans", "zh", "en"],
"subtitleFormats": ["srt"],
"maxItems": 50
}

Output example

Illustrative field structure, not a measured run or customer result:

{
"videoId": "EXAMPLE_ID1A",
"url": "https://www.youtube.com/watch?v=EXAMPLE_ID1A",
"title": "Example video",
"channel": "Example channel",
"duration": 60,
"language": "en",
"source": "caption:manual",
"charCount": 64,
"transcript": "This is an illustrative transcript, not a recorded video result."
}

source tells you where the text came from: caption:manual (human captions), caption:auto (auto-captions) or ai:groq-whisper-turbo (AI transcription).

Subtitle files (SRT / VTT) — free add-on

Pick srt and/or vtt in Subtitle files. When usable timing exists, results can include fields such as:

{
"segments": [{"start": 1.0, "end": 3.5, "text": "大家好 歡迎收看本集節目"}],
"srt": "1\n00:00:01,000 --> 00:00:03,500\n大家好 歡迎收看本集節目\n\n",
"vtt": "WEBVTT\n\n00:00:01.000 --> 00:00:03.500\n大家好 歡迎收看本集節目\n\n"
}

Timestamps come from caption data or AI segments. With requested formats but no usable timing, the transcript is delivered with segments: [] and subtitleNote; srt/vtt are omitted. Empty formats keep plain output. 時間軸來自字幕或 AI 分段;無可用時間軸時不產出 SRT/VTT,留空則維持純文字。

Enabling AI fallback · AI 補位怎麼開

  1. Obtain your own key at console.groq.com; consult Groq for account limits and usage charges. 到 console.groq.com 申請自己的金鑰,用量與費用依 Groq 帳戶規定。
  2. Tick aiFallback and paste the key into groqApiKey. 勾選 aiFallback,把金鑰貼進 groqApiKey

Caption extraction does not require this key. YouTube can block audio downloads; a failed download does not produce an AI result event. 字幕擷取不需要此金鑰;音訊下載失敗不產生 AI 結果事件。

Use cases · 誰在用

  • Content research & competitor analysis — transcribe a whole channel for topic and keyword analysis 一次抓整個頻道做主題分析
  • AI pipelines — clean text for RAG, summarization, Q&A and LLM agents AI 工作流餵料
  • Subtitles & translation — get the original text and SRT, then translate or proofread 字幕與翻譯
  • Accessibility — add text to Chinese content that has no captions 無障礙
  • Language learning — Chinese/English transcripts with timestamps

Related tools for other sources; consult each Actor's own documentation and pricing:

ActorBest for
YouTube Transcript Scraper · Chinese-first (this one)YouTube videos, channels, playlists — captions in any language, Traditional/Simplified Chinese first
Any Video to Transcript (AI)Other video sources; see its own documentation
TikTok Transcript ScraperTikTok videos; see its own documentation
Facebook Video TranscriptFacebook videos, Reels, Watch, fb.watch

FAQ

Can I get a YouTube transcript in languages other than Chinese?

Yes. Set preferredLanguages for manual captions. Auto-captions prefer -orig tracks or the video language; without these signals, they fall back to language preferences and may include machine translation. Chinese is the default preference, not a translation guarantee.

Why don't I get a Chinese transcript of an English video?

The default auto-caption setting prefers identifiable original speech-recognition tracks rather than translated tracks. If the original language cannot be identified, preference selection may still return a translated track. Human-made translated captions can also match your preference list. 預設優先可辨識的原文軌;原文訊號不足時仍可能選到機器翻譯。

How do I get YouTube's machine-translated Chinese (or another language) instead?

Set Auto-captions in original language (autoCaptionOriginalLanguage) to false. Auto-captions are then picked by your Language preference list, so an English video can come back as YouTube's machine-translated Chinese. Check the language field to see which track was used. 想要 YouTube 機器翻譯的中文:把「自動字幕給原文」關掉(false),就會照語言優先序挑。

Does it work for whole YouTube channels and playlists?

Yes. Paste a channel or playlist URL and set Max videos (maxItems) to control how many videos are expanded.

What if a video has no captions?

Without available AI fallback, the video is logged as failed with no transcript result event; the start event is separate. With AI fallback on and your Groq key, a complete validated AI transcript triggers the AI result event.

Do I need a YouTube API key or Google account?

No YouTube API key or Google account is used. In the standard configuration, optional AI fallback needs your own Groq key and aiFallback: true.

Traditional vs Simplified Chinese — which one do I get?

Manual captions use exact matches across the preference list before language-family matches. Defaults list zh-Hant, zh-TW, zh-HK, zh-Hans, zh-CN, zh, then en. Auto-captions prefer identifiable original tracks (which may be Simplified); without original-language signals they use preferences. Set autoCaptionOriginalLanguage to false for preference selection directly. language is the chosen caption code, or literal auto for AI. 語言欄位不是自動翻譯承諾;原文訊號不足時仍可能機翻。

Can I download SRT or VTT subtitle files?

Yes — choose srt and/or vtt in Subtitle files. Free, no extra charge.

Why did some videos fail?

Typical reasons include no selected caption track with AI unavailable, private or age-restricted video, blocked downloads or rejected text. Failed attempts have no result event; start events remain separate. Normal RUN_REPORT includes error buckets (proxy, rate_limit, blocked, network, other); early stopping replaces it with a run-status summary. Proxy configuration cannot guarantee access.

Can I use it from code, Make, Zapier, n8n or an AI agent?

Yes — use the Apify API (run-sync-get-dataset-items), the Python/JavaScript clients, the built-in integrations, or the Apify MCP server so AI agents can call it as a tool.

This Actor only reads publicly available captions and audio. You are responsible for how you use the data — respect copyright, YouTube's terms and privacy laws such as GDPR. If unsure, consult a lawyer.

Something doesn't work — how do I get help?

Open an issue in the Issues tab with the run link and the video URL. We read every issue. 有問題請到 Issues 分頁留言。

Technical notes · 技術細節

Captions are fetched in the structured json3 format first (most reliable), falling back to vtt/srt with timestamp markup stripped. Retries depend on the status code (404 gives up immediately, 429 waits longer, 403/5xx back off). Errors are grouped into proxy / rate-limit / blocked / network / other in the run report. 字幕優先取 json3 結構化格式,退回 vtt/srt 並自動清掉時間軸標記;失敗依狀態碼分流重試。

中文 AI 轉錄整理 / Chinese AI transcript cleanup

chineseTranscriptCleanup 預設為 true,只影響 AI 轉錄;平台字幕與 Actor 計費事件不變。 chineseScript 為選填欄位,預設 auto:自動判成中文,或 languageHint 為 zh、zh-CN、zh-Hans 時,使用簡體中文與全形標點提示詞; 只有明確指定 zh-TW、zh-Hant、zh-HK 才使用繁體中文、台灣用語及全形標點提示詞。 香港、台灣客人可選 chineseScript: "traditional" 強制繁體,或維持 auto 並指定上述繁體語言碼;simplified 強制簡體。 字體選項優先於中文語言提示,但不強制語言;非中文不加提示詞、不翻譯。chineseTranscriptCleanup=false 時字體選項無效。 送 Groq 的中文語言碼仍統一為 zh。 沒有指定語言時,先用最多前 30 秒辨識語言,確定是中文才加提示詞;其餘正式轉錄請求保持原樣。 這會多一次語言探測請求與本機擷取時間,Groq 每次至少計 10 秒;不把探測長度加入 Actor 的分鐘數。 所有音訊切段都帶相同的中文提示詞。只在音訊段首/段尾完整符合清單且有句界時移除已知幻覺句, 移除數記為 hallucinationRemoved log;字幕時間軸也同步整理。正文、引述及黏連而無句界的內容保留。 若原音確實說了清單中的整句,仍有誤刪可能;設為 false 可完整保留舊 AI 行為。 自動辨識只看前 30 秒,開頭靜音、多語切換或錯判可能無法套用正確樣式;提示詞不保證辨識完全正確。

chineseTranscriptCleanup defaults to true and affects AI only; platform captions and Actor charge events are unchanged. chineseScript is optional and defaults to auto: detected Chinese and languageHint values zh, zh-CN, zh-Hans use Simplified Chinese with full-width punctuation. Only explicit zh-TW, zh-Hant, zh-HK select Traditional Chinese with Taiwan usage and full-width punctuation. Hong Kong/Taiwan users can set chineseScript: "traditional", or keep auto with one of those Traditional hints; simplified forces Simplified. The script choice overrides Chinese hint script only; it never forces the language or translates non-Chinese audio. It is ignored when chineseTranscriptCleanup=false. Chinese API language codes remain normalized to zh. Without a hint, one separate probe of up to the first 30 seconds detects the language before production transcription. Only confirmed Chinese receives a prompt on every audio chunk. Other production requests retain their original fields and bytes. The probe adds one request plus local extraction time; Groq bills at least 10 seconds per request. Actor minute counts exclude the probe. Only complete allowlisted phrases at audio-chunk boundaries are removed; counts appear in hallucinationRemoved logs and timed subtitles are cleaned too. Body text, quotations and phrases joined to other text without a sentence boundary are preserved. An identical phrase genuinely spoken at a boundary can still be removed; set the option to false for the original AI behavior. Detection uses only the beginning: silence, mixed languages or misclassification can prevent the intended style. Prompting does not guarantee accuracy.