# Youtube Competitor Outlier Monitor (`conscientious_gelato/youtube-competitor-outlier-monitor`) Actor

Automate YouTube competitor analysis with this YouTube scraper. Track channels and instantly flag viral outlier videos hitting 3x-10x their median baseline. Perfect for creators, marketers, and agencies to reverse-engineer trends and winning content.

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

## Pricing

from $7.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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 Competitor Outlier Monitor do?

**YouTube Competitor Outlier Monitor** tracks competing YouTube channels, calculates each channel's statistical median view baseline, and automatically flags viral breakout videos that drastically outperform normal channel performance.

- **Spot breakout videos fast**: Identify videos hitting 3x, 5x, or 10x+ a channel's normal views without manually checking dozens of channels every day
- **Eliminate skew with median baselines**: Calculates each channel's true median view count (while also reporting `channelAverageViews`), so one past viral hit doesn't distort future baselines
- **Switch between daily monitoring and deep audits**: Use `monitor` mode for recent uploads (1–7 days) or `scan` mode for 90-day historical content research
- **Save ~90% on bandwidth and runtime**: Uses a two-stage pipeline that screens channel video grids first and fetches full video details only for genuine outlier candidates
- **Export data in multiple formats**: Download results as JSON, CSV, Excel, XML, or HTML
- **Automate your workflow**: Connect via Apify API, Python/Node.js SDKs, Schedules, webhooks, Slack, Discord, Make, or Zapier

### Use cases for YouTube outlier data

You can use YouTube Competitor Outlier Monitor to:

- **Spot trending formats early**: Catch newly surging competitor videos within days of upload using automated daily monitoring
- **Reverse-engineer winning topics**: Run 90-day scans across your niche to uncover evergreen winners and proven video hooks
- **Validate content ideas before filming**: Prioritize video topics backed by statistically verified outperformance rather than guesswork
- **Automate agency & creator alerts**: Send Slack or Discord notifications whenever a tracked competitor publishes a breakout hit
- **Benchmark competitors accurately**: Compare individual video performance against each channel's true baseline (`channelBaselineViews`) and subscriber size

### What data can you extract?

|                                   |                                   |
| :-------------------------------- | :-------------------------------- |
| 🔥 Outlier score (`outlierScore`) | 📺 Channel name & handle          |
| 👁️ Video view count               | 📊 Channel median baseline views  |
| 📈 Channel average views          | 👥 Channel subscriber count       |
| 📝 Video title & URL              | 🆔 Video ID & channel URL         |
| 📅 Publish date & days ago        | ⏱️ Duration (seconds & formatted) |
| 📽️ Video thumbnail URL            | 📋 Run summary (`RUN_SUMMARY`)    |

### How to find YouTube outlier videos

YouTube Competitor Outlier Monitor is designed to get you up and running in minutes, even if you have never used a scraper before:

