# YouTube Channel Scraper: Videos, Stats & Viral Outlier Score (`weav3rx/youtube-channel-outlier-scraper`) Actor

Get every video of any YouTube channel with views, likes, comments, duration and tags, plus a viral Outlier Score (views vs the channel's typical video), views per day, engagement rate, best upload day and a channel summary. Official YouTube Data API: fast, reliable, no blocks.

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

## Pricing

from $1.00 / 1,000 videos

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: Videos, Stats & Viral Outlier Score

**Get every video of any YouTube channel, and see instantly which ones went viral.** For each video you get views, likes, comments, duration, tags and thumbnail, plus an **Outlier Score**: how many times more views the video got than that channel's typical video. A score of 5 means a video did five times better than normal for that creator. That is how top YouTubers find proven video ideas.

Built on the **official YouTube Data API**, so it is fast, stable and never gets blocked.

### What you get

**For every video**

- Title, URL, publish date, duration, Shorts-length or long, thumbnail, tags, language, captions available
- Views, likes, comments
- 🔥 **Outlier Score:** views ÷ the channel's median views for the same format (long videos and Shorts-length videos are compared separately, so Shorts don't distort the baseline)
- **Views per day** since publishing, to compare old and new videos fairly
- **Engagement rate:** (likes + comments) ÷ views

**For every channel** (in the run's `OUTPUT` record)

- Subscribers, total videos, videos analyzed
- Median views for long and Shorts-length videos
- Uploads per week over the last 90 days
- **Best upload weekday** by typical performance
- **Top 5 outliers**, the channel's biggest hits

### Why this one

- 🎯 **Find viral ideas, not just data.** Set *minimum Outlier Score* to 3 and get only the videos that crushed it. You pay only for the videos returned.
- 🛡️ **Official API = reliable.** No HTML scraping, no proxies, no broken runs when YouTube changes its page.
- ⚡ **Fast.** Hundreds of videos per channel in seconds.
- 🔗 **Paste anything:** channel URL, @handle, channel ID, legacy /c/ or /user/ URL, or a video URL.
- 📅 **Date filter** with plain periods like `3 months` or exact dates.

### Who uses it

- **YouTubers and editors:** study your niche's top creators and find the topics that consistently outperform.
- **Agencies and marketers:** benchmark competitors, find creators for campaigns, report on channel performance.
- **Analysts and researchers:** build datasets of channel performance over time.
- **AI agents:** a clean tool for "what are this channel's best videos?"

### How to use

1. Add channels, one per line, e.g. `https://www.youtube.com/@mkbhd` or `@veritasium`.
2. Choose how many recent videos to analyze (100 is a good default) and optionally a date range.
3. Optional: set *minimum Outlier Score* (e.g. `3`) to get only viral hits.
4. Run and export to CSV, Excel, JSON, Google Sheets, or connect Make, Zapier and webhooks.

### Example output

```json
{
  "channelTitle": "Example Channel",
  "channelHandle": "@example",
  "channelSubscribers": 1250000,
  "videoId": "abc123XYZ00",
  "url": "https://www.youtube.com/watch?v=abc123XYZ00",
  "title": "I tested every budget phone so you don't have to",
  "publishedAt": "2026-10-02T15:00:00Z",
  "durationSec": 1124,
  "format": "long",
  "views": 3400000,
  "likes": 121000,
  "comments": 8400,
  "outlierScore": 6.8,
  "viewsPerDay": 66667,
  "engagementRate": 0.038,
  "tags": ["phones", "review"],
  "thumbnail": "https://i.ytimg.com/vi/abc123XYZ00/maxresdefault.jpg",
  "hasCaptions": true
}
```

### How the Outlier Score works

For each channel we take the **median** views of the videos you fetched, separately for long videos and for videos up to 3 minutes long (YouTube allows Shorts up to 3 minutes). Live and upcoming streams and videos younger than 2 days are left out of the median because their numbers are not settled yet. Each video's score is its views divided by that median. The median, unlike an average, isn't skewed by one mega-hit.

Tip: fetch at least 50 videos per channel for a solid baseline.

### FAQ

**Do I need a YouTube API key?** No, the Actor uses its own. For very large runs you can add your own free key under *Advanced*.

**Why are likes or comments empty for some videos?** The creator hid likes or turned comments off. The other fields are still filled.

**Is "short" exactly a YouTube Short?** It means the video is 3 minutes or shorter, the maximum length of a Short. The official API doesn't label Shorts directly.

**What happens with a channel I mistyped?** It is reported as `not_found` in `OUTPUT`, and you are not charged for it.

Need another field or found a bug? Open an issue on the **Issues** tab, it is usually fixed within a day.

# Actor input Schema

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

One per line: channel URL (https://www.youtube.com/@mkbhd), @handle, channel ID (UC...), or any video URL (its channel is used).

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

Newest videos first. The Outlier Score is computed from the videos you fetch, so 50-200 gives a good baseline.

## `publishedAfter` (type: `string`):

A date (2026-01-01) or a period (3 months, 2 weeks). Leave empty for no limit.

## `videoFormat` (type: `string`):

Long videos, Shorts-length videos (up to 3 minutes), or both.

## `minOutlierScore` (type: `number`):

Return only videos that got at least this many times the channel's typical views. 2 = twice a normal video, 5 = a big hit. 0 = return all videos. You pay only for returned videos.

## `includeDescription` (type: `boolean`):

Adds the full description text to every video. Larger output.

## `apiKey` (type: `string`):

Optional. Your own free YouTube Data API v3 key for very large runs. Leave empty to use ours.

## Actor input object example

```json
{
  "channels": [
    "https://www.youtube.com/@mkbhd",
    "@veritasium"
  ],
  "maxVideosPerChannel": 100,
  "videoFormat": "all",
  "minOutlierScore": 0,
  "includeDescription": false
}
```

# Actor output Schema

## `videos` (type: `string`):

Per video: title, URL, publish date, duration, views, likes, comments, tags, thumbnail, format, views per day, engagement rate and Outlier Score.

## `channelSummaries` (type: `string`):

Per channel: subscribers, median views (long and Shorts-length), uploads per week, best weekday, top 5 outliers, and status for channels that were not found.

# 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/@mkbhd",
        "@veritasium"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("weav3rx/youtube-channel-outlier-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/@mkbhd",
        "@veritasium",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("weav3rx/youtube-channel-outlier-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/@mkbhd",
    "@veritasium"
  ]
}' |
apify call weav3rx/youtube-channel-outlier-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,weav3rx/youtube-channel-outlier-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/eUzUnkHKCms0HUyYz/builds/PKoPpnIHSHZR1AhB3/openapi.json
