N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

The "Search All" operation in the YouTube Enhanced node allows users to perform comprehensive searches across YouTube content, including videos, channels, playlists, or all types combined. This operation is useful for workflows that need to retrieve relevant YouTube content based on a search query with customizable filters such as content type, sorting order, and pagination.

Common scenarios include:

  • Finding the latest videos or channels related to a specific topic.
  • Aggregating playlists or channels matching certain keywords.
  • Building content discovery tools or dashboards that dynamically fetch YouTube data.
  • Automating content curation by searching and processing YouTube results programmatically.

For example, a user can search for "JavaScript tutorials" videos ordered by view count, limiting results to 10 per request, and paginate through multiple pages of results.

Properties

Name Meaning
Search Query The text query string used to search YouTube content.
Search Type The type of content to search for. Options: Video, Channel, Playlist, All (all types combined).
Order The order in which search results are returned. Options: Relevance, Date, Rating, Title, Video Count, View Count.
Max Results Maximum number of results to return (1 to 50).
Page Token Token for pagination to retrieve subsequent pages of results.

Output

The output is an array of JSON objects representing the search results returned by the YouTube API. Each item corresponds to a search result entry containing metadata about videos, channels, or playlists depending on the search type selected.

The structure typically includes fields such as:

  • id: Identifier of the video, channel, or playlist.
  • snippet: Metadata like title, description, thumbnails, published date, etc.
  • Other YouTube API response fields relevant to the search result.

No binary data is output by this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external YouTube-related API service provided by "N8N Tools".
  • The node uses this API key to validate access before making requests.
  • Proper configuration of credentials in n8n is necessary to authenticate and authorize API calls.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • API rate limits: Exceeding YouTube API quota or N8N Tools API limits may cause errors or incomplete results. Consider adjusting max results or adding delays.
  • Pagination issues: Incorrect or expired page tokens may lead to empty or repeated results. Ensure correct handling of the Page Token property.
  • Empty results: If no results are returned, check the search query and filters for correctness and try broadening the search parameters.

Links and References

Discussion