Decodo icon

Decodo

Decodo's Web Scraping API

YouTube Transcript

AI-generated

Overview

This node retrieves the transcript of a YouTube video based on the provided video ID. It supports fetching either automatically generated transcripts or those provided by the uploader, and allows specifying the language of the transcript. The node can also return the transcript in markdown format if desired. This is useful for scenarios where users want to extract and utilize YouTube video transcripts for content analysis, captioning, or translation purposes.

Use Case Examples

  1. Extracting the English transcript of a YouTube video to analyze its content.
  2. Retrieving uploader-provided transcripts in a specific language for accurate subtitles.
  3. Getting the transcript in markdown format for easy formatting and display in documentation or blogs.

Properties

Name Meaning
Video ID The video ID of the YouTube video from which to retrieve the transcript.
Transcript Origin Specifies whether to retrieve transcripts that are automatically generated or provided by the uploader.
Language Code Specifies the language code of the transcript to retrieve, e.g., 'en' for English. If no transcript matches the language code, an HTTP 404 error is returned.
Markdown Whether to retrieve the transcript results in markdown format.

Output

JSON

  • transcript - The retrieved transcript text of the YouTube video.
  • language_code - The language code of the retrieved transcript.
  • origin - Indicates whether the transcript is auto-generated or uploader provided.

Dependencies

  • Requires an API key credential for Decodo's Web Scraping API to access YouTube transcript data.

Troubleshooting

  • If the video ID is invalid or the video does not have a transcript in the specified language, the node may return an HTTP 404 error. Verify the video ID and language code.
  • If the API key credential is missing or invalid, the node will fail to authenticate and retrieve data. Ensure the Decodo API key is correctly configured.
  • If the transcript origin is set incorrectly, the node may not find the desired transcript. Choose the correct origin based on the transcript availability.

Discussion