YouTube Transcript API
Pricing
$7.00 / 1,000 results
YouTube Transcript API
Get YouTube transcripts, captions, and subtitles from any video URL or video ID. Export results as JSON, text, SRT, or WebVTT for automation and analysis.
Pricing
$7.00 / 1,000 results
Rating
0.0
(0)
Developer
Api Merge
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
3
Monthly active users
20 hours ago
Last modified
Categories
Share
What does YouTube Transcript API do?
YouTube Transcript API fetches a transcript for a YouTube video and saves it to the default Apify dataset.
How it works
Provide a YouTube videoId, choose a language, and select a format. The Actor returns the transcript if YouTube exposes it for the selected language. If the first request is blocked, it retries internally.
No translation fallback is performed by this Actor.
Input
| Field | Required | Description |
|---|---|---|
videoId | Yes | YouTube video ID. A full YouTube URL is also accepted. |
language | Yes | Transcript language code, for example en, tr, de, es. |
format | Yes | Output format: json, text, srt, or webvtt. |
The Actor also accepts legacy aliases from the copied template: videoUrl for videoId, and targetLanguage for language.
Input example
{"videoId": "IELMSD2kdmk","language": "en","format": "json"}
Text output example:
{"videoId": "https://www.youtube.com/watch?v=IELMSD2kdmk","language": "en","format": "text"}
Output
The Actor pushes one dataset item with success, message, and response fields. The response field contains the returned transcript response.
JSON output example
{"success": true,"message": "Transcript response fetched successfully.","response": {"videoId": "IELMSD2kdmk","language": "English","languageCode": "en","isGenerated": true,"snippets": [{"text": "Transcript text...","start": 0,"duration": 4.2}]}}
Text/SRT/WebVTT output example
{"success": true,"message": "Transcript response fetched successfully.","response": "1\n00:00:00,000 --> 00:00:04,200\nTranscript text...\n"}
Output fields
| Field | Description |
|---|---|
success | true when the Actor completed cleanly, including free-limit notifications. |
message | Human-readable result or warning message. |
response | Transcript response in the selected format, or an error response if the request fails. |
Notes
- Some videos do not expose transcripts.
- The requested
languagemust exist as a transcript language for the video. - If the request returns an error response, that response is still saved in the
responsefield. - Free Apify plan users are limited to 5 runs per UTC day. When the daily limit is reached, a warning item is written to the dataset before requesting data.