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 and Analytics, enabling users to retrieve detailed analytics and metrics related to YouTube subscriptions growth. Specifically, the "Get Growth Metrics" operation under the "Subscriptions" resource fetches subscriber growth data for a specified YouTube channel within a given date range.

This node is beneficial for content creators, marketers, and analysts who want to monitor how their subscriber base evolves over time. For example, it can be used to track the effectiveness of marketing campaigns or content strategies by analyzing subscriber growth trends between two dates.

Properties

Name Meaning
Start Date The start date for the analytics data period from which subscriber growth metrics are retrieved. This is a required datetime input.
End Date The end date for the analytics data period up to which subscriber growth metrics are retrieved. This is a required datetime input.

Output

The output JSON contains the subscriber growth data returned by the YouTube API for the specified channel and date range. This typically includes metrics such as the number of subscribers gained or lost during the period, presented in a structured format suitable for further processing or reporting in workflows.

No binary data output is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service.
  • Requires OAuth2 credentials for accessing the YouTube API.
  • The node internally uses helper classes that wrap YouTube API endpoints for analytics and subscriptions.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • Authorization Errors (401/403): These errors suggest issues with authentication tokens or permissions. Ensure that the OAuth2 credentials have the necessary scopes and are not expired.
  • Missing Required Parameters: Both "Start Date" and "End Date" must be provided; missing these will cause errors.
  • API Rate Limits: Excessive requests may lead to rate limiting by YouTube or the external API service. Implement retry logic or reduce request frequency if needed.
  • Network Issues: Connectivity problems can cause request failures; check network status and proxy settings if applicable.

Links and References

Discussion