N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

The node provides enhanced integration with YouTube's Data API v3, allowing users to perform a variety of operations on YouTube resources. Specifically for the Search resource and the Search Videos operation, it enables searching for YouTube videos based on a query string and various filtering options.

This node is beneficial in scenarios where you want to automate content discovery on YouTube, such as:

  • Finding videos related to specific topics or keywords.
  • Building workflows that react to new video uploads matching certain criteria.
  • Aggregating video data for analysis or reporting.

For example, you could use this node to search for the latest tutorial videos about "JavaScript promises" ordered by relevance or date, then process the results further in your workflow.

Properties

Name Meaning
Search Query The text query to search for videos on YouTube.
Search Type The type of content to search. Options: Video, Channel, Playlist, All.
Order The order in which to sort search results. Options: Relevance, Date, Rating, Title, Video Count, View Count.
Max Results Maximum number of results to return (1 to 50).
Page Token Pagination token to retrieve a specific page 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, typically including details such as video ID, title, description, thumbnails, channel information, and other metadata depending on the search type.

If pagination is used, the output may include tokens to fetch subsequent pages.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for the external "N8N Tools API" service, which validates subscription and access rights.
  • Uses YouTube Data API v3 endpoints via helper classes bundled within the node.
  • Proper configuration of credentials in n8n is necessary to authenticate requests.

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.
  • Rate limits or quota exceeded: YouTube API enforces quotas; hitting these limits will cause errors. Consider reducing max results or optimizing queries.
  • Empty or no results: Ensure the search query is valid and that the search type and order parameters are set appropriately.
  • Pagination issues: When using the page token, ensure it is correctly passed from previous outputs to fetch subsequent pages.

Links and References

Discussion