YouTube Transcript API with n8n: bulk workflow and template
By the YouTubeTranscriptAPI engineering team · Published · Updated
Getting one YouTube transcript into n8n takes five minutes. Getting 3,000 of them without paying twice, losing a batch or hitting a wall at minute five is the part most tutorials skip.
To use the YouTube Transcript API with n8n, add an HTTP Request node that calls the transcript endpoint with a Header Auth credential and a 60-second timeout. For more than a handful of videos, keep a queue in an n8n Data Table, fetch 50 pending videos per scheduled run at 4 requests a second, mark videos without captions as done, and leave rate-limited ones for the next run.
We make YouTubeTranscriptAPI, so the transcript call in this guide is ours. The queue, the batching and the status handling work the same with any HTTP API that returns real status codes.
I read the n8n docs, the five most visible n8n transcript tutorials and templates, and the community threads where these workflows break. Then I installed n8n 2.49.8, imported the template below and ran it against a local mock of our API that returns every status code on purpose.
Everything here was checked on November 27, 2026.
How do you get a YouTube transcript in n8n?
Add an HTTP Request node, set it to GET https://youtubetranscriptapi.com/api/v2/youtube/transcript, and pass the video link or ID as video_url. Authenticate with a Header Auth credential named Authorization with the value Bearer plus your key. Set the timeout to 60,000 ms, because a video nobody has fetched before takes 10 to 30 seconds.
Here's the same call as cURL. In the HTTP Request node, click Import cURL, paste it, and n8n fills in the fields for you.
curl "https://youtubetranscriptapi.com/api/v2/youtube/transcript?video_url=dQw4w9WgXcQ&format=text&include_timestamp=false&send_metadata=true" \
-H "Authorization: Bearer YOUR_API_KEY"One warning from n8n's own export docs: HTTP Request nodes imported from cURL can keep the auth header in the node itself.
So after the import, delete the header from the node and move the key into a credential.
Go to Credentials, New, Header Auth, then pick the credential in the node under Authentication, Generic Credential Type, Header Auth.
The answer comes back as JSON. With format=text you get one string in transcript, plus language and video_id.
With send_metadata=true you also get the title and channel name, at no extra cost.
The full parameter list is in the transcript endpoint docs. The one people miss is language: if the video has no track in the language you asked for, you may get another one, and the language field tells you which.
Why doesn't n8n's YouTube node give you transcripts?
The built-in YouTube node has no captions or transcript operation. Its operations cover channels, playlists, playlist items, videos and video categories, and the docs say to use the HTTP Request node when an operation is missing. The YouTube Data API's caption download also only works for videos you own or are authorized to manage.
That leaves three other routes, and each one breaks somewhere.
The first is a community node. The best known one, n8n-nodes-youtube-transcript, is marked deprecated on npm. It drove a headless browser to click the transcript button, so it broke when YouTube changed the page.
We publish a community node too, @veeringindia/n8n-nodes-youtubetranscriptapi, which calls our API instead of a browser. It installs on self-hosted n8n today, and it's in n8n's review for Cloud. That's why the template in this guide sticks to plain HTTP Request nodes: they run everywhere now.
The second is scraping YouTube yourself from a Code node or a small server. On n8n Cloud that means YouTube sees a data center IP, and data center IPs often get "Sign in to confirm you're not a bot."
We measured why this keeps failing in our guide to scraping YouTube transcripts at scale.
The third is a hosted API, called from the HTTP Request node. Every template I read uses one: a RapidAPI listing, an Apify actor, or a transcript service. They differ on price and on whether they report failures with real status codes. In n8n that second part decides a lot, because a workflow can only route a failure it can see.
What does the bulk workflow do?
The template has two parts that share one Data Table. Part one turns a list of video links and channel handles into queue rows, skipping videos already in the table. Part two runs every 30 minutes, takes up to 50 rows with an empty status, fetches their transcripts at 4 requests a second, and writes the text, word count, language and status back to each row.
The most detailed one I found handles a single video, mentions a Loop Over Items node for batching in one sentence, and leaves the error branch out of the downloadable JSON. The n8n library templates for Google Sheets and Airtable promise to handle videos without transcripts, but don't say how.
With a queue, you can stop and restart without losing work, because each run saves its results before it ends, and a run is 50 videos at most. You never pay twice for the same video, because finished rows aren't pending anymore. And one bad video can't stop the other 49.
Here's what each row holds:
| Column | What goes in it |
|---|---|
video_id | The 11-character ID, used to match rows |
url, title, channel | From your list, or from the channel listing |
status | Empty while pending; then done, no captions, bad link or failed |
language, words, transcript | Filled in when the status is done |
attempts, last_error, checked_at | For retries and debugging |
I picked a Data Table over Google Sheets because it needs no Google sign-in. If your team lives in Sheets, you can swap the four Data Table nodes for Google Sheets nodes with the same columns.
The n8n docs cap all Data Tables on an instance at 200 MiB by default.
At a typical speaking pace of about 150 words a minute, a one-hour talk is roughly 9,000 words, or about 50 KB of plain text. So the default cap holds a few thousand long transcripts, which is plenty for a channel backfill but not for an archive of 100,000 videos.
How do you get transcripts for a whole YouTube channel in n8n?
Put the channel's @handle in the template's list, and the workflow calls the channel listing endpoint, which returns the 100 most recent uploads for 20 credits. Each upload becomes a queue row, unless its video ID is already in the table. Then the scheduled part fetches the transcripts at 1 credit each, so a 100-video backfill costs about 120 credits.
The list lives in a Code node called "Video links and channels." Full links, short youtu.be links, Shorts links, bare video IDs, @handles and channel URLs all work. The node works out which is which, and anything it can't read as a video becomes a channel lookup.
It also drops duplicates, and that line exists because my first test run failed.
I pasted a list with one video twice, plus a channel whose listing included that same video. The table ended up with 60 rows for 59 videos.
The "Skip videos already queued" node checks the table, but it only sees rows saved before the run started. Two copies arriving in the same run both look new. Removing duplicates inside the Code nodes fixed it, and the rerun gave 59 rows for 59 videos.
For ongoing monitoring, don't re-list the channel every day.
The channel endpoints include a free one that returns the 15 newest uploads. Our daily digest template uses it, and so does the channel monitor guide. On self-hosted n8n, our community node's trigger does the same check for free and starts a workflow for each new video.
n8n's RSS Feed Trigger on YouTube's public feed is free too, but it needs the UC... channel ID, and n8n community threads report the feed returning 404 at random hours.
Playlists work the same way, also 20 credits for up to 100 videos. See the playlist transcript guide for longer ones.
How do you fetch many transcripts without hitting n8n's limits?
Fetch up to 50 videos per run, and start 4 requests a second. In my test, a 50-video run finished in 15 seconds, and with new videos taking 10 to 30 seconds each, a real run should still finish in about a minute. That's well under the five-minute limit on n8n's Starter plan. Run it every 30 minutes and you use about 1,500 executions a month.
On our side, the rate limit is 300 requests per minute per key. Four a second is 240 a minute, so you stay under it even on a big run.
On n8n's side, the pricing page lists 2,500 executions a month and a 5-minute maximum execution time on Starter, and 10,000 executions with a 40-minute maximum on Pro. It also says an execution is a single run of your whole workflow.
So a run that fetches 50 transcripts costs one execution, the same as a run that fetches one. Fetch as much as you can per run, and keep the run short enough for your plan.
| Schedule | Runs per month | Max videos per day at 50 per run | Fits Starter (2,500 runs)? |
|---|---|---|---|
| Every 15 minutes | about 2,980 | 4,800 | No |
| Every 30 minutes | about 1,490 | 2,400 | Yes |
| Every hour | about 745 | 1,200 | Yes |
On Pro you can raise the run limit to 200 videos, since the 40-minute limit leaves plenty of room.
The batching itself is two settings on the HTTP Request node, under Add Option, Batching: Items per Batch set to 4, and Batch Interval set to 1000 ms. The HTTP Request docs describe both.
Here's the part the docs don't spell out. I read the node's source in n8n 2.49.8, and batching only spaces out when requests start.
The node starts 4 requests, waits a second, starts 4 more, and so on. It doesn't wait for a batch to finish before starting the next one. Then it waits for all of them together.
So Items per Batch controls how fast requests start, not how many run at once. My mock log showed exactly that: never more than 4 starts in any one-second window, and the two deliberately slow videos ran alongside everything else.
You don't need a Loop Over Items and Wait pair for this.
How should n8n handle 404, 429 and 402 from the transcript API?
Don't let the HTTP Request node throw. Turn on the response options Include Response Headers and Status and Never Error, then sort each answer in a Code node by status code. A 404 means no captions, so mark the row done and move on. A 429, 408 or 503 means try later, so leave the row pending. A 402 means you're out of credits, so stop the run loudly.
The most detailed tutorial I read sends failures to an Error Trigger workflow. That tells you something broke, but it can't tell a video without captions from an expired key.
It also stops the run, so one failed video costs you the other 49.
Here's the mapping:
| Status | Meaning | Charged? | What the template does |
|---|---|---|---|
| 200 | Transcript returned | 1 credit | Saves text, sets done |
| 404 | No captions, private or removed | No | Sets no captions |
| 422 | Not a valid video link or ID | No | Sets bad link |
| 402 | Out of credits | No | Leaves pending, stops after saving |
| 401 | Key missing or revoked | No | Leaves pending, stops after saving |
| 408, 429, 503 | Busy or slow, try again | No | Leaves pending for the next run |
Errors and 429s are never charged, per our error reference. That's what makes "leave it pending" safe: a retry costs nothing until it succeeds.
Why not use n8n's built-in Retry On Fail? It helps for a blip, but n8n's rate limit docs say it allows at most five tries, up to 5 seconds apart.
The same page says the HTTP Request node doesn't honor a Retry-After header. A 30-minute schedule is a much gentler retry than five quick ones.
A row that still fails after five tries gets the status failed, so a broken video can't sit in the queue forever.
The last node checks the X-Credits-Remaining header from the final successful call. If it's under 50, or any call got a 402, the run ends with a Stop and Error node that says "Top up credits."
That fails the execution on purpose, so your error workflow, if you have one, can email or Slack you before the next run quietly does nothing.
What happened when I ran the template?
I ran four scheduled runs against a mock that returned 200, 404, 422, 429, 402 and slow answers on purpose. The first run fetched exactly 50 of 59 queued videos in 15 seconds. The 429 video stayed pending and finished on the next run. The third run made zero API calls. A 402 stopped the fourth run with a clear message, and no finished video was ever fetched twice.
Here's the run log, from n8n 2.49.8 on Windows.
| Run | API calls | Time | Result |
|---|---|---|---|
| Fill the queue | 1 channel listing | 2.1 s | 59 rows for 59 videos |
| Fetch, run 1 | 50 | 15.2 s | 45 done, 3 no captions, 1 bad link, 1 pending |
| Fetch, run 2 | 10 | 3.0 s | The pending video done on its second try |
| Fetch, run 3 | 0 | 0.1 s | Nothing pending |
| Fetch, run 4 | 1 | under 1 s | 402: row kept pending, run stopped |
The workflow was the published JSON with two changes: the API address pointed at the mock, and the triggers were webhooks, because n8n's command-line execute doesn't load the Data Table module.
What I couldn't test here is the real API, because this machine has no key. A mock answers in milliseconds, so treat the 15 seconds as the floor, not the estimate.
What does it cost to get YouTube transcripts in n8n?
Each transcript costs 1 credit, and videos without captions are free. On our founding prices that's $3 a month for 1,000 transcripts, or $30 a year for 15,000, which works out to $2 per 1,000. New accounts get 100 free credits with no card. Listing a channel's 100 latest uploads costs 20 credits, and n8n's own plan is billed separately.
Here's the whole bill for three common jobs, at Annual pricing and on n8n's Starter plan:
| Job | Credits | Our cost | n8n executions |
|---|---|---|---|
| Backfill one channel (100 videos) | about 120 | Free tier covers most of it | 2 to 3 runs |
| 1,000 videos a month from a list | about 1,000 | about $2 | about 20 runs |
| 10 channels, 100 videos each | about 1,200 | about $2.40 | about 24 runs |
The founding prices hold if you subscribe within 7 days of signing up. After that, the standard prices on the pricing page apply.
Self-hosted n8n has no execution cap at all.
Below about 10,000 transcripts a month, the n8n plan costs more than the transcripts do.
What can you build once the transcripts are in n8n?
The queue is the raw material. From there, the common next steps are a summary per video with an AI model, a draft blog post or newsletter, a digest of new uploads by email, or an AI agent that searches and reads transcripts on its own. We publish free n8n templates for all four, and each one uses the same Header Auth credential as this one.
Our n8n template page has the summary-by-email form, the daily digest, the Google Docs draft and the chat agent. All four are import-from-URL, and the page also has install steps for the community node.
If you want an AI Agent node to fetch transcripts by itself, skip the HTTP Request Tool. Connect the hosted MCP server with n8n's MCP Client Tool instead, which gives the agent transcripts, search and channel listings as separate tools. The n8n MCP guide has the setup.
For long transcripts, watch the model's context window. Those 50 KB of text are roughly 12,000 tokens at the usual four characters per token, which most current models take whole.
How do you import and set up the template?
Download the workflow file below, or paste its URL into n8n's Import from URL. Create a Data Table called youtube_transcripts with the 11 columns listed in the setup note, and add your API key as a Header Auth credential. The Data Table nodes find the table by name, so you only pick the credential. Run part one with your video list, then run part two once by hand before you activate the schedule.
Here are the steps in order:
1. Sign up and copy an API key from your dashboard. The sign-up page gives you 100 free credits. 2. In n8n, open the workflow menu and choose Import from URL. Paste https://youtubetranscriptapi.com/templates/n8n/youtube-bulk-transcripts.json. 3. Create the credential: Header Auth, Name Authorization, Value Bearer and your key. Pick it in the two HTTP Request nodes. 4. Create the Data Table youtube_transcripts with the columns from the sticky note. Use the types it lists: words and attempts are numbers, the rest are strings. 5. Edit "Video links and channels," click Execute Workflow on part one, and check the table. 6. Execute part two by hand. When the rows show done or no captions, activate the workflow.
Download the n8n workflow (JSON)
Frequently asked questions
Does the n8n YouTube node have a transcript or captions operation?
No. The built-in YouTube node covers channels, playlists, playlist items, videos and video categories, with no captions operation. The YouTube Data API's caption download only works for videos you own or manage. To get transcripts of other people's videos in n8n, call a transcript API from the HTTP Request node with a Header Auth credential.
Does this work on n8n Cloud?
It should. The template uses only built-in nodes: HTTP Request, Code, Data Table, Schedule Trigger, IF and Stop and Error, with no community node, proxy or Docker setup. Our API fetches from YouTube, so YouTube never sees n8n's data center IP. I tested it on self-hosted n8n 2.49.8, not on Cloud.
Why did my old n8n YouTube transcript node stop working?
The popular n8n-nodes-youtube-transcript community node is deprecated on npm. It drove a headless browser to click YouTube's transcript button, so it broke when YouTube changed the page. Scrapers in Code nodes fail for a related reason: YouTube blocks many data center IPs, including the ones n8n Cloud runs on.
How do I stop 429 Too Many Requests errors in n8n?
Turn on batching in the HTTP Request node: set Items per Batch to 4 and Batch Interval to 1000 ms. n8n then starts at most 240 requests a minute, under our limit of 300. Turn on Never Error too, so a 429 leaves the video pending for the next run instead of failing the whole execution. 429s are never charged.
How much does it cost to get YouTube transcripts in n8n?
Each transcript costs 1 credit, and failed calls or videos without captions cost nothing. On founding prices that's $3 a month for 1,000 transcripts or $30 a year for 15,000. New accounts get 100 free credits. n8n's own plan is separate: Starter is 20 euros a month billed annually for 2,500 executions.
Can an n8n AI agent fetch YouTube transcripts by itself?
Yes. Connect the hosted MCP server to the AI Agent node with the MCP Client Tool, using the same key as a Header Auth credential. The agent then gets transcripts, YouTube search and channel listings as separate tools and decides when to call them. It needs n8n 1.104 or later, and each tool call costs the same credits.
Start with 20 videos, then turn on the schedule
Import the template, point it at 20 videos you care about, and run both parts by hand. Check the table: every row should say done, no captions or bad link. If it does, activate the 30-minute schedule and add the rest of your list. The queue does the remembering, so you can stop it any time.
About the author: the YouTubeTranscriptAPI engineering team builds and runs the hosted YouTube Transcript API and its MCP server. We test every workflow we publish against the live product or a mock of it, and say which.