N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

This node integrates with YouTube's API via the N8N Tools service to perform a wide range of operations across multiple YouTube resources. Specifically for the Playlists resource and the Create Playlist Item operation, it allows users to add new items (videos) to an existing YouTube playlist.

Common scenarios where this node is beneficial include:

  • Automating the management of YouTube playlists by programmatically adding videos.
  • Integrating YouTube playlist updates into broader workflows, such as content publishing pipelines or social media automation.
  • Dynamically curating playlists based on external triggers or data sources.

For example, you could use this node to automatically add newly uploaded videos to a specific playlist, or to build thematic playlists by adding selected videos from various channels.

Properties

Name Meaning
Playlist ID The unique identifier of the YouTube playlist to which the item will be added.
Max Results Maximum number of results to return when listing or querying (not directly used in create). Allowed values: 1 to 50.
Page Token Pagination token for paged responses (used in list operations, not in create).
Language Language code (e.g., "en", "pt") for filtering or localization purposes (not directly used in create).

Note: For the Create Playlist Item operation, the critical input is the Playlist ID specifying the target playlist.

Output

The node outputs JSON data representing the response from the YouTube API after creating the playlist item. This typically includes details about the newly created playlist item such as its ID and metadata confirming successful addition.

The output structure is an array of objects, each containing a json property with the API response data and an itemData property indicating the index of the processed input item.

No binary data output is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key for the N8N Tools API service.
  • Requires OAuth2 credentials for YouTube API access.
  • The node internally uses helper classes that wrap YouTube API endpoints for various resources.
  • Proper configuration of credentials within n8n is necessary to authenticate requests.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that your N8N Tools API credentials are correct and active.
  • Permission errors from YouTube API: Ensure that the OAuth2 credentials have sufficient permissions to modify playlists.
  • Missing or incorrect Playlist ID: The Playlist ID must be valid and correspond to a playlist owned or accessible by the authenticated user.
  • API quota limits: YouTube API enforces quotas; exceeding these may cause errors. Monitor usage and adjust workflow frequency accordingly.
  • Continue on Fail: The node supports continuing execution on failure for individual items, allowing partial success in batch operations.

Links and References

Discussion