Youtube Transcript icon

Youtube Transcript

Get transcript from a youtube video

Youtube Transcript

AI-generated

Overview

This node fetches the transcript of a YouTube video given its video ID or URL. It is useful for extracting the spoken content from videos for purposes such as content analysis, captioning, or text-based processing. For example, users can input a YouTube video URL and receive the full transcript text or the transcript as an array of segments.

Use Case Examples

  1. Extracting subtitles from a YouTube tutorial video to create searchable text content.
  2. Generating a merged text transcript from a video for summarization or translation.

Properties

Name Meaning
Youtube Video ID or Url The YouTube video identifier or full URL from which to fetch the transcript.
Return Merged Text If true, returns the transcript as a single merged text string; if false, returns the full transcript as an array of text segments.

Output

JSON

  • json - The transcript data. If 'Return Merged Text' is true, this is a single string of merged transcript text; otherwise, it is an array of transcript segments with text and timing information.

Dependencies

  • An external module or service named 'YoutubeTranscript' that provides the method 'fetchTranscript' to retrieve the transcript from YouTube videos.

Troubleshooting

  • If the video ID or URL is invalid or the video has no transcript, the node may fail or return empty results. Verify the input URL and ensure the video has captions available.
  • If the external 'YoutubeTranscript' service is unreachable or changes its API, transcript fetching may fail. Check network connectivity and service status.

Discussion