# YouTube Channel Scraper - Subscribers, Links & Emails, No Login (`ragnum/youtube-channel-scraper`) Actor

Scrape YouTube channels by URL, @handle, channel ID or channel search: subscribers, exact video and view counts, join date, country, links, verified badge, latest uploads and optional public emails. $0.50 per 1,000 channels, platform usage included, search results cost the same as direct lookups.

- **URL**: https://apify.com/ragnum/youtube-channel-scraper.md
- **Developed by:** [Ragnum](https://apify.com/ragnum) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 channels

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 — Subscribers, Links & Emails, No Login

Get clean, structured data for any YouTube channel: subscribers, **exact** video and view counts, join date, country, verified and artist badges, keywords, About links, avatar and banner, the latest uploads and, if you want, **public emails**. Look channels up by URL, @handle or channel ID, or **find channels by keyword**.

**$0.50 per 1,000 channels**, platform usage included. Channels found by search cost the same as direct lookups. Emails are an optional add-on at **$2.00 per 1,000 emails found**. Failed inputs and duplicates are free.

- Any input format in one list: `https://www.youtube.com/@mkbhd`, `@mkbhd`, `UCBJycsmduvYEL83R_U4JriQ`, `/c/…` and `/user/…` URLs
- Channel search: turn keywords like "cooking" into full channel rows
- Parsed numbers next to the display text (`viewCount: 5881789532` and `"5,881,789,532 views"`)
- Latest uploads attached to each channel row, free
- Public emails from the description, link titles and (optionally) the channel's own website, checked for a working mail server
- `hasBusinessEmail` tells you when YouTube holds a hidden business email for the channel
- No login, no cookies, nothing to configure

### Copy to your AI assistant

```text
Use the Apify Actor "ragnum/youtube-channel-scraper" to get YouTube channel data.
Minimal input: {"channels": ["@mkbhd"]}
Search input:  {"searchQueries": ["cooking"], "maxChannelsPerSearch": 50}
Emails:        {"channels": ["@mkbhd"], "extractEmails": true, "followLinks": true}
One dataset row per channel; error rows have errorCode and are not charged.
Docs: https://apify.com/ragnum/youtube-channel-scraper.md
```

### Quick start

Look up channels in any format:

```json
{
    "channels": ["@mkbhd", "https://www.youtube.com/@veritasium", "UCsXVk37bltHxD1rDPwtNM8Q"]
}
```

Find channels by keyword, with their 5 latest uploads:

```json
{
    "searchQueries": ["home cooking", "street food"],
    "maxChannelsPerSearch": 100,
    "recentVideos": 5
}
```

Collect public contact emails:

```json
{
    "channels": ["@mkbhd", "@kurzgesagt"],
    "extractEmails": true,
    "followLinks": true
}
```

### Input

| Field                  | Type     | Default                  | What it does                                                                                                                                     |
| ---------------------- | -------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `channels`             | string\[] | – (prefill `["@mkbhd"]`) | Channel URLs, @handles or channel IDs (UC…), mixed. Bare names like `mkbhd` are read as `@mkbhd`. The same channel listed twice is scraped once. |
| `searchQueries`        | string\[] | `[]`                     | Keywords for YouTube's channel search. Each channel found gets a full row.                                                                       |
| `maxChannelsPerSearch` | integer  | 50                       | Channels per search query (1–1,000).                                                                                                             |
| `recentVideos`         | integer  | 0                        | Attach the N latest uploads (0–30) to each row. Free.                                                                                            |
| `extractEmails`        | boolean  | false                    | Find public emails (description, link titles). Each unique valid email is one `email-found` charge.                                              |
| `followLinks`          | boolean  | false                    | With `extractEmails`: also read the channel's linked website (linked page + `/contact`, up to 2 sites).                                          |
| `maxResults`           | integer  | –                        | Optional cap on channel rows for the whole run.                                                                                                  |
| `hl`                   | string   | `en`                     | Interface language (changes display texts and country names; numbers are parsed either way).                                                     |
| `gl`                   | string   | `US`                     | Region (affects search results).                                                                                                                 |
| `maxConcurrency`       | integer  | 10                       | Parallel requests (1–20).                                                                                                                        |

### Output

One row per channel. Example (shortened):

```json
{
    "channelId": "UCBJycsmduvYEL83R_U4JriQ",
    "handle": "@mkbhd",
    "url": "https://www.youtube.com/@mkbhd",
    "title": "Marques Brownlee",
    "description": "MKBHD: Quality Tech Videos | YouTuber | Geek | … business@MKBHD.com …",
    "subscriberCount": 21400000,
    "subscriberCountText": "21.4M subscribers",
    "videoCount": 1865,
    "videoCountText": "1,865 videos",
    "viewCount": 5881789532,
    "viewCountText": "5,881,789,532 views",
    "joinedAt": "2008-03-21",
    "joinedDateText": "Joined Mar 21, 2008",
    "country": "United States",
    "isVerified": true,
    "isArtist": false,
    "isFamilySafe": true,
    "keywords": ["MKBHD", "MarquesBrownlee", "Marques", "Brownlee"],
    "links": [
        { "title": "Twitter", "url": "http://twitter.com/MKBHD" },
        { "title": "Instagram", "url": "http://instagram.com/MKBHD" }
    ],
    "avatarUrl": "https://yt3.googleusercontent.com/…=s900-c-k-c0x00ffffff-no-rj",
    "bannerUrl": "https://yt3.googleusercontent.com/…=w2560-…",
    "hasBusinessEmail": true,
    "emails": [{ "email": "business@mkbhd.com", "foundOn": "description" }],
    "recentVideos": [
        {
            "videoId": "_x58r9TBois",
            "url": "https://www.youtube.com/watch?v=_x58r9TBois",
            "title": "Meta VR Glasses: What Vision Pro 2 COULD Have Been!",
            "durationSeconds": 481,
            "viewCount": 3900000,
            "viewCountText": "3.9M views",
            "publishedTimeText": "1 day ago",
            "publishedAtEstimate": "2026-11-07T10:00:12.782Z",
            "type": "video"
        }
    ],
    "source": "@mkbhd",
    "scrapedAt": "2026-11-08T10:10:10.233Z"
}
```

| Field                                     | Description                                                                                                                                                                                              |
| ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `channelId`                               | Channel ID (UC…), the stable key.                                                                                                                                                                        |
| `handle`, `url`, `title`, `description`   | @handle, channel URL, name, full description.                                                                                                                                                            |
| `subscriberCount` / `subscriberCountText` | Subscribers as a number and as shown. YouTube rounds this one (21.4M). Null when hidden.                                                                                                                 |
| `videoCount` / `videoCountText`           | Public videos, exact when YouTube shows it ("1,865 videos").                                                                                                                                             |
| `viewCount` / `viewCountText`             | Total channel views, exact.                                                                                                                                                                              |
| `joinedAt` / `joinedDateText`             | Creation date (YYYY-MM-DD) and the text shown.                                                                                                                                                           |
| `country`                                 | Country shown on the channel.                                                                                                                                                                            |
| `isVerified`, `isArtist`, `isFamilySafe`  | Badges and YouTube's family-safe flag.                                                                                                                                                                   |
| `keywords`                                | Channel tags.                                                                                                                                                                                            |
| `links`                                   | About links `{title, url}` with the real target URL.                                                                                                                                                     |
| `avatarUrl`, `bannerUrl`                  | Largest avatar and the banner.                                                                                                                                                                           |
| `hasBusinessEmail`                        | YouTube has a hidden business email for this channel.                                                                                                                                                    |
| `emails`                                  | `{email, foundOn}` — `foundOn` is `description`, `linkTitle` or the website page URL. `null` when email extraction is off.                                                                               |
| `recentVideos`                            | Latest uploads `{videoId, url, title, durationSeconds, viewCount, viewCountText, publishedTimeText, publishedAtEstimate, type}`. `publishedAtEstimate` is computed from "3 days ago" and is an estimate. |
| `source`                                  | Your input, or `search:<query>` for search results.                                                                                                                                                      |
| `scrapedAt`                               | ISO 8601 timestamp.                                                                                                                                                                                      |

**Error rows.** When an input can't be returned (channel deleted, handle doesn't exist, a video link instead of a channel), the dataset gets `{ input, error, errorCode, retryable, source, scrapedAt }` so you can match every input to an output. Error rows are never charged. Codes: `CHANNEL_NOT_FOUND`, `INVALID_INPUT`, `SEARCH_FAILED`, `BLOCKED`, `NETWORK`, `NO_DATA`.

