N8N Tools - YouTube Enhanced icon

N8N Tools - YouTube Enhanced

Comprehensive YouTube Data API v3 and Analytics integration for N8N workflows

Actions83

Overview

This node provides enhanced integration with YouTube's Data API v3 and Analytics, enabling users to retrieve detailed analytics and metrics related to YouTube channel memberships. Specifically, for the Channel Memberships resource and the Get Growth Metrics operation, it fetches membership growth data over a specified date range. This is useful for creators or managers who want to track how their channel memberships evolve over time, helping them understand subscriber engagement and revenue trends.

Practical examples include:

  • Monitoring the increase or decrease in channel members during a marketing campaign.
  • Analyzing membership growth patterns to optimize content or membership perks.
  • Reporting membership trends for business insights or stakeholder presentations.

Properties

Name Meaning
Start Date The start date for the analytics data period to retrieve membership growth metrics from.
End Date The end date for the analytics data period to retrieve membership growth metrics until.

Output

The node outputs JSON data containing the membership growth metrics for the specified channel within the given date range. The structure typically includes time-series data points representing membership counts or changes over time.

Each output item corresponds to one execution input and contains:

  • json: The raw analytics data returned by the YouTube API for membership growth metrics.
  • itemData.item: The index of the input item that generated this output.

No binary data is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service, which acts as a proxy or enhancer for YouTube API calls.
  • Requires OAuth2 credentials for YouTube API access.
  • The node internally uses multiple helper classes to interact with various YouTube API endpoints, including the Channel Memberships API.

Troubleshooting

  • Invalid subscription or API key error: If you receive an error about invalid subscription or API key, verify that your API key credential is correct and that your subscription to the N8N Tools API service is active.
  • API rate limits or quota exceeded: YouTube API has quotas; if you hit limits, consider optimizing requests or requesting higher quota.
  • Date range errors: Ensure that the start date is before the end date and both are valid ISO date strings.
  • Network or connectivity issues: Check your network connection and firewall settings to allow outbound HTTPS requests to the required APIs.

Links and References

Discussion