YouTube字幕翻译 API · Translate subtitles via API
John
把 YouTube 字幕翻译成中文或任意语言。Translate captions via the translate_to input. Returns translated_to, non_timestamped, timestamped per URL.
Input
Output fields
Sign up on Apify or log in
The YouTube Transcript & Subtitles Scraper API Actor is ready to run with the inputs already set for "YouTube字幕翻译 API · Translate subtitles via API". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "YouTube字幕翻译 API · Translate subtitles via API" task
The YouTube Transcript & Subtitles Scraper API Actor will start running based on the input automatically. You can also change all the input fields, like youtube url(s) and translate to, to match your specific use case.
Receive the "YouTube字幕翻译 API · Translate subtitles via API" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as thumbnail, title, channel, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "YouTube字幕翻译 API · Translate subtitles via API" task via API.

Integrate "YouTube字幕翻译 API · Translate subtitles via API" into your workflow
Connect "YouTube字幕翻译 API · Translate subtitles via API" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay
每个视频返回一条记录:翻译好的字幕既有完整文本 non_timestamped,也有带时间戳的 timestamped 片段,translated_to 字段标明目标语言 zh-Hant,视频标题和频道名在 title 和 channel_name 里,原始字幕轨的语言也一并记录。整个数据集可以导出为 JSON、CSV 或 Excel,方便后续处理。
填 youtube_url,例如 https://www.youtube.com/watch?v=dQw4w9WgXcQ ,再把 translate_to 设为已保存的示例值 zh-Hant;想翻成别的语言,换成对应的语言代码就行。原字幕轨无法翻译时,任务会把原文字幕原样返回,不会报错,也不会中断运行。
用 Python 或 Node 的 apify-client 包启动任务,或者直接向该任务在 Apify API 上的运行端点发 POST 请求,传入 youtube_url 和设为 zh-Hant 的 translate_to,运行结束后以 JSON 拉取数据集,解析代码写一遍就够用。返回的中文是普通的 UTF-8 文本,不需要额外解码或转换。
在 Apify 控制台打开任务,点 Actions,然后 Schedule,填 0 */6 * * * 即每六小时运行一次,新上传视频的中文字幕几小时内就能准备好。再配上 Zapier、Make 或 webhook,每批完成的数据集都会自动推送到下一步。
把 https://mcp.apify.com/?tools=actors,docs,johnvc/youtubetranscripts 添加为 MCP 服务器之后,Claude 或任何其他 MCP 客户端都能直接把这个任务当作工具调用。在对话里让助手把某个视频的字幕翻译成中文,它会自己运行任务,再把带有 translated_to 标记的中文文本读回对话,整个过程不用离开聊天窗口,也不用打开控制台。
翻译不单独收费。YouTube字幕翻译 API · Translate subtitles via API 对每个成功转写的视频只计一次 videoprocessed 事件,无论结果来自缓存还是新抓取,翻成中文都包含在这一次事件里。当前费率见 Actor 页面的价格卡。
YouTube字幕下载 API · Download subtitles via API 保留字幕的原始语言,并额外给出 srt、vtt 和 text 文件内容。字幕翻译任务则通过 translate_to 把文本翻成中文再返回。两个输入放在同一次运行里,就能一次拿到翻译好的 srt 和 vtt。