Extract transcripts from external YouTube videos using YouTube Transcript API
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when another workflow calls it. It uses only n8n's built-in nodes. It also calls youtube-transcript.io over HTTP.
How it runs
Trigger: When another workflow calls it.
- Set Variables (Edit Fields (Set)): sets 2 fields: youtubeVideoId, apiToken
- Get Transcript (YouTube Transcript API) (HTTP Request): calls youtube-transcript.io (POST)
- Switch: routes items into 3 branches
- Parse API Response (Code): runs custom JavaScript code
- Not Enough Credits (Stop and Error): stops the run with an error
- Generic Error (Stop and Error): stops the run with an error
- If: checks a condition and branches into true / false
- Clean Transcript (Code): runs custom JavaScript code
- No Transcript Fallback (Code): runs custom JavaScript code
- No Transcript (Stop and Error): stops the run with an error
HTTP calls to: youtube-transcript.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Stop and Error
n8n-nodes-base.stopAndError
From the author
🚀 Try It Out! YouTube Transcript API Extractor (Any Public Video) Extracts a clean transcript from a videoId using youtube-transcript.io. --- 🎯 Use Cases - AI summaries, sentiment analysis, keyword extraction - Internal indexing/SEO - Content pipelines…