---
title: "Channel Analytics"
description: "The Channel Analytics API allows you to retrieve detailed analytics data for any YouTube channel, including subscriber counts, video counts, view counts, and more."
source: "https://dashboard.nexlev.io/docs/n8n/channel-analytics"
---

# Channel Analytics

The Channel Analytics API allows you to retrieve detailed analytics data for any YouTube channel, including subscriber counts, video counts, view counts, and more.

## Overview

Use this API to fetch comprehensive analytics information for YouTube channels in your n8n workflows. This resource provides three main operations: Get Analytics (basic channel metrics), Get Geography Demographics Revenue (audience insights and revenue data), and Get Short vs Long Views (content format performance comparison).

## Quick Start

Get started in 3 simple steps:

1. **Install NexLev**: Add the NexLev node to your n8n instance ([Installation Guide](/docs/n8n/quickstart))
2. **Get API Key**: Create your API key at [API Key](https://dashboard.nexlev.io/nexlev-api/create-api-key)
3. **Make Your First Request**:
   - Add NexLev node → Select **"Channel Analytic"** → Choose **"Get Analytics"**
   - Enter a Channel ID (e.g., `UCX6OQ3DkcsbYNE6H8uQQuVA`)
   - Execute to get channel analytics

**Example Result**: You'll receive comprehensive channel analytics including subscriber count, view count, video count, and detailed channel information.

### Endpoint Details

- **Resource**: Channel Analytic
- **Operations**: Get Analytics | Get Geography Demographics Revenue | Get Short vs Long Views
- **Authentication**: Required ([API Key](https://dashboard.nexlev.io/nexlev-api/create-api-key))
- **Quota Cost**: 🥞 **10 quota** (Get Analytics) · 🥞 **1 quota** (Get Short vs Long Views) · 🥞 **20 quota** (Get Geography Demographics Revenue)

### API Reference

> **Info**
>
> Full endpoint details, cURL examples, and response schemas live in the
> [Channel Analytics API reference](/docs/api/channel-analytics).

| Operation                          | Method & Path                                                                  | Quota Cost |
| ---------------------------------- | ------------------------------------------------------------------------------ | ---------- |
| Get Analytics                      | `POST /api/external/analytics/channel-analytics`                               | 🥞 10      |
| Get Geography Demographics Revenue | `POST /api/external/analytics/channel-analytics/geography-revenue`             | 🥞 20      |
| Get Short vs Long Views            | `GET /api/external/analytics/channel-analytics/:channelId/short-vs-long-views` | 🥞 1       |

> **Warning**
>
> **Authentication Required** — see [Authentication](/docs/api/authentication)
> for the required header format and how to get an API key.

### Operations Quick Reference

| Operation                          | Purpose                                 | Returns       | Best For                           | Quota Cost |
| ---------------------------------- | --------------------------------------- | ------------- | ---------------------------------- | ---------- |
| Get Analytics                      | Basic channel metrics and information   | Single object | Channel profiling, growth tracking | 🥞 10      |
| Get Geography Demographics Revenue | Audience insights and revenue estimates | Single object | Monetization analysis, targeting   | 🥞 20      |
| Get Short vs Long Views            | Content format performance comparison   | Single object | Content strategy optimization      | 🥞 1       |

## Configuration

### Parameters

| Parameter  | Type   | Required | Description                                                              |
| ---------- | ------ | -------- | ------------------------------------------------------------------------ |
| Channel ID | string | Yes      | The unique YouTube channel identifier (e.g., `UC9XrHBgOxsNFEBXkLtEqCwA`) |

### Setup Steps

**Step 1: Add NexLev Node**

- Add the **NexLev** node to your workflow
- See [Quickstart Guide](/docs/n8n/quickstart) for installation instructions

**Step 2: Configure Resource**

- Under **Resource**, select **Channel Analytic**

**Step 3: Select Operation**

Choose one of the following operations:

| Operation                              | Description                                       |
| -------------------------------------- | ------------------------------------------------- |
| **Get Analytics**                      | Get basic channel analytics data                  |
| **Get Geography Demographics Revenue** | Get detailed demographics, geography, and revenue |
| **Get Short vs Long Views**            | Get short and long video view counts              |

**Step 4: Authentication**

- Under **Credential to connect with**, select your **NexLev account**
- If not configured, create one using your [API Key](https://dashboard.nexlev.io/nexlev-api/create-api-key)

**Step 5: Enter Channel ID** ✅ Required

- In the **Channel ID** field, enter the YouTube channel ID you want to analyze
- Channel IDs typically start with "UC" followed by 22 characters

![Configure channel analytics operation](https://dashboard.nexlev.io/images/documentation/channel-analytics-operation-1.png)

### Execution

Click **Execute step** to retrieve the channel analytics data.

## Available Operations

The Channel Analytics resource provides three different operations to retrieve various types of analytics data:

### Get Analytics

Get comprehensive analytics data for a YouTube channel including subscriber count, video count, view count, channel information, social links, upload history, and content metrics.

**When to use this operation:**

- Building channel profile dashboards with complete metadata
- Tracking channel growth metrics over time
- Comparing multiple channels for competitive analysis
- Gathering channel information for research databases

> **Tip**
>
> Full response schema: [Get Analytics — API Reference
> →](/docs/api/channel-analytics#analytics)

### Get Geography Demographics Revenue

Get geography, demographics, and revenue data for a YouTube channel including RPM, gender distribution, age distribution, viewership by country, and revenue breakdowns.

**When to use this operation:**

- Analyzing audience demographics for targeting strategies
- Understanding revenue potential by content category
- Identifying geographic markets for content localization
- Comparing RPM rates across different niches

> **Tip**
>
> Full response schema: [Get Geography Demographics Revenue — API Reference
> →](/docs/api/channel-analytics#geography-revenue)

### Get Short vs Long Views

Get short and long video views for a YouTube channel.

**When to use this operation:**

- Comparing short-form vs long-form content performance
- Understanding content format preferences
- Analyzing content strategy effectiveness
- Planning content mix optimization

> **Tip**
>
> Full response schema: [Get Short vs Long Views — API Reference
> →](/docs/api/channel-analytics#short-vs-long)

### Error Responses

> **Tip**
>
> Full error code reference: [Channel Analytics — API Reference
> →](/docs/api/channel-analytics#error-responses)

## Use Cases

Leverage channel analytics data in your workflows for:

- **Competitor Analysis**: Compare multiple channels to identify growth patterns and strategies
- **Performance Monitoring**: Track channel metrics over time with scheduled workflows
- **Automated Reporting**: Generate periodic channel performance reports
- **Growth Alerts**: Set up notifications for significant subscriber or view count changes
- **Research**: Gather data for market research and niche analysis
- **Monetization Planning**: Analyze RPM and revenue data to forecast earnings potential
- **Audience Targeting**: Use demographic data to refine content and marketing strategies
- **Content Format Optimization**: Compare shorts vs long-form performance to guide content mix

## Best Practices

### Performance Optimization

- **Cache analytics data**: Channel metrics change slowly, consider caching for 6-12 hours
- **Batch channel requests**: Process multiple channels in parallel for efficiency
- **Use appropriate operations**: Choose the right operation for your needs to minimize API calls
- **Monitor quota usage**: Get Analytics costs 🥞 **10 quota**; Get Short vs Long Views costs 🥞 **1 quota**; Get Geography Demographics Revenue costs 🥞 **20 quota** — cache results and batch wisely to stay within your plan

### Common Mistakes to Avoid

❌ **Don't**: Fetch all analytics operations when you only need basic metrics
✅ **Do**: Use Get Analytics for basic data, only fetch demographics/revenue when needed

❌ **Don't**: Poll analytics data every few minutes
✅ **Do**: Cache results and refresh every 6-24 hours based on your needs

❌ **Don't**: Ignore the avgVideoLength metric for content planning
✅ **Do**: Use average video length to benchmark your content against successful channels

## Workflow Examples

These examples show how to implement common use cases in n8n.

### Example 1: Basic Channel Analytics Workflow

**Difficulty**: Beginner | **Time**: 5 minutes | **Use Case**: Channel profiling

1. Add a [Manual Trigger](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.manualworkflowtrigger/) or [Schedule Trigger](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.scheduletrigger/) node
2. Add the **NexLev** node and configure it for **Get Analytics**
3. Add a [Code](https://docs.n8n.io/code-examples/) or **Set** node to process the analytics data
4. Add an output node (e.g., [Google Sheets](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/), **Email**, [Webhook](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/))

**Next Steps**: Add scheduled triggers to track channel growth over time.

---

### Example 2: Competitor Comparison

**Difficulty**: Intermediate | **Time**: 15 minutes | **Use Case**: Competitive analysis

1. Add a [Manual Trigger](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.manualworkflowtrigger/) with a list of competitor channel IDs
2. Add a **Loop** node to process each channel
3. Add the **NexLev** node inside the loop to fetch analytics for each channel
4. Add a [Code](https://docs.n8n.io/code-examples/) node to aggregate and compare the data
5. Add a [Google Sheets](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/) node to create a comparison report

**Next Steps**: Combine with demographic data for deeper insights.

## Related Resources

- [Quickstart Guide](/docs/n8n/quickstart) - Learn how to set up NexLev with n8n
- [Channel Analysis](/docs/n8n/channel-analysis) - Get comprehensive deep-dive analytics for channels
- [Channel Content](/docs/n8n/channel-content) - Retrieve channel information and video lists
- [Video Content](/docs/n8n/video-content) - Analyze individual video performance

## Support

If you encounter issues or have questions about the Channel Analytics API, please contact our support team at [contact@nexlev.io](mailto:contact@nexlev.io) or refer to our troubleshooting guide.
