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 to perform a wide range of operations related to YouTube data and analytics. Specifically, for the Playlists resource with the Get Playlist operation, it retrieves detailed information about a specified YouTube playlist by its ID.

Common scenarios where this node is beneficial include:

  • Fetching metadata and details of a specific playlist for content management or reporting.
  • Automating workflows that require playlist information, such as syncing playlists with other platforms or generating reports.
  • Integrating playlist data into dashboards or CRM systems.

Practical example:

  • A marketing team wants to automatically pull details of a promotional playlist to update their website with the latest playlist title, description, and video count.

Properties

Name Meaning
Playlist ID The unique identifier of the YouTube playlist to retrieve.
Max Results Maximum number of results to return (used in some playlist-related operations).
Page Token Token for pagination to fetch subsequent pages of results if available.
Language Language code (e.g., "en" for English, "pt" for Portuguese) to specify language context.

Note: For the Get Playlist operation, the primary required property is Playlist ID.

Output

The node outputs JSON data containing the playlist details retrieved from YouTube. This typically includes fields such as:

  • Playlist metadata (title, description, privacy status).
  • Playlist content details (number of videos, thumbnails).
  • Other relevant playlist attributes as provided by the YouTube Data API.

If multiple items are processed, the output is an array of objects each corresponding to one input item.

The node does not output binary data for this operation.

Dependencies

  • Requires an active subscription and valid API key for the external "N8N Tools API" service, which acts as a proxy or enhancer for YouTube API calls.
  • Requires OAuth2 credentials or API keys configured in n8n for authenticating with YouTube.
  • The node internally uses several helper classes to interact with different YouTube API endpoints.

Troubleshooting

  • Invalid subscription or API key error: If you receive an error indicating invalid subscription or API key, verify that your API key credential is correct and has the necessary permissions.
  • Playlist not found or invalid ID: Ensure the Playlist ID is correct and the authenticated user has access to view the playlist.
  • Rate limits or quota exceeded: YouTube API enforces quotas; hitting these may cause errors. Consider optimizing requests or increasing quota.
  • Pagination issues: If expecting more results, ensure to use the Page Token property correctly to paginate through results.

Links and References

Discussion