Skip to main content

Node Inputs

Required Fields

Search Query:
The search term to find YouTube videos.
Example: "coffee brewing tutorial"

Optional Fields

Max Results:
Maximum number of results to retrieve.
Example: 20
Default: 10
Sort By:
Sorting criteria for search results.
Available options:
  • relevance: Most relevant videos
  • date: Most recent videos
  • view_count: Most viewed videos
  • rating: Highest rated videos
    Default: relevance
Upload Date:
Filter by upload date.
Available options:
  • hour: Last hour
  • today: Today
  • week: This week
  • month: This month
  • year: This year
    Default: No filter
Duration:
Filter by video duration.
Available options:
  • short: Under 4 minutes
  • medium: 4-20 minutes
  • long: Over 20 minutes
    Default: No filter

Node Output

Search Results:
A list of YouTube videos matching the search query with metadata.
Example Output:
{
  "query": "coffee brewing tutorial",
  "total_results": 20,
  "videos": [
    {
      "video_id": "dQw4w9WgXcQ",
      "title": "Perfect Coffee Brewing Tutorial",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "channel": "Coffee Masters",
      "channel_url": "https://www.youtube.com/channel/UC123456",
      "thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
      "duration": "10:25",
      "views": 1250000,
      "published_date": "2024-08-15",
      "description": "Learn how to brew the perfect cup of coffee..."
    }
  ]
}

Node Functionality

The YouTube Search node:
  • Searches YouTube for videos using SerpAPI.
  • Supports multiple sorting and filtering options.
  • Retrieves comprehensive video metadata.
  • Filters by upload date and duration.
  • Returns structured data for video analysis and content research.
I