Skip to main content

Overview

The YouTube block retrieves video data from YouTube. Use it to search for videos by keyword, get video details, or extract transcripts for content research, competitor analysis, and video content creation.

Configuration

Operation

Select the YouTube operation to perform.

Search Videos Configuration

Use these settings when the operation is set to “Search Videos”.

Search Query

Enter the keyword or phrase to search for on YouTube. This field supports placeholders for dynamic values. Examples:
  • Static search: SEO tutorial 2024
  • From previous step: {{step_1.output.topic}}
  • Combined: {{input.keyword}} tutorial

Max Results

Set the maximum number of videos to retrieve.
  • Default: 10 videos
  • Recommended: Start with 10, increase as needed

Sorting Order

Choose how search results are sorted.

Search Videos Output

The Search Videos operation returns an array of video objects.

Output Structure

Search Videos Output Fields

Accessing Search Results

Get first video:
Get first video title:
Get first video URL (to use with Get Video Details):
Loop through all videos:

Get Video Details Configuration

Use these settings when the operation is set to “Get Video Details”.

Video URL

Enter the full YouTube video URL. This field supports placeholders for dynamic values. Examples:
  • Direct URL: https://www.youtube.com/watch?v=abc123
  • From previous step: {{step_1.output[0].url}}
  • From loop: {{current.url}}

Get Transcript

Enable this option to download the video’s subtitles/transcript.
  • Enabled: Includes transcript in SRT format
  • Disabled: Returns video details without transcript (default)
Transcripts are useful for content repurposing, SEO analysis, and extracting key points from videos.

Get Video Details Output

The Get Video Details operation returns a single video object with detailed information.

Output Structure

Get Video Details Output Fields

Accessing Video Details

Get video title:
Get transcript:
Get channel info:

Credits

Examples:
  • Search returning 10 videos = 20 credits
  • Search returning 15 videos = 40 credits
  • Get details for 1 video = 5 credits

Best Practices

Search Videos

  • Use specific keywords for more relevant results
  • Include year or “2024” for recent content
  • Start with 10 results, increase if needed
  • Use “Views” sort to find popular content
  • Use “Date” sort for trending topics

Get Video Details

  • Enable transcript for content repurposing
  • Combine with LLM to summarize long videos
  • Extract key timestamps from transcripts
  • Use subscriber count to assess channel authority

Common Use Cases


Example Workflow: Video Research

Research video content on a topic:
  1. YouTube Block (Search Videos):
    • Operation: Search Videos
    • Search Query: {{input.topic}} tutorial
    • Max Results: 10
    • Sorting Order: Views
  2. LLM Block:
  3. Google Sheets Block: Store research findings

Example Workflow: Transcript Analysis

Extract and analyze video transcripts:
  1. YouTube Block (Search Videos):
    • Operation: Search Videos
    • Search Query: {{input.keyword}}
    • Max Results: 5
    • Sorting Order: Views
  2. Loop Block: Process each video
  3. YouTube Block (Get Video Details):
    • Operation: Get Video Details
    • Video URL: {{current.url}}
    • Get Transcript: Enabled
  4. LLM Block:
  5. Google Sheets Block: Append summaries

Example Workflow: Competitor Video Analysis

Analyze competitor YouTube content:
  1. Google Sheets Block: Read list of competitor channel names
  2. Loop Block: Process each competitor
  3. YouTube Block (Search Videos):
    • Operation: Search Videos
    • Search Query: {{current.channel_name}}
    • Max Results: 10
    • Sorting Order: Views
  4. LLM Block:
  5. Google Sheets Block: Append competitor analysis

Troubleshooting

Search Videos Issues

Get Video Details Issues


What’s Next

Now that you understand the YouTube block: