# YouTube Channel Scraper: Stats, Links & Growth (`paul_studio/youtube-channel-scraper`) Actor

YouTube channel data from handles, links, IDs, videos or keyword searches: exact total views, subscribers, country, join date, links, upload rate and recent average views. Track growth between runs.

- **URL**: https://apify.com/paul_studio/youtube-channel-scraper.md
- **Developed by:** [Paul Yu](https://apify.com/paul_studio) (community)
- **Categories:** Videos, Social media, 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 $0.60 / 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

### What does YouTube Channel Scraper do?

It collects YouTube channel data from a list of channels or from keyword searches: subscribers, exact total views, video count, country, join date, description, links, and, when you want it, how the channel's latest uploads are doing. One row per channel, ready to compare.

- **Paste anything.** `@handles`, any channel link (`/channel/`, `/c/`, `/user/`, `/@name/videos`), channel IDs, or a video link to get the channel behind it. Lines without a link are searched as keywords to find channels.
- **Find creators by niche.** A keyword search returns the channels YouTube ranks for it, filtered by subscriber range and country. Channels outside your filters are not charged.
- **Real activity, not just size.** Turn on the uploads analysis to get the average and median views of the latest videos, uploads per month and the last upload date, so a channel with 1M subscribers and 3K views per video stands out.
- **Growth over time.** With tracking on, each run adds how many subscribers, views and videos a channel gained since the previous run. Put it on a schedule to follow competitors or creators you work with.
- **Links you can use.** Websites and social profiles come back as real addresses, with YouTube's redirect removed.

**Price:** $0.001 per channel on the Free plan ($0.0006 on Gold), or $0.002 with the uploads analysis ($0.0012 on Gold). $1 ≈ 1,000 channels on the Free plan, up to 1,666 on Gold. Each run also has a start fee of $0.001 ($0.0007 on Gold), so a scheduled run that finds nothing new costs a tenth of a cent. To cap spending, set Maximum cost per run in Run options; the run never goes over it. The cost limit always uses your own plan's price. When the limit cannot cover the uploads analysis, the channel is saved at the plain price instead.

![Results page: channels compared by subscribers, recent views and upload rate](https://raw.githubusercontent.com/daupaul/apify-actor-assets/main/youtube-channels/hero.png)

### What you get for each channel

| Profile | Numbers | Latest uploads (optional) |
|---|---|---|
| Name, @handle, link, channel ID | Subscribers (and as YouTube shows them) | Average and median views |
| Description, keywords | Exact total views | Uploads in the last 30 days (among those analysed), per month |
| Country, join date, verified | Video count | Last upload |
| Avatar, banner | Change since the last run (tracking) | The videos: title, views, date, length |
| Links, business email offered | | |

Lines that cannot be found (a deleted channel, a handle that does not exist, a search with no results) get a row with the reason, free of charge.

After each run, the **Results page** in the Output tab shows the channels as cards you can search, sort (subscribers, total views, recent views, upload rate, growth, newest) and filter by country, in light or dark mode, with a CSV download.

### How to use it

1. Paste channels or search words, one per line.
2. Set **Channels per search**. End a search line with `| 50` to take 50 channels from that line.
3. Choose what to collect: links (on by default) and the uploads analysis.
4. Optionally set a subscriber range or countries.
5. Click **Start**. Ten channels take about ten seconds.

To follow channels over time, turn on **Track changes**, give the tracker a name and add a [schedule](https://docs.apify.com/platform/schedules).

### Input example

```json
{
  "sources": ["@3blue1brown", "https://www.youtube.com/c/MKBHD", "home espresso | 30"],
  "includeRecentVideos": true,
  "recentVideos": 20,
  "minSubscribers": 1000,
  "maxSubscribers": 500000
}
```

### Output example

```json
{
  "channelId": "UCYO_jab_esuFRV4b17AJtAw",
  "title": "3Blue1Brown",
  "handle": "@3blue1brown",
  "url": "https://www.youtube.com/@3blue1brown",
  "subscribers": 8760000,
  "subscribersText": "8.76M subscribers",
  "totalViews": 794993039,
  "videoCount": 249,
  "joinedDate": "2015-03-03",
  "country": "United States",
  "verified": true,
  "keywords": ["Mathematics"],
  "links": [
    {"title": "All things 3b1b", "url": "https://www.3blue1brown.com"},
    {"title": "Patreon", "url": "https://www.patreon.com/3blue1brown"}
  ],
  "hasBusinessEmail": false,
  "recentVideosAnalysed": 20,
  "recentAvgViews": 1921850,
  "recentMedianViews": 1650000,
  "uploadsLast30Days": 1,
  "uploadsPerMonth": 1.6,
  "lastUploadText": "1 day ago",
  "status": "ok"
}
```

### Use cases

- **Influencer and creator outreach:** find channels in a niche and size range, check they still upload and that their views match their subscribers, then reach them through their links.
- **Competitor tracking:** follow rival channels on a schedule and see their subscriber and view growth run by run.
- **Market research:** map who publishes on a topic, where they are based and how big they are.
- **Lead lists and AI:** clean, one-row-per-channel data for spreadsheets, CRMs and your own models.

### FAQ

#### How exact are the numbers?

Total views and video count are exact. YouTube rounds subscribers (8.76M), so `subscribers` is the rounded number and `subscribersText` keeps what YouTube shows. In the uploads analysis, views are the rounded figures YouTube shows on the Videos tab, and dates come from text like "2 weeks ago", so uploads per month is an estimate. `uploadsLast30Days` counts the uploads analysed: when all of them are from the last 30 days, analyse more uploads to see the full number. Live streams in progress are left out of the view averages.

#### Do you get the business email?

No. YouTube shows a channel's business email only to signed-in viewers after a check, and this Actor does not sign in to YouTube or solve those checks. `hasBusinessEmail` tells you the channel offers one, and `links` often include a website or contact page.

#### Why do some channels have no country or subscriber count?

The country is set by the channel owner and is often left empty. Some channels hide their subscriber count, and channels YouTube generates itself (Music, Gaming, artist "Topic" channels) have no About page. Those fields are left empty, never guessed. A filter on subscribers or country skips such channels.

#### How does tracking work?

The Actor stores the last numbers it saw for each channel under your tracker name. The next run with the same name adds `subscribersChange`, `totalViewsChange`, `videoCountChange` and `previousCheckAt`. Use a new name to start over.

#### What happens when YouTube blocks a request?

Each request is retried from new IP addresses, and the run switches to residential IPs when your plan includes them. A channel that still cannot be read gets a free row that says so.

#### Is it legal to scrape YouTube channels?

The Actor reads what YouTube shows publicly to any viewer, without signing in. Channel pages can contain personal data, so make sure your use complies with privacy law such as the GDPR, and with YouTube's terms.

### Use it from AI assistants and code

Works as a tool in Claude, ChatGPT, Cursor and other assistants through the [Apify MCP server](https://mcp.apify.com/). Add `https://mcp.apify.com?tools=paul_studio/youtube-channel-scraper` to your MCP client and ask, for example: "Find 30 home espresso channels with 10K to 200K subscribers that uploaded this month."

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("paul_studio/youtube-channel-scraper").call(run_input={
    "sources": ["home espresso | 30"], "minSubscribers": 10000, "maxSubscribers": 200000, "includeRecentVideos": True,
})
for ch in client.dataset(run["defaultDatasetId"]).iterate_items():
    if ch["status"] == "ok":
        print(ch["title"], ch["subscribers"], ch["recentAvgViews"], ch["lastUploadText"])
```

### Pricing

You pay per channel saved: one price for a channel, a higher one when its latest uploads are analysed (never both). Channels that cannot be found, channels outside your filters and duplicates are free. Proxies are included. Set a maximum cost per run in the run options and the Actor never goes over it; if the limit is reached part way, the last channel is saved without the uploads analysis rather than dropped.

### Feedback

Something missing or wrong? Open an issue on the **Issues** tab with the channel link.

# Actor input Schema

## `sources` (type: `array`):

One per line: @handle, channel link, channel ID (UC…), a video link (its channel is read) or keywords to search for channels. End a search line with | 50 to take 50 channels from it.

## `maxChannels` (type: `integer`):

In the order YouTube ranks them. Channel lines always give one channel.

## `includeLinks` (type: `boolean`):

Websites and social profiles from the channel page, and whether it offers a business email. Free.

## `includeRecentVideos` (type: `boolean`):

Average and median views of the latest videos, uploads per month, last upload, and the videos themselves. Priced as channel with uploads.

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

From the Videos tab, newest first. Shorts and live streams are not counted.

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

Channels outside the range are skipped and not charged.

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

e.g. 100000 to find smaller creators for outreach.

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

Country names as YouTube shows them, e.g. "United States" or "Taiwan". Channels without a country are skipped when set.

## `trackChanges` (type: `boolean`):

Adds subscriber, view and video growth since the previous run with the same tracker name. Run it on a schedule.

## `monitorName` (type: `string`):

Give each list its own name, e.g. "competitors". Use a new name to start over. Runs with the same name share one tracker, also across Tasks.

## Actor input object example

```json
{
  "sources": [
    "@mkbhd",
    "home espresso"
  ],
  "maxChannels": 20,
  "includeLinks": true,
  "includeRecentVideos": false,
  "recentVideos": 15,
  "countries": [],
  "trackChanges": false,
  "monitorName": "default"
}
```

# Actor output Schema

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

No description

## `channels` (type: `string`):

No description

## `report` (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 = {
    "sources": [
        "@mkbhd",
        "home espresso"
    ],
    "maxChannels": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("paul_studio/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 = {
    "sources": [
        "@mkbhd",
        "home espresso",
    ],
    "maxChannels": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("paul_studio/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 '{
  "sources": [
    "@mkbhd",
    "home espresso"
  ],
  "maxChannels": 20
}' |
apify call paul_studio/youtube-channel-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,paul_studio/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/9kjlqgdlwfW65leYH/builds/ZoF4KQ4U9xPY77ZOu/openapi.json