1. Create a free [Apify account](https://apify.com/) using your email.
2. Open **YouTube Competitor Outlier Monitor** in Apify Console.
3. Add 1 to 50 competitor YouTube channel URLs, `@handles`, or channel IDs.
4. Choose your mode (`scan` for 90-day historical audits or `monitor` for recent breakouts) and outlier thresholds.
5. Click **Start** and wait for the analysis to finish.
6. Preview or download your results in JSON, CSV, Excel, XML, or HTML.

### ⬇️ Input example

You can configure the Actor using the visual form in Apify Console or pass JSON directly via the API.

#### 🔗 Adding competitor channels

Paste between **1 and 50** YouTube channel URLs, handles (for example `@veritasium`), or channel IDs into `channelUrls`.

If multiple input URLs resolve to the same YouTube channel ID, the Actor deduplicates them automatically—processing the channel once and logging any duplicate aliases in `skippedDetails`. Handles are not case-sensitive (`@MrBeast` and `@mrbeast` point to the same channel). Resolved channel IDs are cached in the `channel-handle-cache` Key-Value Store, and URLs that already contain a channel ID (`/channel/UC…`) are used directly, so repeat runs start faster and use less proxy traffic.

#### ⚡ Choosing a mode (`monitor` vs. `scan`)

- **`scan` (Default)**: Looks back across the last **90 days** to audit top-performing topics and historical outliers.
- **`monitor`**: Checks recent uploads from the last **7 days** (customizable via `lookbackDays`, e.g., `1` or `2` for daily alerts) to catch newly surging breakouts.

#### 🎯 Tuning baselines and outlier thresholds

To avoid skewed results from Shorts or small sample sizes, the Actor evaluates standard long-form uploads from each channel's **Videos** tab (default: `30` recent videos, configurable from `10` to `50`). Channels with fewer than 10 valid videos are skipped.

- **`minOutlierScore` (Default: `2`)**: Minimum multiplier above the channel's median views (`Video Views / Channel Median Baseline Views`). Increase to `5.0` or `10.0` to surface only extreme viral hits.
- **`minViews` (Default: `5000`)**: Minimum absolute view count required to filter out low-volume noise on smaller channels.
- **`maxResults` (Default: `50`)**: Maximum number of outlier records returned in the dataset across all channels (`1`–`200`), sorted by highest `outlierScore` first.

#### Input parameters reference

| Parameter            | Type                         | Default                         | Description                                                                                          |
| :------------------- | :--------------------------- | :------------------------------ | :--------------------------------------------------------------------------------------------------- |
| `channelUrls` \*      | Array of Strings             | *(Required)*                    | 1 to 50 YouTube channel URLs, `@handles`, or channel IDs.                                            |
| `mode`               | String (`monitor` | `scan`) | `"scan"`                      | `"scan"` audits the last 90 days; `"monitor"` tracks recent uploads (default 7 days).                |
| `lookbackDays`       | Integer                      | `7` (`monitor`) / `90` (`scan`) | Only evaluate videos published within the last X days (`1`–`365`). Leave empty to use mode defaults. |
| `minOutlierScore`    | Number                       | `2`                           | Minimum multiplier above the channel's median views.                                                 |
| `minViews`           | Integer                      | `5000`                          | Minimum absolute views required for a video to qualify as an outlier.                                |
| `videosPerChannel`   | Integer                      | `30`                            | Number of recent Videos-tab uploads used to compute the baseline (`10`–`50`).                        |
| `maxResults`         | Integer                      | `50`                            | Maximum number of outlier videos emitted to the dataset (`1`–`200`).                                 |
| `proxyConfiguration` | Object                       | Residential                     | Proxy settings. Apify Residential Proxies are strongly recommended.                                  |

#### Example input JSON

```json
{
    "channelUrls": [
        "https://www.youtube.com/@veritasium",
        "https://www.youtube.com/@MarkRober",
        "https://www.youtube.com/@lexfridman",
        "https://www.youtube.com/@hubermanlab",
        "https://www.youtube.com/@Fireship"
    ],
    "mode": "scan",
    "lookbackDays": 7,
    "minOutlierScore": 2,
    "minViews": 5000,
    "videosPerChannel": 30,
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"]
    }
}
```

### ⬆️ Output example

Results are saved to the default Apify **Dataset** in the **Storage** tab, sorted by highest `outlierScore` first (with ties broken deterministically by `videoId`). You can view them in a table with thumbnails or export the full dataset as JSON, CSV, Excel, XML, or HTML.

#### 🔥 Outlier video record

```json
{
    "outlierScore": 4.82,
    "videoId": "dQw4w9WgXcQ",
    "videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "title": "Why This Simple Invention Changed Everything",
    "channelName": "Veritasium",
    "channelUrl": "https://www.youtube.com/channel/UCHnyfMqiRRG1u-2MsSQLbXA",
    "channelHandle": "@veritasium",
    "channelSubscribers": 16200000,
    "channelAverageViews": 2450000,
    "channelBaselineViews": 1850000,
    "videoViews": 8917000,
    "publishedAt": "2026-11-18T14:30:00.000Z",
    "daysAgo": 2,
    "durationSeconds": 1042,
    "durationFormatted": "17:22",
    "thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
    "mode": "scan",
    "scanDate": "2026-11-20T05:00:00.000Z"
}
```

#### 📊 Run summary (`RUN_SUMMARY` in Key-Value Store)

Every run also writes a `RUN_SUMMARY` JSON record to the default **Key-Value Store** so you can audit channel processing, skipped URLs, and fallback usage:

```json
{
    "channelsRequested": 3,
    "channelsProcessed": 2,
    "channelsSkipped": 1,
    "skippedDetails": [
        {
            "inputUrl": "https://youtube.com/@veritasium",
            "channelId": "UCHnyfMqiRRG1u-2MsSQLbXA",
            "reason": "Duplicate channel ID"
        }
    ],
    "outliersFound": 4,
    "outliersDetected": 7,
    "fallbackUsedCount": 0,
    "durationSeconds": 14
}
```

- **`channelsRequested`**: Total channel entries provided in `channelUrls`.
- **`channelsProcessed`**: Unique channels successfully analyzed.
- **`channelsSkipped`**: Channels skipped due to resolution errors, duplicate aliases, or having fewer than 10 valid videos (detailed in `skippedDetails`).
- **`outliersDetected`**: Total unique outlier videos detected across all channels before `maxResults` truncation.
- **`outliersFound`**: Total outlier items written to the dataset (up to `maxResults`).
- **`fallbackUsedCount`**: Number of channels that required the sandboxed `yt-dlp` fallback.

### 💰 How much does it cost?

You pay **$0.01 per analyzed channel** (event: `channel-analyzed`), plus the Apify platform usage your run consumes, such as proxy traffic.

- A channel counts as analyzed once the Actor has calculated its baseline and checked its recent videos, even if it has no outliers.
- Channels that are skipped are **not charged**: channels that can't be resolved, duplicates of another input URL, channels with fewer than 10 valid videos, and channels that fail to load.
- Example: 50 competitor channels cost at most **$0.50** per run.
- Set a **maximum cost per run** in the run options to cap your spending. When the limit is reached, the Actor stops analyzing further channels and lists them in `skippedDetails` as "Maximum charge limit reached". Results from channels that were not charged are not included.

### Set up automated daily outlier alerts

Turn this Actor into a hands-free competitor alert system:

1. **Save an Actor Task**: Set `mode` to `"monitor"`, `lookbackDays` to `1` (or `2` to cover time-zone overlap), add your competitor `channelUrls`, and save the task.
2. **Schedule the Run**: Go to **Schedules > Create new schedule**, select your task, and set a daily cron schedule (for example `0 9 * * *` for 09:00 UTC).
3. **Connect a Webhook or Integration**: In your task's **Integrations** or **Webhooks** tab, trigger an action on `ACTOR.RUN.SUCCEEDED` to send alerts to Slack, Discord, Make, or Zapier.
4. **Filter Out Empty Runs**: In Make or Zapier (or your webhook handler), check the item count of `resource.defaultDatasetId`. Only send notifications when item count is `> 0`, posting the `title`, `outlierScore`, `thumbnailUrl`, and `videoUrl` directly to your team's channel.

### ❓ FAQ

#### How is the Outlier Score calculated?

The Actor collects recent long-form uploads (default: 30 videos) from each channel's **Videos** tab, calculates the **median** view count (`channelBaselineViews`), and divides each recent video's views by that median:

`Outlier Score = Video Views / Channel Median Baseline Views`

Using the median instead of the arithmetic mean prevents one massive viral video from inflating the baseline and hiding future breakouts. For comparison, the arithmetic mean is also provided in `channelAverageViews`.

#### Does this Actor include YouTube Shorts?

No. YouTube Competitor Outlier Monitor intentionally evaluates standard long-form uploads from each channel's **Videos** tab. Excluding Shorts prevents high-frequency, high-variance Short view counts from distorting long-form channel baselines.

#### How does the two-stage optimization save bandwidth?

In **Stage 1**, the Actor inspects the channel's video grid to compute the baseline and pre-filter outlier candidates. In **Stage 2**, it fetches full video details (exact views and exact publish date) **only** for qualifying candidates. If YouTube doesn't return the full details for a candidate, the Actor falls back to the view count and publish date shown on the channel's Videos tab, and it skips the video if it can't determine a publish date. This cuts proxy data usage and runtime by ~90% compared to scraping full details for every video on every channel.

#### How am I charged?

You are charged $0.01 for each channel that is successfully analyzed. See [How much does it cost?](#-how-much-does-it-cost) for details.

#### What happens if my run times out or I abort it?

The Actor saves the results and the `RUN_SUMMARY` for every channel it analyzed before the run stopped, so you keep what you were charged for. Channels that had not been analyzed yet are not charged. Increase the run timeout in the run options if you analyze many channels.

#### Should I use a proxy?

Yes. YouTube aggressively rate-limits and blocks datacenter IPs. Apify **Residential Proxies** (`"apifyProxyGroups": ["RESIDENTIAL"]`) are strongly recommended and enabled by default. The Actor uses a **fail-closed proxy architecture**—if proxy acquisition fails, it will refuse direct unproxied connections to protect your IP. Each channel is always assigned the same proxy session, so its requests keep the same IP address (where the proxy allows it), including across runs. Channels are processed a few at a time to stay under YouTube's rate limits, so large runs of up to 50 channels take a little longer. If primary Innertube requests are blocked, it automatically retries with exponential backoff and falls back to a sandboxed `yt-dlp` runner on the same sticky proxy.

#### What happens if a channel URL is duplicated or has too few videos?

Channels are resolved to unique YouTube channel IDs. If you pass multiple URLs or handles pointing to the same channel, the first is processed and subsequent aliases are skipped and logged under `skippedDetails` in `RUN_SUMMARY`. Channels with fewer than 10 valid videos in the Videos tab (or channels that fail to resolve) are also skipped and recorded in `skippedDetails`.

#### Can I integrate this Actor with other apps or use it via API?

Yes. You can connect it to Slack, Discord, Make, Zapier, Google Drive, and other tools through Apify's built-in **Integrations** and **Webhooks**. You can also trigger runs and fetch datasets programmatically via the Apify REST API using the `apify-client` package for Node.js or Python.

#### Why are some numbers rounded?

YouTube only shows subscriber counts in a shortened form, such as "21.5M", so `channelSubscribers` is an approximation. Baseline and average view values can be rounded for the same reason when they come from the channel's Videos tab. `videoViews` and `publishedAt` come from the video itself and are exact in almost all cases. If the Actor has to use the channel-page fallback, `publishedAt` can be approximate, because YouTube only provides relative dates such as "3 days ago" there.

#### Is it legal to scrape public YouTube data?

Extracting publicly available YouTube channel and video statistics is generally legal, provided you comply with applicable copyright, data privacy (such as GDPR), and platform rules. Avoid collecting or storing personal data without a legitimate basis, and consult legal counsel if you are unsure about your specific use case.

#### Your feedback

We are continuously improving **YouTube Competitor Outlier Monitor**. If you run into a bug or have a feature request, please open a ticket on the Actor's **Issues** tab in Apify Console.

# Actor input Schema

## `channelUrls` (type: `array`):

Paste 1–50 competitor channels (e.g. https://youtube.com/@MrBeast, @MrBeast, or /channel/UC...). Invalid entries cause the run to fail fast.

## `mode` (type: `string`):

scan = look back 90 days for best videos. monitor = look back 1–7 days for new breakouts.

## `lookbackDays` (type: `integer`):

Only consider videos uploaded in the last X days. Leave empty for automatic defaults (monitor = 7, scan = 90).

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

Only show videos that performed X times better than channel median. 2 = notable, 3 = strong, 10 = viral.

## `minViews` (type: `integer`):

Ignore videos below this view count to filter noise.

## `videosPerChannel` (type: `integer`):

How many recent videos to use to calculate each channel's median baseline. More = more accurate, slower.

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

Maximum number of outlier videos to return across all channels.

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

Residential proxies are strongly recommended because YouTube blocks datacenter IPs.

## Actor input object example

```json
{
  "channelUrls": [
    "https://www.youtube.com/@Fireship",
    "https://www.youtube.com/@veritasium",
    "https://www.youtube.com/@MarkRober",
    "https://www.youtube.com/@mkbhd",
    "https://www.youtube.com/@Mrwhosetheboss",
    "https://www.youtube.com/@LinusTechTips",
    "https://www.youtube.com/@lexfridman",
    "https://www.youtube.com/@kurzgesagt"
  ],
  "mode": "scan",
  "minOutlierScore": 2,
  "minViews": 5000,
  "videosPerChannel": 30,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `outliersDataset` (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 = {
    "channelUrls": [
        "https://www.youtube.com/@Fireship",
        "https://www.youtube.com/@veritasium",
        "https://www.youtube.com/@MarkRober",
        "https://www.youtube.com/@mkbhd",
        "https://www.youtube.com/@Mrwhosetheboss",
        "https://www.youtube.com/@LinusTechTips",
        "https://www.youtube.com/@lexfridman",
        "https://www.youtube.com/@kurzgesagt"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("conscientious_gelato/youtube-competitor-outlier-monitor").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 = { "channelUrls": [
        "https://www.youtube.com/@Fireship",
        "https://www.youtube.com/@veritasium",
        "https://www.youtube.com/@MarkRober",
        "https://www.youtube.com/@mkbhd",
        "https://www.youtube.com/@Mrwhosetheboss",
        "https://www.youtube.com/@LinusTechTips",
        "https://www.youtube.com/@lexfridman",
        "https://www.youtube.com/@kurzgesagt",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("conscientious_gelato/youtube-competitor-outlier-monitor").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 '{
  "channelUrls": [
    "https://www.youtube.com/@Fireship",
    "https://www.youtube.com/@veritasium",
    "https://www.youtube.com/@MarkRober",
    "https://www.youtube.com/@mkbhd",
    "https://www.youtube.com/@Mrwhosetheboss",
    "https://www.youtube.com/@LinusTechTips",
    "https://www.youtube.com/@lexfridman",
    "https://www.youtube.com/@kurzgesagt"
  ]
}' |
apify call conscientious_gelato/youtube-competitor-outlier-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,conscientious_gelato/youtube-competitor-outlier-monitor"
        }
    }
}
```

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/M8UAlSbbTt253EEzq/builds/y6TTOrSk6rJewV0Uf/openapi.json
