See llms.txt for all machine-readable content.

Back to Templates

Save YouTube video transcripts to Data Tables with yTranscript AI

Quick overview

Watches a YouTube channel and saves a transcript of every new video to an n8n Data Table. Videos without captions are transcribed with AI speech-to-text instead of being skipped. Works on n8n Cloud, records videos that have no transcript, and retries temporary errors on the next run.

How it works

  1. Runs every hour on a schedule.
  2. Reads the YouTube channel RSS feed and extracts each video’s ID, title, URL, and publish date.
  3. Checks an n8n Data Table to skip videos that are already recorded, then keeps only the newest configured number of videos.
  4. Requests a transcript for each remaining video from the yTranscript API, optionally forcing a specific language.
  5. If a transcript is returned, formats the response into a single text transcript, records the detected language and whether it came from captions or AI transcription, and marks the status as ok.
  6. If yTranscript reports no transcript is available, records the video with status no_transcript, while key/quota errors stop the workflow and temporary errors are left to retry on the next run.
  7. Saves the final transcript record (or no_transcript record) to the n8n Data Table.

Setup

  1. Get a free yTranscript API key at ytranscript.com/developers (no card needed). In n8n, create a Header Auth credential named Authorization whose value is the word Bearer, a space, then your API key, and select it in the Get transcript step.
  2. Create an n8n Data Table (for example, YouTube transcripts) with columns for video_id, title, url, status, language, source, transcript, and published_at, and select it in both Data Table steps.
  3. Update the workflow settings values, including the YouTube channel_id and max_videos_per_run (and optionally the language parameter) before activating the workflow.

Requirements

  • A yTranscript API key (the free plan covers about 50 caption transcripts a month) and n8n with Data Tables (n8n Cloud or self-hosted).

Customization

  • Swap the Data Table for Google Sheets, Notion or a vector store, or add an AI step after Format transcript to summarize or tag each video.

Additional info

Captions cost 1 unit per video; AI transcription costs about 1 unit per minute of audio. Failed requests are not charged. Tested on n8n 2.48.6.