A `RUN_SUMMARY` record in the key-value store shows what each input resolved to, per-search counts, field fill rates and why the run stopped.

### Pricing

Pay per result, platform usage included:

| Event                                                                     | Price                     |
| ------------------------------------------------------------------------- | ------------------------- |
| Channel (one row in the dataset)                                          | $0.0005 ($0.50 per 1,000) |
| Email found (one unique, valid email in a row; only with `extractEmails`) | $0.002 ($2.00 per 1,000)  |

| You get                                               | Cost                  |
| ----------------------------------------------------- | --------------------- |
| 100 channels                                          | $0.05                 |
| 1,000 channels                                        | $0.50                 |
| 10,000 channels                                       | $5.00                 |
| 1,000 channels with `extractEmails`, 400 emails found | $0.50 + $0.80 = $1.30 |

Search results, latest uploads and links are included in the channel price. Error rows, duplicates and retries are free. Set a maximum cost per run in Apify Console and the run stops cleanly when it is reached.

### Limits and known gaps

- **The hidden business email is never revealed.** YouTube shows it only after sign-in and a CAPTCHA; this Actor doesn't sign in or solve CAPTCHAs. You get `hasBusinessEmail: true` so you know one exists.
- Emails come only from publicly visible text: the channel description, link titles, and (with `followLinks`) the channel's own website — the linked page and its `/contact` page, up to two sites per channel. Social networks, link-in-bio pages, link shorteners, stores and music/app platforms are not visited.
- Emails are checked for valid syntax and a working mail server, and obvious junk (image file names, placeholder domains like example.com, no-reply addresses) is dropped. A valid mail server doesn't guarantee the mailbox exists.
- Subscriber counts are rounded by YouTube (21.4M); video and view counts are exact when the About panel provides them.
- Avatar and banner URLs are YouTube CDN links that can change or expire. Download them if you need to keep them.
- `recentVideos` comes from the channel's Videos tab; channels without one (some music and topic channels) return an empty list.
- Channel search returns what YouTube returns for the query; very broad queries can end before `maxChannelsPerSearch`.
- **Free plan preview:** on the Apify Free plan, a run processes the first input only and returns up to 20 rows. Any paid plan removes the limit.

