# YouTube Channel Scraper (`jclabs/youtube-channel-scraper`) Actor

Scrape YouTube channels: subscribers, total views, video count, country, join date, links and latest videos, as numbers ready to sort. No API key or quota.

- **URL**: https://apify.com/jclabs/youtube-channel-scraper.md
- **Developed by:** [Julián Camilo López Sánchez](https://apify.com/jclabs) (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.40 / 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 is YouTube Channel Scraper?

YouTube Channel Scraper extracts **YouTube channel data** from a list of channels. For every channel you get its **subscribers, total views, number of videos, country, join date, links and latest videos**, with counts as numbers and dates as dates, so you can sort and filter them right away.

Paste the channels as you copy them from YouTube, choose how many of their latest videos you want, and click **Start**. Download the results as **JSON, CSV, Excel, XML, HTML or RSS**, or read them through the **API**. Apify's Free plan gives you $5 of credit every month, enough for about 5,000 channels at no cost.

- Paste links, @handles or channel IDs, in any mix: `https://www.youtube.com/@MrBeast`, `@MrBeast` or `UCX6OQ3DkcsbYNE6H8uQQuVA`.
- See at a glance whether a channel is still active and how many people really watch: every row has the date of the last video and the median views of the latest 30.
- Run it without a YouTube account, an API key or the daily quota of the YouTube Data API.
- Schedule it, start it from your code, or send the results to Make, Zapier, n8n and AI agents.

### What data can you extract from a YouTube channel?

Each channel is one row with these 19 fields:

| Field | Description |
| --- | --- |
| `input` | The channel as you wrote it in your list |
| `position` | Place of the line in your list, starting at 1, not counting blank or identical lines |
| `channelId` | YouTube channel ID |
| `url` | Link to the channel |
| `handle` | The channel's @handle |
| `title` | Channel name |
| `description` | The channel description, in full |
| `country` | Country shown on the channel's About panel |
| `joinedDate` | Date the channel was created |
| `subscribers` | Subscribers as a number: `527000000`, not "527M subscribers" |
| `views` | Total views of the channel, exact |
| `videos` | Number of public videos, exact |
| `verified` | `true` if the channel has YouTube's verified badge |
| `avatar` | Link to the profile picture |
| `banner` | Link to the banner image |
| `links` | The links on the channel's About panel, with their real address |
| `lastVideoDate` | Date of the newest video (see Limitations) |
| `medianViews` | Median views of the latest videos, up to 30 |
| `latestVideos` | The newest videos, each with its title, link, views, duration and upload date |

### How to scrape YouTube channels

1. Click **Try for free** at the top of this page and sign in to Apify. A free account is enough.
2. Under **Channels**, paste one or more channels, one per line.
3. If you want, change **Latest videos per channel** (10 by default, up to 30).
4. Click **Start**. A list of 100 channels takes about a minute.
5. Open the **Output** tab to see the channels, then export them in the format you need.

### How much does it cost to scrape YouTube channels?

You pay **$1 per 1,000 channels** delivered, which is $0.001 per channel. The latest videos are included, and there is no fee per run or per video. A channel that doesn't exist is not charged.

| Channels | Cost |
| --- | --- |
| 100 | $0.10 |
| 1,000 | $1 |
| 10,000 | $10 |
| 100,000 | $100 |

Paid Apify plans pay less for every channel:

| Apify plan | Per 1,000 channels |
| --- | --- |
| Free | $1 |
| Starter | $0.80 |
| Scale | $0.60 |
| Business | $0.40 |

Apify's Free plan includes $5 of credit every month, which covers about 5,000 channels. To cap your spending, set a maximum cost per run in the run options. The Actor stops as soon as it reaches that amount, you are never charged more, and the run log says how many channels were left out.

### Input

**Channels** is the only required field.

| Field | What it does | Default |
| --- | --- | --- |
| **Channels** (`channels`) | Channels to read, one per line: a link, an @handle or a channel ID | Required |
| **Latest videos per channel** (`latestVideos`) | How many of each channel's newest videos to include, from 0 to 30 | 10 |

The same input in JSON, for runs started from the API:

```json
{
  "channels": ["https://www.youtube.com/@MrBeast", "@Apify", "UCX6OQ3DkcsbYNE6H8uQQuVA"],
  "latestVideos": 3
}
```

### Output

Each channel is a row in the dataset, in the order of your list. This is `@Apify`, with one video:

```json
{
  "input": "@Apify",
  "position": 1,
  "channelId": "UCTgwcoeGGKmZ3zzCXN2qo_A",
  "url": "https://www.youtube.com/@Apify",
  "handle": "@Apify",
  "title": "Apify",
  "description": "Apify equips you and your AI agents with thousands of ready-to-run tools ...",
  "country": "Czechia",
  "joinedDate": "2017-01-04",
  "subscribers": 42700,
  "views": 2715548,
  "videos": 315,
  "verified": false,
  "avatar": "https://yt3.googleusercontent.com/...",
  "banner": "https://yt3.googleusercontent.com/...",
  "links": [{ "title": "Browse tools", "url": "https://apify.com/store" }],
  "lastVideoDate": "2026-11-20",
  "medianViews": 876,
  "latestVideos": [
    {
      "videoId": "IPwMOELEY2Q",
      "url": "https://www.youtube.com/watch?v=IPwMOELEY2Q",
      "title": "Agentic Taste: How Do We Know What’s Good? | Run by Apify 2026",
      "views": 10,
      "duration": "21:32",
      "durationSeconds": 1292,
      "published": "2 hours ago",
      "publishedDate": "2026-11-20"
    }
  ]
}
```

The same channel written two ways, such as `@Apify` and its channel ID, comes once and is charged once.

### Limitations

- `subscribers` is rounded the way YouTube shows it: 527M becomes 527,000,000. `views` and `videos` are exact.
- `lastVideoDate` and each `publishedDate` are estimates. YouTube only says "5 days ago", so the date is the day of the run minus that.
- `latestVideos` and `medianViews` cover regular videos. Shorts and live streams are on other tabs of the channel and are not included.
- A channel that hides its subscriber count, or doesn't show a country or links, has those fields empty instead of guessed.
- The business email is not included: YouTube shows it only to signed-in users.
- Only public channel pages are read: nothing that needs an account.

### FAQ

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

The Actor collects only public information that YouTube shows to anyone, without logging in or getting around any block. Channel data can still include personal data, such as the name of a creator, and laws like the GDPR protect that data. Collect it only for a legitimate purpose, and ask a lawyer if you are unsure.

#### Can I use it as a YouTube channel API?

Yes. Every run can be started and read through the Apify API, and the **API** tab on this page has examples ready to copy in Python, JavaScript and cURL. Unlike the YouTube Data API, there is no daily quota and no Google project to set up.

#### What happens with a channel that doesn't exist?

It is skipped, it is not charged, and the run log names it as not found. The other channels in the list are not affected.

#### How do I find channels about a topic?

Search YouTube with [YouTube Search Scraper](https://apify.com/jclabs/youtube-search), then paste the `channelId` of the videos you like into this Actor.

#### How do I get the comments on a channel's videos?

Paste the `videoId` of the latest videos into [YouTube Comments Scraper](https://apify.com/jclabs/youtube-comments-scraper). It returns each comment with its author, likes, replies and date, and the replies themselves if you want them.

#### What can I use YouTube channel data for?

- Shortlist creators for an influencer campaign by subscribers, median views and country.
- Drop inactive channels before you reach out: `lastVideoDate` shows the last upload.
- Track competitors' channels on a schedule and see their subscribers and views grow.
- Enrich a list of leads with the website and social links each channel shows.
- Feed channel profiles to an AI agent that writes outreach or classifies creators.

### Support

Found a bug, or need a field that isn't there? Open an issue in the **Issues** tab with the input you used. The Actor is tested against YouTube every day, so a change on YouTube's side is spotted within a day.

# Actor input Schema

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

One channel per line, as you copy it from YouTube: a link (https://www.youtube.com/@MrBeast), a handle (@MrBeast) or a channel ID (UCX6OQ3DkcsbYNE6H8uQQuVA). The same channel written twice comes once.

## `latestVideos` (type: `integer`):

How many of each channel's newest videos to include in its row, from 0 to 30. Each row always says when the last video came out and the median views of the latest 30, even with 0.

## Actor input object example

```json
{
  "channels": [
    "https://www.youtube.com/@MrBeast",
    "@Apify"
  ],
  "latestVideos": 10
}
```

# Actor output Schema

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

One row per channel, in the order of your list, with subscribers, total views, video count, country, join date and latest videos.

# 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": [
        "https://www.youtube.com/@MrBeast",
        "@Apify"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jclabs/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": [
        "https://www.youtube.com/@MrBeast",
        "@Apify",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jclabs/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": [
    "https://www.youtube.com/@MrBeast",
    "@Apify"
  ]
}' |
apify call jclabs/youtube-channel-scraper --silent --output-dataset

```

## MCP server setup

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