Overview
This node fetches the transcript of a YouTube video by using its video ID. It is useful when you want to extract the textual content spoken in a YouTube video for purposes such as creating subtitles, analyzing speech content, or generating summaries. For example, you can input a video ID and receive the full transcript text, which can then be used in further workflow steps like translation, sentiment analysis, or content indexing.
Properties
Name | Meaning |
---|---|
Video ID | The ID of the YouTube video to fetch the transcript for |
Output
The node outputs an array of items where each item contains a json
object with the following fields:
youtubeId
: The YouTube video ID that was used to fetch the transcript.transcript
: The transcript data fetched from the YouTube video. This is typically an array of transcript segments, each containing text and timing information.
If an error occurs during fetching and the node is configured to continue on failure, the output item will contain:
error
: A message describing the error encountered.
No binary data is output by this node.
Dependencies
- This node depends on the external library
youtube-transcript
to fetch transcripts from YouTube videos. - It requires internet access to communicate with YouTube services.
- No specific API keys or authentication tokens are required according to the code, but network connectivity must be available.
Troubleshooting
- Empty Video ID: If the "Video ID" property is empty, the node throws an error stating "The video ID parameter is empty." Ensure that a valid YouTube video ID is provided.
- Transcript Fetch Failure: Errors from the transcript fetching process (e.g., invalid video ID, no transcript available, network issues) will cause the node to throw an error unless "Continue On Fail" is enabled, in which case the error message is returned in the output.
- Network Issues: Since the node relies on external requests, network failures or restrictions may cause errors.
- Unavailable Transcript: Some videos may not have transcripts available, leading to errors or empty results.