# YouTube Video Details & Outlier Score Scraper (`vanborn_labs/youtube-video-details-outlier-score`) Actor

YouTube video details scraper for views, likes, comments, subscribers, tags and chapters, plus outlier score, views per day and engagement rate. From video URLs, channels, playlists or search. No API key, no browser. $0.80 per 1,000 videos.

- **URL**: https://apify.com/vanborn_labs/youtube-video-details-outlier-score.md
- **Developed by:** [Van Born Labs](https://apify.com/vanborn_labs) (community)
- **Categories:** Videos, Social media, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 video results

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 Video Details & Outlier Score Scraper

A **YouTube video details scraper** for **views, likes, comments, subscribers, tags and chapters**, plus the creator metrics that show which videos are going viral: **outlier score**, **views per day**, **like rate** and **comment rate**. Paste video links, a **channel**, a **playlist** or a **search term**. No YouTube API key, no quota, no login, no browser. **$0.80 per 1,000 videos**.

### What it does

- **Video details**: title, description, exact view count, like count, comment count, publish date, duration, category, tags, chapters, caption languages, thumbnail, Shorts and live flags.
- **Channel data**: channel name, ID, URL and subscriber count for every video.
- **Outlier score** = views ÷ channel subscribers. A video with 500K views on a 5K-subscriber channel scores 100: something about that topic, title or thumbnail worked.
- **Views per day, like rate, comment rate**: compare videos of any age fairly.
- **Bulk input**: video URLs and IDs (watch, youtu.be, Shorts, live, embed), channel URLs or @handles (videos, /shorts, /streams tabs), playlists, and YouTube search terms.
- **Pay only for results**: failed or unavailable videos are never charged.

### Use cases

- **Viral research / outlier finder for creators**: search your niche, sort by `outlierScore`, study the winners' titles, thumbnails and length.
- **Competitor tracking**: pull the latest 50 videos of every competitor channel each week and compare views per day.
- **Reaction and clip channels**: find fresh videos blowing up right now (high `viewsPerDay`).
- **Influencer and sponsorship research**: real engagement (like and comment rate) instead of vanity subscriber counts.
- **SEO and keyword research**: harvest tags, categories and chapters of top-ranking videos.
- **Data science and dashboards**: clean JSON, CSV or Excel, via API, schedules, Make, Zapier or n8n.

### Input

```json
{
  "videos": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ", "https://youtu.be/jNQXAC9IVRw"],
  "channels": ["@MrBeast", "https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI"],
  "searchTerms": ["ufo documentary 2026"],
  "maxVideosPerSource": 50,
  "maxResults": 500
}
```

### Output example

```json
{
  "videoId": "9bZkp7q19f0",
  "url": "https://www.youtube.com/watch?v=9bZkp7q19f0",
  "title": "PSY - GANGNAM STYLE(강남스타일) M/V",
  "channelName": "officialpsy",
  "channelId": "UCrDkAvwZum-UTjHmzDI2iIw",
  "subscriberCount": 20600000,
  "viewCount": 6130557231,
  "likeCount": 32409476,
  "commentCount": 5400000,
  "publishDate": "2012-07-15T00:46:32-07:00",
  "durationSeconds": 252,
  "category": "Music",
  "tags": ["PSY", "Gangnam Style", "Music Video"],
  "chapters": [],
  "isLive": false,
  "isShort": false,
  "hasCaptions": true,
  "captionLanguages": ["ko"],
  "thumbnailUrl": "https://i.ytimg.com/vi/9bZkp7q19f0/maxresdefault.jpg",
  "viewsPerDay": 1170562.7,
  "likeRate": 0.00529,
  "commentRate": 0.000881,
  "outlierScore": 297.6,
  "scrapedAt": "2026-11-16T14:20:00+00:00"
}
```

### Pricing

**$0.80 per 1,000 videos** (pay per event) plus a tiny $0.00005 start fee per run. You are not billed for platform compute on this Actor. Failed or unavailable videos are not charged. Use **Max results in total** to cap any run. 10,000 videos ≈ $8.

### FAQ

**Do I need a YouTube API key?** No. The Actor reads public video and channel data. There is no official API quota.

**How is outlier score calculated?** `outlierScore = viewCount / subscriberCount`. Higher means the video reached far more people than the channel's subscriber base would suggest.

**Why is a field null?** Some channels hide subscriber counts, some videos disable comments, and members-only videos may omit fields. Counts are exact when YouTube exposes them; subscriber and comment counts may be YouTube's rounded public values (e.g. 4.56M → 4,560,000).

**Is it legal to scrape YouTube?** This Actor only collects publicly available data and no personal data beyond what channels publish themselves. Make sure your use complies with YouTube's terms and applicable law (e.g. GDPR) for your purpose.

**Can I run it on a schedule?** Yes. Use Apify schedules, or call the API from Make, Zapier or n8n.

### Related Van Born Labs actors

- [YouTube Comments Scraper](https://apify.com/vanborn_labs/youtube-comments-scraper-fast) — comments and replies, likes, pinned and hearted flags.
- [ATS Career Jobs Scraper](https://apify.com/vanborn_labs/ats-career-jobs-scraper) — Greenhouse, Lever, Ashby, Workable, SmartRecruiters and Recruitee.
- [Google News RSS Scraper](https://apify.com/vanborn_labs/google-news-rss-scraper) — headlines by keyword, topic or site.
- [Email & Domain Validator](https://apify.com/vanborn_labs/email-domain-validator) — MX, disposable, typo, SPF and DMARC checks.

# Actor input Schema

## `videos` (type: `array`):

Watch URLs, youtu.be links, Shorts, live or embed URLs, or bare 11-character video IDs. Playlist and channel URLs pasted here are expanded too.

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

Channel URLs or @handles (latest videos; add /shorts or /streams to the URL for those tabs) and playlist URLs.

## `searchTerms` (type: `array`):

YouTube search queries. Top video results are scraped — great for finding outliers in a niche.

## `maxVideosPerSource` (type: `integer`):

How many videos to take from each channel, playlist or search term.

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

Hard cap on the number of videos scraped (and charged) in this run.

## `maxConcurrency` (type: `integer`):

Parallel requests.

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

Apify Proxy (datacenter) is used by default.

## `residentialFallback` (type: `boolean`):

Retry blocked requests through residential proxy (no extra cost to you).

## Actor input object example

```json
{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw"
  ],
  "channels": [],
  "searchTerms": [],
  "maxVideosPerSource": 50,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true
}
```

# Actor output Schema

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

One dataset item per successfully scraped YouTube video: details, engagement and creator outlier metrics. Failed lookups are not included and are not charged.

## `runSummary` (type: `string`):

JSON counters for this run (successes, failures, residential proxy requests) stored in the default key-value store as RUN_SUMMARY.

# 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 = {
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw"
    ],
    "channels": [],
    "searchTerms": [],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("vanborn_labs/youtube-video-details-outlier-score").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 = {
    "videos": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://youtu.be/jNQXAC9IVRw",
    ],
    "channels": [],
    "searchTerms": [],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("vanborn_labs/youtube-video-details-outlier-score").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 '{
  "videos": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://youtu.be/jNQXAC9IVRw"
  ],
  "channels": [],
  "searchTerms": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call vanborn_labs/youtube-video-details-outlier-score --silent --output-dataset

```

## MCP server setup

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

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/yVvUPkcf55Jh6G2uj/builds/eUfFckTqFlaYmEd6X/openapi.json
