# YouTube Channel Scraper: Analytics, Emails & Creator Finder (`pegton/youtube-channel-analytics`) Actor

Find YouTube creators by keyword or analyze any channel: subscribers, total views, upload cadence, median views, like rate, views per subscriber, Shorts share, links and public emails. Filters by size, activity and country; optional video rows.

- **URL**: https://apify.com/pegton/youtube-channel-analytics.md
- **Developed by:** [Rafael Iovi](https://apify.com/pegton) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 channel analyzeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## YouTube Channel Scraper: Analytics, Emails & Creator Finder

*A **YouTube channel scraper** and **influencer finder**: search by keyword or paste channels, and get subscribers, views, upload cadence, engagement, links and public emails per channel.*

Vet YouTube creators in seconds — or **find** them by keyword. One analytics row per channel, built for influencer-marketing agencies, brands and creators:

- **Size**: subscribers, **exact total channel views**, video count, joined date, country, verified badge
- **Activity**: last upload, days since last upload, uploads in the last 30 days, uploads per week
- **Performance**: median & average views of recent videos (exact numbers from YouTube's official feed), average likes, **like rate %**, **views-per-subscriber %** (the best "is this audience real and engaged?" signal), top recent video
- **Format mix**: Shorts share of recent uploads, Shorts median views, long-form median views and average duration
- **Contacts & links**: public emails from the channel description, website, Instagram, TikTok, X, Facebook, Twitch, LinkedIn, Discord, Patreon, Linktree… and whether a (hidden) business email exists
- Optional **video rows**: title, publish time, exact views & likes for the newest 15 uploads, rounded views for older ones, duration, Shorts flag

### Find creators

`searchQueries` + filters: `minSubscribers`, `maxSubscribers`, `maxDaysSinceLastUpload`, `countries`. Channels that don't match are skipped **and not charged**.

```json
{ "searchQueries": ["vegan rezepte"], "maxChannelsPerSearch": 20, "minSubscribers": 10000, "maxDaysSinceLastUpload": 30, "countries": ["DE", "AT"] }
```

### Analyse a list

`channels` accepts handles (`@mkbhd`), channel URLs, channel IDs (`UC…`) and any video or Shorts URL (its channel is analysed). Duplicates are merged.

### Output (shortened)

```json
{ "type": "channel", "title": "Marques Brownlee", "handle": "@mkbhd", "country": "United States",
  "subscribers": 21400000, "totalViews": 5902302065, "videoCount": 1866, "joinedDate": "2008-03-21",
  "daysSinceLastUpload": 5.1, "uploadsLast30Days": 7, "medianViewsRecent": 9219519, "likeRatePct": 1.15,
  "viewsPerSubscriberPct": 43.08, "shortsShareRecentPct": 13.3, "emails": ["business@mkbhd.com"],
  "instagram": "http://instagram.com/MKBHD", "x": "http://twitter.com/MKBHD", "charged": true }
```

Views: **Channel analytics**, **Contacts & links**, **Videos**, **Errors**. `RUN_SUMMARY` holds counts, filters and runtime.

### How it works / fair use

Reads only public YouTube pages and YouTube's official RSS and oEmbed endpoints — 4 light requests per channel, politely paced. No login, no cookies, no CAPTCHA solving, no bot-check bypassing. Hidden business emails ("sign in to see email") are **not** extracted; we only tell you one exists.

### Limits

- Subscriber counts are rounded by YouTube itself (e.g. 21.4M). Total views and video counts are exact.
- Exact views/likes are available for the 15 newest uploads; older videos have YouTube's rounded view counts.
- Comment counts and watch-page details are not collected.
- From EU IPs YouTube may show a consent page → error `consent_wall` (default Apify servers are in the US).

### Errors (never charged)

`invalid_input`, `not_found`, `blocked`, `rate_limited`, `consent_wall`, `network_error`, `parse_error`.

### FAQ

**How much does it cost?** $3 per 1,000 channels ($0.003 each) and $0.50 per 1,000 video rows (only if `includeVideos` is on), plus Apify's $0.00005 start event. Filtered channels, duplicates and errors are free.

**Does it find YouTube channel emails?** It returns emails that the creator published in the channel description. It does not reveal the hidden "business email" button, because that needs a login and a CAPTCHA.

**Can I find influencers by country and size?** Yes. Combine `searchQueries` with `countries`, `minSubscribers`/`maxSubscribers` and `maxDaysSinceLastUpload` to get only active creators of the right size.

**Is this the YouTube Data API?** No API key or quota needed. It reads public channel pages and YouTube's official RSS feed.

### Ready-made templates

The [Market Radar n8n pack](https://pegton.gumroad.com/l/market-radar-n8n) includes a ready-to-import workflow that uses this Actor to build a scored creator shortlist, plus workflows for ads, app reviews and leads.

# Actor input Schema

## `channels` (type: `array`):

Handles (@mkbhd), channel URLs, channel IDs (UC…) or any video/Shorts URL (its channel is analysed). One per line.

## `searchQueries` (type: `array`):

YouTube channel search, e.g. 'vegan recipes', 'fitness deutsch'. Combine with the filters below to find creators.

## `maxChannelsPerSearch` (type: `integer`):

How many matching channels to deliver per search query.

## `minSubscribers` (type: `integer`):

Skip channels with fewer subscribers (not charged).

## `maxSubscribers` (type: `integer`):

0 = no limit

## `maxDaysSinceLastUpload` (type: `integer`):

Only channels that uploaded within this many days. 0 = any.

## `countries` (type: `array`):

ISO codes or names, e.g. DE, AT, US. Empty = any.

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

One row per recent video/Short (exact views & likes for the 15 newest, rounded views for older).

## `maxVideosPerChannel` (type: `integer`):

Video rows per channel when 'Also output video rows' is on.

## `maxItems` (type: `integer`):

0 = no limit

## `maxChargeUsd` (type: `number`):

Stop before the estimated charge exceeds this. 0 = no extra limit.

## `maxConcurrency` (type: `integer`):

YouTube is fetched politely; 4 is a good default.

## `proxyConfiguration` (type: `object`):

Not needed. If you run from an EU IP, use a non-EU proxy country to avoid YouTube's consent page.

## Actor input object example

```json
{
  "channels": [
    "@mkbhd",
    "https://www.youtube.com/@veritasium",
    "UCX6OQ3DkcsbYNE6H8uQQuVA"
  ],
  "maxChannelsPerSearch": 20,
  "minSubscribers": 0,
  "maxSubscribers": 0,
  "maxDaysSinceLastUpload": 0,
  "includeVideos": false,
  "maxVideosPerChannel": 30,
  "maxItems": 0,
  "maxChargeUsd": 0,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All rows (views: analytics, contacts, videos, errors).

## `runSummary` (type: `string`):

Counts, filters, errors, runtime, estimated charge.

# 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 = {
    "channels": [
        "@mkbhd",
        "https://www.youtube.com/@veritasium",
        "UCX6OQ3DkcsbYNE6H8uQQuVA"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pegton/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 = {
    "channels": [
        "@mkbhd",
        "https://www.youtube.com/@veritasium",
        "UCX6OQ3DkcsbYNE6H8uQQuVA",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

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

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

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

```

## CLI example

```bash
echo '{
  "channels": [
    "@mkbhd",
    "https://www.youtube.com/@veritasium",
    "UCX6OQ3DkcsbYNE6H8uQQuVA"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call pegton/youtube-channel-analytics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pegton/youtube-channel-analytics"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2sAmdDNLMdMjKjuEO/builds/kuTifUfw3oCejxRjJ/openapi.json
