N8N Tools - YouTube Enhanced
Actions83
- Videos Actions
- Channels Actions
- Playlists Actions
- Search Actions
- Analytics Actions
- Get Channel Analytics
- Get Video Analytics
- Get Playlist Analytics
- Get Content Owner Analytics
- Get Audience Retention
- Get Demographics
- Get Geographic Data
- Get Device Data
- Get Traffic Source Data
- Get Revenue Data
- Get Ad Performance Data
- Get Subscriber Analytics
- Get Playback Location Data
- Get Video Performance Data
- Get Playlist Performance Data
- Get Annotation Performance Data
- Get Card Performance Data
- Get Sharing Service Data
- Get Live Streaming Data
- Get Content Type Data
- Get Time Based Data
- Comments Actions
- Subscriptions Actions
- Live Streaming Actions
- Video Upload Actions
- Community Posts Actions
- Thumbnails Actions
- Captions Actions
- Channel Memberships Actions
- Super Chat & Thanks Actions
Overview
The "Get Subscriber Analytics" operation of the YouTube Enhanced node fetches detailed subscriber-related analytics data for a specified YouTube channel over a defined date range. This node is useful for content creators, marketers, and analysts who want to monitor subscriber trends, such as gains, losses, and overall subscriber counts, to better understand audience engagement and growth patterns.
Typical use cases include:
- Tracking subscriber growth or decline over time.
- Analyzing the impact of specific campaigns or content on subscriber numbers.
- Generating reports for stakeholders about channel performance.
For example, a user can specify a channel ID and a date range to retrieve metrics like total subscribers gained or lost during that period, helping them evaluate their channel's health and growth.
Properties
| Name | Meaning |
|---|---|
| Channel ID | The unique identifier of the YouTube channel for which subscriber analytics are requested. |
| Start Date | The beginning date of the analytics data range (inclusive). |
| End Date | The ending date of the analytics data range (inclusive). |
| Metrics | The specific subscriber-related metrics to include in the report. Options include: |
| - Views | |
| - Estimated Minutes Watched | |
| - Average View Duration | |
| - Average View Percentage | |
| - Subscribers | |
| - Subscribers Gained | |
| - Subscribers Lost | |
| - Likes | |
| - Dislikes | |
| - Comments | |
| - Shares | |
| - Estimated Revenue | |
| - Ad Revenue | |
| - Gross Revenue | |
| - CPM | |
| - CPC | |
| - Impressions | |
| - Monetized Playbacks | |
| - Playback Based CPM | |
| - Annotation Impressions | |
| - Annotation Clicks | |
| - Annotation Clickable Impressions | |
| - Annotation Closable Impressions | |
| - Annotation Closes | |
| - Annotation Close Rate | |
| - Card Impressions | |
| - Card Clicks | |
| - Card Click Rate | |
| - Card Teaser Impressions | |
| - Card Teaser Clicks | |
| - Card Teaser Click Rate | |
| - Audience Watch Ratio | |
| - Relative Retention Performance | |
| Max Results | Maximum number of results to return (default 100, min 1, max 1000). |
| Start Index | Index of the first result to return (default 1, minimum 1). |
Output
The node outputs JSON data containing the requested subscriber analytics metrics for the specified channel and date range. The structure typically includes:
- Time series or aggregated data points corresponding to the selected metrics.
- Each data point may include metric values such as subscriber count, subscribers gained, and subscribers lost.
- Additional metadata related to the analytics query (e.g., date ranges, dimensions if applicable).
No binary data output is produced by this operation.
Example output snippet (simplified):
{
"subscriberAnalytics": [
{
"date": "2024-01-01",
"subscribers": 1500,
"subscribersGained": 50,
"subscribersLost": 10
},
{
"date": "2024-01-02",
"subscribers": 1540,
"subscribersGained": 60,
"subscribersLost": 20
}
]
}
Dependencies
- Requires an active subscription and valid API key credential for the external YouTube analytics service integrated via the "N8N Tools API".
- Requires OAuth2 credentials for YouTube API access.
- The node internally validates the API key with the external service before making requests.
- No additional environment variables are explicitly required beyond these credentials.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the provided API key credential is correct and active.
- Permission Errors: Ensure that the OAuth2 credentials have sufficient permissions to access YouTube Analytics data for the specified channel.
- Date Range Issues: Providing an invalid or future date range may cause errors or empty results. Confirm that start and end dates are valid and logical.
- Max Results Limits: Requesting more than the allowed maximum results (1000) may cause errors; adjust the "Max Results" property accordingly.
- API Quotas: Exceeding YouTube API quotas may result in rate limiting errors; consider optimizing request frequency or applying for higher quota limits.