Quick overview
This workflow collects a YouTube video URL via an n8n form, fetches the transcript from Supadata’s YouTube Transcript API, formats it into plain text, and returns it as a downloadable .txt file.
How it works
- Presents an n8n form where the user submits a YouTube video URL.
- Calls the Supadata YouTube Transcript API with the submitted URL to retrieve the transcript text.
- Extracts the video ID from the URL, validates that transcript content exists, and formats a transcript header plus the full text.
- Converts the formatted transcript into a .txt file with a filename based on the video ID.
- Responds with the generated text file so the user can download the transcript.
Setup
- Create a Supadata account, generate an API key, and replace the hardcoded
x-api-key header value in the Supadata request.
- Ensure the n8n Form Trigger is reachable (configure your public n8n URL if needed) and use the form URL to access the workflow.
- Confirm the submitted link is a valid YouTube URL (including Shorts) that has transcripts available, otherwise the workflow returns an error.