Youtube Translated Transcript
by pintostudio
Extract and translate YouTube video transcripts automatically. Get video content in your language for research, content creation, or analysis.
Opens on Apify.com
About Youtube Translated Transcript
Ever find a great YouTube video but the transcript is in a language you don't understand? I've been there. This Apify actor solves that by grabbing the official transcript from any YouTube video and translating it into the language you need. It's pretty straightforward: you give it the video URL and your target language, and it handles the extraction and translation in one go. I use it for research all the time, especially when I'm looking at international tech talks or tutorials. It's perfect for content creators who want to understand foreign material, students working with global sources, or marketers analyzing competitor videos from different regions. You get a clean, translated text file without having to mess with separate translation apps or manual copying. It just pulls the data and converts it, saving you a ton of time and hassle. If you regularly work with video content from around the world, this is a simple script that automates a surprisingly annoying task.
What does this actor do?
Youtube Translated Transcript is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
YouTube Translated Transcript Actor
An Apify Actor that extracts and translates YouTube video transcripts.
Overview
This Actor fetches the transcript (subtitles) from a YouTube video and translates it to a specified language. It returns both the original and translated transcripts, preserving the timing information for each subtitle segment.
Key Features
- Extracts transcripts from YouTube videos that have captions (automatic or manual).
- Translates the transcript to a target language using ISO 639-1 language codes (e.g.,
en,es,fr). - Maintains the timing data (start time and duration) for each line of text.
- Handles common errors like invalid URLs, missing captions, or translation service issues.
Input
The Actor runs with a simple JSON input object.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
videoUrl |
String | No | https://www.youtube.com/watch?v=1WEAJ-DFkHE |
The full URL of the YouTube video. |
targetLanguage |
String | No | en |
The desired language code (ISO 639-1) for translation. |
Input Example:
{
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"targetLanguage": "es"
}
Output
The result is a structured JSON object containing the video ID, original transcript, translated transcript, and a status message.
Output Example:
{
"videoId": "1WEAJ-DFkHE",
"originalTranscript": {
"transcript": [
{
"start": "0.120",
"dur": "1.650",
"text": "- We're gonna fly on this jet"
}
],
"language": "en"
},
"translatedTranscript": {
"transcript": [
{
"start": "0.120",
"dur": "1.650",
"text": "- Vamos a volar en este jet"
}
],
"language": "es"
},
"message": "Translation completed successfully!"
}
Each transcript is an array of segments. Each segment includes:
* start: Start time in seconds.
* dur: Duration in seconds.
* text: The subtitle text.
* language: The language code of that transcript.
How to Use
Call the Actor using the Apify API client.
Basic Usage:
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const input = {
videoUrl: 'https://www.youtube.com/watch?v=VIDEO_ID',
targetLanguage: 'es'
};
const run = await client.actor('your-actor-id').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]);
Batch Processing Multiple Videos:
const videos = [
'https://www.youtube.com/watch?v=VIDEO1',
'https://www.youtube.com/watch?v=VIDEO2'
];
for (const videoUrl of videos) {
const input = { videoUrl, targetLanguage: 'fr' };
await client.actor('the-actor-id').call(input);
}
Supported Languages
Translation is supported for many languages using their standard two-letter codes, including but not limited to: English (en), Spanish (es), French (fr), German (de), Italian (it), Portuguese (pt), Russian (ru), Japanese (ja), Korean (ko), and Chinese (zh).
Error Handling
The Actor validates input and handles common issues:
* Returns an error for invalid YouTube URLs or non-ISO language codes.
* If a video has no available captions, it will return a clear error message.
* If the translation service fails, it will return the original transcript with a warning.
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Youtube Translated Transcript now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- pintostudio
- Pricing
- Paid
- Total Runs
- 77
- Active Users
- 7
Related Actors
TikTok Scraper
by clockworks
TikTok Data Extractor
by clockworks
Fast TikTok API (free-watermark videos)
by novi
YouTube Scraper
by streamers
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support