# YouTube Outlier Finder – Viral Videos vs Channel Median (`awsystems/youtube-outlier-finder`) Actor

YouTube outlier finder and viral video finder: spot videos that beat their channel's usual views with an outlier score (views ÷ channel median), velocity, AI thumbnail analysis and AI insights on what the outliers share, for channels or keyword searches. Tracks new outliers between runs.

- **URL**: https://apify.com/awsystems/youtube-outlier-finder.md
- **Developed by:** [Manuel Rodriguez](https://apify.com/awsystems) (community)
- **Categories:** Social media, AI, Videos
- **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 video scoreds

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 Outlier Finder – Viral Videos vs Channel Median

Find the YouTube videos that beat their own channel's usual views. Paste channels or search a keyword, and every video comes back with its **outlier score** (views ÷ the channel's median), its **velocity** (views per day ÷ the channel's usual views per day), its tier (viral, strong outlier, outlier…) and, optionally, an **AI reading of its thumbnail** (faces, emotion, exact text, style, colors, click hook). For each channel and search, AI explains **what the outliers have in common** and suggests five videos to replicate.

Built for YouTubers, faceless channel builders, content strategists and agencies doing competitor research, and for developers who need YouTube video data with scores.

### Why outliers

A video with 50,000 views means nothing on its own: for a channel that usually gets 5,000 it is a hit, for one that gets 500,000 it is a flop. The outlier score compares each video with its own channel, so you see what really worked, even on small channels. That is how you find topics, titles and thumbnails worth copying in a niche.

### What you get

#### For every video (`type: "video"`)

| Field | What it is |
|---|---|
| `outlierScore`, `tier`, `isOutlier` | Views ÷ the channel's median views (long videos and Shorts compared separately), its tier and whether it passes your threshold |
| `velocityScore`, `viewsPerDay`, `ageDays` | Views per day compared with the channel's usual views per day: spots videos taking off right now |
| `views`, `channelMedianViews`, `durationSeconds`, `isShort`, `publishedAt` | The numbers behind the score |
| `title`, `url`, `thumbnailUrl`, `channelName`, `channelUrl`, `channelId`, `subscribers` | The video and its channel (original titles, as the creator wrote them) |
| `thumbnail` | **Optional AI:** number of faces, emotion, exact text on the thumbnail, word count, main subject, style (photo, screenshot, text only…), dominant colors, brightness, arrows or circles, and what makes people click |
| `viewsSinceLastRun`, `isNewSinceLastRun` | Changes since your previous run of the same channel: schedule it to watch competitors |
| `source`, `query`, `searchRank` | Whether it came from a channel or a keyword search |

#### For every channel (`type: "channel"`)

Subscribers, median views (long videos and Shorts), median views per day, views per subscriber, uploads per week, average length, number and share of outliers, the top 5 outliers, the **new outliers since the last run** and the **AI insights**: what the outliers share, title patterns, topics, formats, thumbnail patterns, what underperforms, the best length and five ideas to replicate (each based on a real outlier).

#### For every search (`type: "search"`)

How many videos were found and how many are outliers against their own channels, plus the same AI insights for the niche.

#### HTML board

The run's key-value store has a `REPORT` page: each channel and search with its numbers, insights and its videos as a thumbnail grid, best outliers first.

### How to use it

1. Paste channels in **Channels** (`https://www.youtube.com/@name` or `@name`), and/or keywords in **Keyword searches**.
2. Choose how many **latest videos per channel** to read (default 50) and the **outlier threshold** (default 3× the median).
3. Choose the **AI thumbnail analysis** (outliers only, all or none) and whether you want **AI insights**.
4. Run it. A channel takes 5 to 20 seconds; a search with 20 results about a minute.

To watch competitors, save the input as a task and schedule it daily or weekly: each run tells you which videos took off since the previous one.

#### Example (from a real run)

```json
{
  "type": "video",
  "source": "search",
  "query": "faceless youtube automation",
  "title": "I tried Faceless YouTube Automation for 200 days",
  "channelName": "Darragh Lucey",
  "views": 910867,
  "channelMedianViews": 4350,
  "outlierScore": 209.4,
  "tier": "viral",
  "thumbnail": { "faces": 1, "emotion": "serious", "text": "TIME FOR TRUTH", "style": "photo" }
}
```

```json
{
  "type": "video",
  "source": "channel",
  "title": "Se confirma lo peor de la Burbuja de la IA",
  "channelName": "midudev",
  "views": 619000,
  "channelMedianViews": 141000,
  "outlierScore": 4.4,
  "velocityScore": 3.9,
  "ageDays": 21,
  "tier": "outlier"
}
```

### Pricing

| Your Apify plan | Per 1,000 videos scored | Per thumbnail read by AI | Per AI insights (channel or search) |
|---|---|---|---|
| Free | $2 | $0.004 | $0.03 |
| Starter (Bronze) | $1.50 | $0.003 | $0.02 |
| Scale (Silver) | $1.30 | $0.0027 | $0.018 |
| Business (Gold) and above | $1.00 | $0.0025 | $0.015 |

Example on Starter: one channel, 50 videos, thumbnails of its 5 outliers and insights = $0.075 + $0.015 + $0.02 = **$0.11**. With **Only return outliers** on, you pay only for the outliers.

Channels or searches that cannot be read are not charged. The run stops at your spending limit and never goes over it. Free Apify plans read up to 2 channels, 1 search, 30 videos per channel and 10 thumbnails per run.

### Good to know

- A channel needs at least 5 videos of a kind (long or Shorts) to get scores.
- Dates are approximate, as YouTube shows them ("3 weeks ago"), so `ageDays`, `viewsPerDay` and `uploadsPerWeek` are estimates. Shorts have no date, so they get an outlier score but no velocity.
- Searches score each result against its channel's latest 30 videos.
- Found a video worth studying? Our **YouTube Comments Analyzer** tells you what its viewers loved, asked and requested.

### Questions or ideas

Open an issue in the **Issues** tab: we answer quickly and add what people ask for.

# Actor input Schema

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

Channels to scan, one per line: https://www.youtube.com/@name, @name or https://www.youtube.com/channel/UC…

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

Find outliers in a niche: each search's results are scored against their own channel's usual views (the channel's latest 30 videos).

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

How many of each channel's latest videos to read and score (10 to 500). The median is computed over these.

## `searchResults` (type: `integer`):

Videos taken from each keyword search (5 to 100).

## `includeShorts` (type: `boolean`):

Also read each channel's latest Shorts. Shorts are compared only with the channel's other Shorts.

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

A video is an outlier when its views are at least this many times the channel's median (1.5 to 100).

## `onlyOutliers` (type: `boolean`):

Return (and pay for) only the videos above the threshold. Off: every video is returned with its score.

## `maxAgeDays` (type: `integer`):

Return only videos published in the last N days (0 = any age). The median still uses all the videos read. Dates are approximate (as YouTube shows them: "3 weeks ago").

## `analyzeThumbnails` (type: `string`):

Describe thumbnails with AI: faces, emotion, exact text, style, colors and the click hook. Charged per thumbnail.

## `aiInsights` (type: `boolean`):

For each channel and search, an AI summary of what the outliers share (titles, topics, formats, thumbnails, length) and 5 video ideas to replicate. Charged per channel or search.

## `outputLanguage` (type: `string`):

Language of the insights and thumbnail descriptions. Titles and thumbnail text stay as written.

## Actor input object example

```json
{
  "channelUrls": [
    "https://www.youtube.com/@mkbhd"
  ],
  "videosPerChannel": 50,
  "searchResults": 20,
  "includeShorts": false,
  "minOutlierScore": 3,
  "onlyOutliers": false,
  "maxAgeDays": 0,
  "analyzeThumbnails": "outliers",
  "aiInsights": true,
  "outputLanguage": "English"
}
```

# Actor output Schema

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

No description

## `report` (type: `string`):

No description

## `summary` (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/@mkbhd"
    ]
};

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

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

```

## MCP server setup

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

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/HbaZdwUc5U76nUrSU/builds/ak5vErBwKTc57LqJw/openapi.json
