# YouTube Channel Analytics (`miccho27/youtube-channel-analytics`) Actor

Scrape YouTube channel statistics: subscriber count, total views, video count, join date, and full video list with view counts, duration, and publish dates.

- **URL**: https://apify.com/miccho27/youtube-channel-analytics.md
- **Developed by:** [Tatsuya Mizuno](https://apify.com/miccho27) (community)
- **Categories:** Developer tools
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## YouTube Channel Analytics - Subscriber Count, Views & Video Stats Scraper (No API Key)

Extract YouTube channel statistics and video-level metrics without a YouTube Data API key -- no OAuth, no Google Cloud billing, no quotas. Get subscriber count, total views, video count, join date, and individual video metrics (views, duration, publish date). The best free alternative to Social Blade ($3.99/mo), VidIQ ($7.50/mo), TubeBuddy ($4.99/mo), and YouTube Data API (10,000 units/day limit).

### Who Is This For?

- **YouTubers** -- Track your own channel growth and video performance without third-party dashboards
- **Marketing agencies** -- Pull influencer channel stats for campaign reporting and vetting
- **Brand managers** -- Evaluate potential sponsorship partners by subscriber count, engagement, and content frequency
- **Market researchers** -- Analyze competitor channels and industry trends at scale
- **Data analysts** -- Build YouTube datasets for trend analysis, content strategy, and audience research
- **Investors** -- Due diligence on creator economy startups and influencer-driven businesses

### Features

- Extract subscriber count, total views, video count, join date
- Scrape individual video titles, view counts, duration, publish dates
- Sort videos by newest, most popular, or oldest
- Bulk channel analysis (multiple channels per run)
- Supports @handle, /channel/ID, and /c/name URL formats
- Playwright-based for reliable JavaScript rendering
- No API key or Google Cloud account required
- Export as JSON, CSV, or Excel

### Pricing -- Free to Start

| Tier | Cost | What You Get |
|------|------|-------------|
| **Free trial** | $0 | Apify free tier includes monthly compute credits |
| **Pay per channel** | ~$0.02-0.10/channel | Only pay for actual Apify compute used |
| **vs. Social Blade Pro** | Saves $3.99/mo | No subscription needed |
| **vs. VidIQ Pro** | Saves $7.50/mo | Bulk processing + API access included |
| **vs. YouTube Data API** | No quota limits | No 10,000 units/day cap |

### Quick Start (3 Steps)

1. **Click "Try for free"** on this Actor's page in Apify Store
2. **Paste YouTube channel URLs** (e.g., `https://www.youtube.com/@MrBeast`)
3. **Click "Start"** and get channel stats with video metrics as JSON, CSV, or Excel

### How It Compares to Paid YouTube Analytics Tools

| Feature | This Actor (FREE) | Social Blade ($3.99/mo) | VidIQ ($7.50/mo) | YouTube Data API (Free + quota) |
|---------|-------------------|------------------------|-------------------|-------------------------------|
| Subscriber count | Yes | Yes | Yes | Yes |
| Total views | Yes | Yes | Yes | Yes |
| Video-level stats | Yes | Limited | Yes | Yes |
| Bulk channels | Yes (unlimited) | 1 at a time | Limited | Rate limited (10K units/day) |
| API access | Yes (Apify API) | No | No | Yes |
| Scheduling | Yes (Apify scheduler) | No | No | Manual |
| Historical data | Current snapshot | 30-day history | Limited | Current only |
| No API key needed | Yes | Yes | Browser extension | No (key required) |
| Monthly cost | $0 (pay per run) | $3.99 | $7.50 | Free (quota limited) |

### Input

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `channelUrls` | string[] | Yes | - | YouTube channel URLs (@handle, /channel/ID, or /c/name) |
| `includeVideos` | boolean | No | true | Whether to scrape individual video details |
| `maxVideos` | integer | No | 30 | Max videos to collect per channel (1-200) |
| `sortVideos` | string | No | "newest" | Sort: newest, popular, oldest |

#### Example Input -- Single Channel Analysis

```json
{
  "channelUrls": [
    "https://www.youtube.com/@MrBeast"
  ],
  "includeVideos": true,
  "maxVideos": 50,
  "sortVideos": "popular"
}
````

#### Example Input -- Bulk Competitor Analysis

```json
{
  "channelUrls": [
    "https://www.youtube.com/@MrBeast",
    "https://www.youtube.com/@PewDiePie",
    "https://www.youtube.com/@markiplier",
    "https://www.youtube.com/@jacksepticeye"
  ],
  "includeVideos": true,
  "maxVideos": 20,
  "sortVideos": "newest"
}
```

#### Example Input -- Channel Overview Only (No Videos)

```json
{
  "channelUrls": [
    "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA"
  ],
  "includeVideos": false
}
```

### Output Example -- Channel Data

```json
{
  "success": true,
  "dataType": "channel",
  "channelUrl": "https://www.youtube.com/@MrBeast",
  "channelName": "MrBeast",
  "handle": "@MrBeast",
  "subscriberCount": 358000000,
  "subscriberText": "358M subscribers",
  "totalViews": 62000000000,
  "videoCount": 850,
  "joinDate": "Feb 20, 2012",
  "description": "SUBSCRIBE FOR A COOKIE!",
  "avatarUrl": "https://yt3.googleusercontent.com/...",
  "bannerUrl": "https://yt3.googleusercontent.com/...",
  "scrapedAt": "2026-04-01T12:00:00.000Z"
}
```

### Output Example -- Video Data

```json
{
  "success": true,
  "dataType": "video",
  "channelUrl": "https://www.youtube.com/@MrBeast",
  "channelName": "MrBeast",
  "handle": "@MrBeast",
  "videoTitle": "$1 vs $1,000,000,000 Yacht!",
  "videoUrl": "https://www.youtube.com/watch?v=...",
  "views": 245000000,
  "viewsText": "245M views",
  "published": "2 months ago",
  "durationSeconds": 952,
  "durationText": "15:52",
  "thumbnailUrl": "https://i.ytimg.com/vi/.../hqdefault.jpg",
  "scrapedAt": "2026-04-01T12:00:00.000Z"
}
```

### Output Fields

#### Channel Record

| Field | Type | Description |
|-------|------|-------------|
| `dataType` | string | Always "channel" |
| `channelName` | string | Channel display name |
| `handle` | string | @handle (e.g., @MrBeast) |
| `subscriberCount` | number | Subscriber count (parsed) |
| `totalViews` | number | Lifetime view count |
| `videoCount` | number | Total videos uploaded |
| `joinDate` | string | Channel creation date |
| `description` | string | Channel description |
| `avatarUrl` | string | Profile picture URL |
| `bannerUrl` | string | Banner image URL |

#### Video Record

| Field | Type | Description |
|-------|------|-------------|
| `dataType` | string | Always "video" |
| `videoTitle` | string | Video title |
| `videoUrl` | string | Full video URL |
| `views` | number | View count (parsed) |
| `published` | string | Relative publish date |
| `durationSeconds` | number | Video length in seconds |
| `thumbnailUrl` | string | Thumbnail image URL |

### Real-World Use Cases

#### 1. Influencer Vetting for Sponsorships

Bulk-analyze 50+ influencer channels in minutes. Compare subscriber counts, average views per video, and posting frequency to find the best ROI for your brand deal budget.

#### 2. Competitor Content Strategy Analysis

Sort competitor videos by "popular" to identify their top-performing content. Analyze video lengths, title patterns, and posting frequency to reverse-engineer their strategy.

#### 3. YouTube Niche Research

Scrape 20+ channels in a niche to calculate average subscribers, views, and video frequency. Determine market saturation and opportunity gaps before starting a new channel.

#### 4. Creator Economy Due Diligence

For investors evaluating creator-led businesses, pull verified channel metrics (not self-reported) for subscriber trends, engagement rates, and content consistency.

#### 5. Automated Channel Growth Tracking

Schedule weekly runs via Apify scheduler. Export to Google Sheets or webhook to track your own channel's growth metrics over time without manual checking.

### FAQ

**Q: What YouTube URL formats are supported?**
A: All three formats work: `@handle` (e.g., youtube.com/@MrBeast), `/channel/` (e.g., youtube.com/channel/UCX6OQ3...), and `/c/` (e.g., youtube.com/c/MrBeast).

**Q: Why is the subscriber count approximate?**
A: YouTube only shows abbreviated subscriber counts publicly (e.g., "358M"). The Actor parses these abbreviations to numbers. For exact counts, only the channel owner has access via YouTube Studio.

**Q: Can I get likes and comments for each video?**
A: The current version extracts view counts, duration, and publish dates from the channel's video listing page. Individual video likes/comments require visiting each video page, which is available as a feature enhancement.

**Q: How many channels can I scrape in one run?**
A: No hard limit. Practical limit depends on your Apify compute budget. Each channel takes 30-60 seconds to process (more with video scraping). 50+ channels in a single run is typical.

**Q: Can I schedule this to run automatically?**
A: Yes. Use Apify's built-in scheduler to run daily, weekly, or on any cron schedule. Export to Google Sheets, webhook, or S3 for automated reporting pipelines.

### Pricing

Pay Per Event -- charged per channel processed. Typical cost: $0.02-0.10 per channel (depends on `maxVideos` and Apify compute). Free tier available for testing.

### Tags

youtube, channel-analytics, subscriber-count, video-stats, influencer-research, social-media-scraper, youtube-scraper, content-analysis, creator-economy, social-blade-alternative

# Actor input Schema

## `channelUrls` (type: `array`):

List of YouTube channel URLs to analyze. Supports /c/, /@handle, and /channel/ formats.

## `includeVideos` (type: `boolean`):

When enabled, scrapes the channel's video list with view counts, duration, and publish dates.

## `maxVideos` (type: `integer`):

Maximum number of videos to extract per channel (1-200).

## `sortVideos` (type: `string`):

How to sort the video list.

## Actor input object example

```json
{
  "channelUrls": [
    "https://www.youtube.com/@mkbhd"
  ],
  "includeVideos": true,
  "maxVideos": 30,
  "sortVideos": "newest"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "channelUrls": [
        "https://www.youtube.com/@mkbhd"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("miccho27/youtube-channel-analytics").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "channelUrls": ["https://www.youtube.com/@mkbhd"] }

# Run the Actor and wait for it to finish
run = client.actor("miccho27/youtube-channel-analytics").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "channelUrls": [
    "https://www.youtube.com/@mkbhd"
  ]
}' |
apify call miccho27/youtube-channel-analytics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=miccho27/youtube-channel-analytics",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "YouTube Channel Analytics",
        "description": "Scrape YouTube channel statistics: subscriber count, total views, video count, join date, and full video list with view counts, duration, and publish dates.",
        "version": "1.0",
        "x-build-id": "29Pdk0GSksW2b6hgf"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/miccho27~youtube-channel-analytics/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-miccho27-youtube-channel-analytics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/miccho27~youtube-channel-analytics/runs": {
            "post": {
                "operationId": "runs-sync-miccho27-youtube-channel-analytics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/miccho27~youtube-channel-analytics/run-sync": {
            "post": {
                "operationId": "run-sync-miccho27-youtube-channel-analytics",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "channelUrls"
                ],
                "properties": {
                    "channelUrls": {
                        "title": "YouTube Channel URLs",
                        "type": "array",
                        "description": "List of YouTube channel URLs to analyze. Supports /c/, /@handle, and /channel/ formats.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeVideos": {
                        "title": "Include Video List",
                        "type": "boolean",
                        "description": "When enabled, scrapes the channel's video list with view counts, duration, and publish dates.",
                        "default": true
                    },
                    "maxVideos": {
                        "title": "Max Videos Per Channel",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Maximum number of videos to extract per channel (1-200).",
                        "default": 30
                    },
                    "sortVideos": {
                        "title": "Sort Videos By",
                        "enum": [
                            "newest",
                            "popular",
                            "oldest"
                        ],
                        "type": "string",
                        "description": "How to sort the video list.",
                        "default": "newest"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
