YouTube Transcript Scraper API with Timestamps
Pricing
$0.01 / successful transcript
YouTube Transcript Scraper API with Timestamps
Extract a complete YouTube transcript from one public video. Timestamped JSON, plain text, and LLM-ready Markdown. No YouTube API key.
Pricing
$0.01 / successful transcript
Rating
0.0
(0)
Developer
UseAI Data
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
1
Monthly active users
14 days ago
Last modified
Categories
Features
Share
Get a complete YouTube transcript from one public video URL. No YouTube API key. Each run returns timestamped JSON, plain text, grouped Markdown for LLM prompts, caption language, and point-in-time video metadata — ready for RAG, agents, n8n, and MCP.
TubeAI is the extraction engine behind this public transcript-only Actor. The product contract is deliberately narrow: one video, one Dataset item, predictable errors.
How this compares (Store facts, late-Aug 2026)
Winners on Apify Store do not have a secretly better scraper. They win Store ranking + official promotion + review/run momentum. This Actor is a transcript API, not a general YouTube scraper — do not pick it to replace Streamers.
| Actor | This Actor | pintostudio/youtube-transcript-scraper | karamelo/youtube-transcripts | streamers/youtube-scraper |
|---|---|---|---|---|
| Job | Transcript API for RAG/agents | Transcript | Transcript | Broad YouTube scraper |
| Input | Exactly one public video URL | URL | URL | URL / channel / search |
| Output | Text, timestamped JSON, grouped Markdown, metadata, structured errors | Transcript | Transcript | Many YouTube surfaces |
| LLM grouping | intervalMinutes groups that stay in-caption | Not the listing promise | Weak on listing | Not a transcript product |
| Channel / playlist expand | No — orchestrate outside | No | Weak | Yes |
| Store position | Public 0.14.3, pay per successful transcript | ~23K users, ~49 reviews | ~8K users, 15 reviews | Apify-maintained, 106K users, 193 reviews |
Use this Actor when you want a narrow, typed transcript contract. Use Streamers when you need channel inventories, search, or comments. Use pintostudio/karamelo when you already depend on their field names and do not need grouped Markdown or structured errors.
What you get
| Result | Use |
|---|---|
| Full transcript text | RAG chunks, summaries, notes, and full-text search |
| Timestamped segments | Citations and navigation back to the video |
| Grouped Markdown | Stable context blocks for LLM prompts |
| Caption details | Requested and resolved language plus manual or auto-generated track |
| Video metadata | Title, channel, date, counts, description, thumbnail, handle, and tags when available |
| Content hash | Detect duplicate or changed transcript content |
| Structured error item | Reliable handling when captions cannot be extracted |
The transcript is not silently shortened. Metadata counters are a point-in-time snapshot, not live guarantees.
Quick start
In Apify Console, provide one public YouTube URL, leave language as auto, choose the grouping interval, and start the run. The same input works with the API, n8n, MCP, and Apify clients:
{"videoUrls": ["https://www.youtube.com/watch?v=BYXbuik3dgA"],"language": "auto","intervalMinutes": 2}
Python:
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ["APIFY_TOKEN"])run = client.actor("useai/youtube-transcript-api").call(run_input={"videoUrls": ["https://www.youtube.com/watch?v=BYXbuik3dgA"],"language": "auto","intervalMinutes": 2,},memory_mbytes=512,timeout_secs=120,)items = client.dataset(run["defaultDatasetId"]).list_items().items
n8n: POST https://api.apify.com/v2/acts/useai~youtube-transcript-api/runs?waitForFinish=120 with the JSON above and an Authorization: Bearer header from credentials — never a token in the URL. Then GET the Dataset items and pass groupedTranscriptMarkdown to the next LLM node. Full recipe: repository docs/strategy/n8n-youtube-transcript-recipe.md.
MCP: expose the Actor through the Apify MCP server and pass the same JSON. Keep tokens in the server environment.
Use cases
Use this Actor when
- You need a transcript API for RAG, AI agents, search, research, or citation workflows.
- You need original caption timing and grouped Markdown rather than a generated summary.
- You want one stable JSON Dataset item that includes useful source metadata.
- You prefer a narrow API contract that is easy to call from Python, HTTP, n8n, or MCP.
Do not use this Actor when
- You need comments, channel inventories, playlists, search results, audio, or video files.
- You need translation, summaries, sentiment analysis, or other generated content.
- You need a multi-video batch in one run. Start separate runs or orchestrate them externally.
Input
Provide exactly one public YouTube video URL per run. Standard watch URLs, youtu.be links, Shorts, live-video URLs, and embed URLs are accepted.
| Field | Required | Description |
|---|---|---|
videoUrls | Yes | An array containing exactly one public YouTube video URL |
language | No | Existing caption language code, or auto; default is auto |
intervalMinutes | No | Deterministic Markdown group size; default is 2 minutes |
auto selects the first available manual caption track, then an auto-generated track. A specific language selects an existing track in that language. Captions are not translated.
Output
Each attempted extraction produces one successful transcript item or one explicit error item in the default Dataset. A run stopped before extraction by its charge limit can contain no item.
{"status": "ok","sourceUrl": "https://www.youtube.com/watch?v=BYXbuik3dgA","videoId": "BYXbuik3dgA","sourceVariant": "youtube_transcript_no_comments","languageRequested": "auto","languageResolved": "en","captionKind": "manual","title": "Example video","channelName": "Example channel","durationSeconds": 180,"metadataCapturedAt": "2026-08-21T00:00:00Z","publishedAt": "2026-08-20T00:00:00Z","viewCount": 12345,"likeCount": 321,"commentCount": 42,"transcriptText": "First line. Second line.","transcriptMarkdown": "[00:00:00] First line.\n[00:01:05] Second line.","groupedTranscriptMarkdown": "[00:00:00] First line. Second line.\n","transcriptSha256": "afe374c8081eb1b50d3b8d55b65c7785f8c68707b92564137feea31c0eb970cd","segments": [{"startSeconds": 0.0, "durationSeconds": 2.0, "text": "First line."}],"groups": [{"startSeconds": 0, "timestamp": "00:00:00", "text": "First line. Second line."}],"stats": {"segmentCount": 2, "groupCount": 1, "wordCount": 4, "intervalMinutes": 2},"errorCategory": null,"errorMessage": null,"retryable": null}
For an error item, status is error, errorCategory identifies the failure class, errorMessage is sanitized, and retryable indicates whether a later run may succeed.
Limits and reliability
- One video per run; external orchestration is required for a list.
- The video must be public and have an accessible caption track.
- The extraction deadline is 105 seconds. The accepted public build uses a 120-second Actor timeout and 512 MiB memory.
- Bounded retries categorize challenges, access denials, rate limits, server errors, and transport failures; non-retryable client errors fail fast.
- A successful transcript is saved before it is counted as a successful paid result. Failed items are not counted as successful transcripts.
- Safe parallel capacity is not promised. Start with one run at a time and measure your own workload before increasing concurrency.
Pricing
The current price is $0.01 per successful transcript, with platform usage included. Failed runs do not emit the success event. Check the Store before running because pricing can change.
Privacy and responsible use
The result stores a canonical YouTube watch URL and does not retain input tracking parameters or URL credentials. This Actor is not affiliated with or endorsed by YouTube. Use it only for content you are authorized to access and in accordance with applicable terms and law.
FAQ
Can I submit multiple videos in one run? No. Submit one URL and start separate runs for multiple videos.
Does it download video or audio? No. It returns caption-derived transcript data only.
Are comments included? No. Comments are intentionally excluded from this transcript product.
Can it translate subtitles? No. Choose an existing caption language or use auto.
What happens when captions are unavailable? The Dataset receives a structured error item with a category, sanitized message, and retry guidance.
Do I need a YouTube API key? No.
Where are results stored? Transcript and error items are written to the run's default Dataset and are available through Console, the Dataset API, and Apify clients.
Should I use this instead of Streamers? Only if you want a transcript API. Streamers wins discovery as a broad YouTube scraper and is Maintained-by-Apify.