Skip to main content

Media Info

Retrieves detailed information about a YouTube video including metadata and available streams.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.

Inputs

  • Video URL - The URL of the YouTube video.

Options

No additional options available for this node.

Output

  • Response - A JSON object containing detailed information about the video, including:
    • Streams - Array of available video and audio streams with their properties
    • Title - The video title
    • Author - The video author/creator
    • Channel URL - The URL of the author's channel
    • Description - The video description
    • Thumbnail URL - URL of the video thumbnail image
    • Age Restricted - Whether the video is age-restricted
    • Length - Video duration in seconds
    • Rating - Video rating
    • Publish Date - Date when the video was published

How It Works

The Media Info node retrieves comprehensive information about a YouTube video using the pytube library. When executed, the node:

  1. Validates the required input (Video URL)
  2. Creates a YouTube object using the provided URL
  3. Extracts all available video and audio streams
  4. Collects metadata information about the video
  5. Formats all information as a JSON object and returns it

Requirements

  • A valid YouTube video URL
  • Internet connection to access YouTube

Error Handling

The node will return specific errors in the following cases:

  • Empty Video URL
  • Invalid YouTube video URL
  • Video not found
  • Network connectivity issues
  • YouTube access restrictions

Usage Notes

  • The Video URL should be a full YouTube URL (e.g., https://www.youtube.com/watch?v=VIDEO_ID)
  • The response contains detailed information about the video and all available streams
  • Stream information includes properties like resolution, file type, and quality
  • The length is provided in seconds
  • The publish date is provided in ISO format
  • The age_restricted field indicates if the video has age restrictions
  • The rating field shows the video's average rating
  • This node is useful for analyzing video properties before downloading
  • Stream information can be used to select specific video or audio formats for download
  • The thumbnail URL provides access to the video's thumbnail image
  • The description field contains the full video description as text