Home / Guides / How to Get YouTube Transcripts in n8n

Updated

How to Get YouTube Transcripts in n8n (Free Workflow Template)

To get YouTube transcripts in n8n, add one HTTP Request node that POSTs the video, playlist or channel URLs to the run-sync-get-dataset-items endpoint of a transcript Actor on Apify, with your Apify token in a Header Auth credential. Each video comes back as one n8n item with the text, timestamped segments, RAG chunks and metadata, ready for an AI node, Google Sheets or Notion. A free template is below.

1. One node: HTTP Request

Create a Header Auth credential in n8n (name Authorization, value Bearer YOUR_APIFY_TOKEN). Then add an HTTP Request node:

{
  "videos": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
  "preferredLanguages": ["en"],
  "includeChunks": true
}

The node returns one item per video. The fields you will use most: status (ok or the reason there is no transcript), title, channelName, text, segments (start, duration, text), chunks and language. Set the node timeout to 300 seconds for long playlists.

2. Import the ready workflow

Download the n8n workflow, then in n8n use Import from File. Select your Header Auth credential in the HTTP Request node, change the video URLs and click Test workflow. The token stays in your n8n credentials, never in the file. All templates: n8n and Make templates.

3. Summarise or index with AI

Add an IF node on status equal to ok so videos without captions are skipped. For a summary, send text to your AI node when the video is short; for long videos, split out chunks (Split Out node on the chunks field), summarise each chunk, then aggregate. For RAG, embed each chunk and store its url (a link to the exact second) as metadata so answers can cite the moment in the video.

4. Every new video of a channel, on a schedule

  1. Replace the manual trigger with a Schedule Trigger (every morning).
  2. Body: {"videos": ["https://www.youtube.com/@channel"], "maxVideosPerSource": 5}. The newest videos come first.
  3. Add Remove Duplicates with the option to remove items processed in previous executions, keyed on videoId, so each video is handled once.
  4. Send the result to Slack, Notion or a Google Sheet.

5. Costs and limits

With Plainprobe YouTube Transcript for AI, a transcript costs $0.002 and videos without captions, private or removed videos are free. In our test on 50 real videos in 7 languages, it returned all 41 transcripts that existed, each in the language actually spoken, in 0.6 s of compute per video. Age-restricted and members-only videos need a signed-in account and are never fetched. Transcripts belong to their creators: summarising and quoting is common; republishing whole transcripts may need permission.

FAQ

How do I get a YouTube transcript in n8n?

Add an HTTP Request node that POSTs {"videos": ["VIDEO_URL"]} to https://api.apify.com/v2/acts/plainprobe~youtube-transcript-ai/run-sync-get-dataset-items with an Authorization: Bearer header holding your Apify token. Each video comes back as one n8n item with the text, timestamped segments and metadata.

Can n8n get transcripts for every new video of a channel?

Yes: run the workflow on a Schedule Trigger with the channel URL and maxVideosPerSource set to 5 or 10, then keep only videos not seen before with the Remove Duplicates node (option: items processed in previous executions), using videoId as the key.

What does it cost?

$0.002 per transcript returned ($2 per 1,000) with Plainprobe YouTube Transcript for AI; videos without captions are free. Apify's free plan includes a monthly credit, which covers a few thousand transcripts.

How do I summarise a long transcript with an AI node?

Ask for the RAG chunks (on by default): each chunk is about 1,500 characters, follows the chapters and carries a link to the exact second. Summarise the chunks, then summarise the summaries, so no model context limit is hit.

Related tool