### FAQ

**Does it need a YouTube account or API key?** No. It reads public channel pages without login or cookies.

**Is a search result charged differently from a direct lookup?** No. Every channel row costs the same, however it was found.

**I listed the same channel twice (handle and ID). Am I charged twice?** No. Channels are de-duplicated across all inputs and searches; duplicates are skipped and free.

**Why is `emails` empty but `hasBusinessEmail` is true?** The channel only provides its email through YouTube's hidden "View email address" button, which this Actor doesn't open. Try `followLinks` to check the channel's website.

**Can I get the channel's full video list?** This Actor attaches up to 30 latest uploads per channel. For full video lists, use a dedicated YouTube video scraper.

**Which languages work?** Any. Set `hl` for display texts; numeric fields are parsed in all common languages.

### Legal

This Actor collects only publicly available data that YouTube shows to any visitor. Emails, names, handles and avatars can be personal data: you are responsible for using the results lawfully, including GDPR, CCPA and anti-spam laws (e.g. CAN-SPAM, ePrivacy), and for complying with YouTube's Terms of Service. Don't use the data for unsolicited bulk email.

# Actor input Schema

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

Channels to scrape, one per line, in any mix of formats: channel URLs (https://www.youtube.com/@mkbhd, https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ, /c/ and /user/ URLs, tab URLs like …/videos), @handles (@mkbhd) or channel IDs (UC…). Each channel gives one row and one `channel` charge. Inputs pointing to the same channel are scraped once.

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

Find channels by keyword (YouTube's channel search), e.g. "cooking" or "tech reviews". Every channel found gets the same full row as a direct lookup, at the same price. Channels already returned by another input are not repeated or charged twice.

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

Stop each search query after this many channels (1–1,000). Each channel is one row and one `channel` charge, so this caps the cost of every search.

## `recentVideos` (type: `integer`):

Attach the channel's N latest uploads (0–30) to its row: video ID, URL, title, duration, views and upload time. Free: included in the channel price. 0 = none.

## `extractEmails` (type: `boolean`):

Find email addresses shown publicly in the channel description and link titles (and on the channel's website with the next option). Addresses are checked for valid syntax and a working mail server. Each unique valid email adds one `email-found` charge ($0.002). YouTube's hidden business email is never revealed; the row only says whether the channel has one (`hasBusinessEmail`).

## `followLinks` (type: `boolean`):

Only with "Extract emails": also read the channel's own linked website (the linked page and its /contact page, up to two sites per channel) for public emails. Social networks, link-in-bio pages, shorteners and stores are skipped. Makes runs slower; no extra charge except for emails found.

## `maxResults` (type: `integer`):

Optional overall cap on channel rows for the whole run (all inputs together). Leave empty for no cap. Error rows do not count.

## `hl` (type: `string`):

YouTube interface language code (en, de, fr, es, ja, …). Changes display texts such as "21.4M subscribers" vs "21,4 Mio. Abonnenten" and the country name; numeric fields are parsed either way.

## `gl` (type: `string`):

Two-letter region code (US, GB, DE, IN, …). Affects channel search results.

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

How many requests run in parallel (1–20).

## `residentialFallback` (type: `boolean`):

Retry requests that YouTube keeps refusing over a different connection. Recommended; included in the price.

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

Managed for you and included in the price. Change only if you need a specific country or your own proxies.

## Actor input object example

```json
{
  "channels": [
    "@mkbhd"
  ],
  "searchQueries": [],
  "maxChannelsPerSearch": 50,
  "recentVideos": 0,
  "extractEmails": false,
  "followLinks": false,
  "hl": "en",
  "gl": "US",
  "maxConcurrency": 10,
  "residentialFallback": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

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

No description

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ragnum/youtube-channel-scraper").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"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ragnum/youtube-channel-scraper").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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ragnum/youtube-channel-scraper --silent --output-dataset

```

## MCP server setup

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

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/coTlyQ2z3TTfRIkKl/builds/lzwzKIbbRw8PiS7Qw/openapi.json
