# ViewStats Scraper — YouTube Channel Analytics & Revenue (`hipersoft/viewstats-scraper`) Actor

YouTube channel analytics from ViewStats: subscribers, views, global/country rankings, subscriber and view growth, estimated revenue, daily/weekly history, recent videos with outlier scores and similar channels. By handle, link or keyword. Export CSV/JSON.

- **URL**: https://apify.com/hipersoft/viewstats-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.001 / channel

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

## ViewStats Scraper: YouTube Channel Analytics, Growth and Revenue Estimates

**ViewStats Scraper** collects **YouTube channel analytics** from **ViewStats**, the YouTube analytics platform created by MrBeast's team. For any channel you get **subscribers, total views, video count, country, verification, global subscriber and view rankings, country and category rankings, average views per video**, the **growth over your chosen period** (subscribers gained, views gained, videos uploaded) with **estimated YouTube revenue (low, mid and high)**, a **daily, weekly or yearly history**, the **latest videos with views, likes, comments, duration and outlier score**, and **similar channels** with a similarity score. Look up channels by **handle, YouTube link or channel ID**, or **discover channels by keyword**. Export to **CSV, Excel or JSON**. Ideal for **influencer marketing, creator research, agencies, brand partnerships, competitor analysis and YouTube market research**.

### What does ViewStats Scraper do?

- 📊 **Channel stats**: subscribers, total views, videos, country, verified.
- 🏆 **Rankings**: global subscribers rank, global views rank, country rank, category rank.
- 📈 **Growth**: subscribers, views and uploads gained over 7, 14, 28, 90, 365 days, 3 years or all time.
- 💵 **Estimated revenue** for the period (low, mid, high).
- 🗓️ **History time series**: daily, weekly or yearly.
- 🎬 **Recent videos** with views, likes, comments, duration, Shorts flag and **outlier score**.
- 🤝 **Similar channels** with similarity score for competitor discovery.
- 🔎 **Keyword discovery**: find channels in a niche and analyse them in one run.

### What data can you scrape?

| Field | Description |
|---|---|
| Channel | ID, handle, name, YouTube link, country, verified, avatar, banner |
| Totals | Subscribers, total views, video count, average views per video (90 days) |
| Rankings | Global subscribers, global views, country, category |
| Growth | Subscribers, views and videos gained; estimated revenue (low/mid/high) |
| History | Date, subscribers, views, videos, deltas and revenue per day/week/year |
| Recent videos | Video ID, title, link, upload date, views, likes, comments, duration, Short, outlier score, thumbnail |
| Similar channels | ID, handle, name, subscribers, views, videos, similarity |

### Use cases for YouTube channel analytics

- **Influencer marketing**: vet creators by real growth, engagement and audience size before partnering.
- **Agencies and brands**: build shortlists of channels in a niche and compare them side by side.
- **Creators**: benchmark against competitors and find outlier videos that over-perform.
- **Investors and media analysts**: track channel growth and estimated revenue over time.
- **Market research**: map the biggest and fastest-growing channels in any category.

### How to get YouTube channel analytics

1. Click **Try for free** to open ViewStats Scraper in Apify Console.
2. Enter **YouTube channels** (handles or links) and/or **search keywords**.
3. Choose the **growth period** and **history granularity**.
4. Turn on **recent videos** and **similar channels** if you need them.
5. Click **Start** and download the results as **CSV, Excel or JSON**.

### Input

#### Example input

```json
{
  "channels": ["@mrbeast", "https://www.youtube.com/@mkbhd"],
  "searchQueries": ["personal finance"],
  "maxChannelsPerSearch": 10,
  "statsRange": "28",
  "groupBy": "daily",
  "includeTimeSeries": true,
  "includeVideos": true,
  "includeSimilar": true
}
```

| Field | Description |
|---|---|
| **YouTube channels** | Handles, YouTube links, ViewStats links or channel IDs. |
| **Search keywords** | Discover channels by niche keyword. |
| **Channels per keyword** | Up to 30 per keyword. |
| **Growth period** | 7, 14, 28, 90, 365 days, 3 years or all time. |
| **History granularity** | Daily, weekly or yearly. |
| **History time series / Recent videos / Similar channels** | Optional sections. |
| **Max channels** | Stop after this many channels (0 = no limit). |

### Output

#### Channel example

```json
{
  "channelId": "UCBJycsmduvYEL83R_U4JriQ",
  "handle": "@mkbhd",
  "name": "Marques Brownlee",
  "url": "https://www.youtube.com/@mkbhd",
  "country": "US",
  "subscribers": 21400000,
  "totalViews": 4950000000,
  "videoCount": 1800,
  "globalSubscribersRank": 302,
  "growth": {
    "range": "28 days",
    "subscribersGained": 200000,
    "viewsGained": 173020762,
    "videosUploaded": 9,
    "estimatedRevenueUsd": 589357,
    "estimatedRevenueLowUsd": 312176,
    "estimatedRevenueHighUsd": 866553
  },
  "timeSeries": [{ "date": "2026-09-10", "subscribers": 21300000, "viewsDelta": 6100000, "estimatedRevenueUsd": 21000 }],
  "recentVideos": [{ "videoId": "…", "title": "…", "views": 3100000, "likes": 98000, "comments": 7400, "outlierScore": 1.42 }],
  "similarChannels": [{ "handle": "@linustechtips", "name": "Linus Tech Tips", "similarity": 88.4 }]
}
```

#### Output schema

| Field | Type | Description |
|---|---|---|
| `channelId`, `handle`, `name`, `url`, `country`, `verified`, `avatarUrl`, `bannerUrl` | mixed | Channel. |
| `subscribers`, `totalViews`, `videoCount`, `avgViewsPerVideo90d`, `channelAverageViews` | number | Totals. |
| `globalSubscribersRank`, `globalViewsRank`, `countrySubscribersRank`, `categorySubscribersRank` | number | Rankings. |
| `growth` | object | Period growth and estimated revenue. |
| `timeSeries` | array | History. |
| `recentVideos` | array | Latest videos. |
| `similarChannels` | array | Similar channels. |
| `source`, `scrapedAt` | string | Source info. |

### How much does it cost?

ViewStats Scraper uses **pay-per-channel** pricing: a small fixed price per channel (including its history, videos and similar channels), with automatic discounts on higher Apify plans. See the **Pricing** tab for the exact price.

### More social media data

- [YouTube Scraper](https://apify.com/hipersoft/youtube-scraper): video metadata, transcripts, comments and channel profiles.
- [TikTok Downloader](https://apify.com/hipersoft/tiktok-downloader): TikTok videos and their stats.
- [Instagram Downloader](https://apify.com/hipersoft/instagram-downloader): Instagram reels, posts and media.

### FAQ

**How accurate is the revenue estimate?**
Revenue is an estimate based on views and typical YouTube ad rates, given as a low, mid and high range. Use it for comparison, not accounting.

**What is the outlier score?**
How a video performs compared to the channel's average views: 2.0 means twice the usual views.

**Why are subscriber counts rounded?**
YouTube publicly shows rounded subscriber counts, so growth in subscribers moves in steps.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate ViewStats Scraper with other apps?**
ViewStats Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

**Is it legal to scrape YouTube channel analytics?**
The scraper only collects publicly available channel statistics. You are responsible for using the data in line with the source's terms and applicable law.

### Related Actors

- [YouTube Scraper](https://apify.com/hipersoft/youtube-scraper)
- [TikTok Downloader](https://apify.com/hipersoft/tiktok-downloader)

### Notes

Original clean-room implementation. Returns only public data. Not affiliated with ViewStats, YouTube or MrBeast.

# Actor input Schema

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

Channel handles (@mrbeast), YouTube channel links (youtube.com/@mkbhd, youtube.com/channel/UC…), ViewStats links or channel IDs.

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

Optional: find channels by keyword (e.g. cooking, gaming, finance) and collect their analytics.

## `maxChannelsPerSearch` (type: `integer`):

How many channels to take from each keyword search (max 30).

## `statsRange` (type: `string`):

Period for growth totals, estimated revenue and history.

## `groupBy` (type: `string`):

Granularity of the history time series.

## `includeTimeSeries` (type: `boolean`):

Add the subscriber, view, upload and revenue history for the period.

## `includeVideos` (type: `boolean`):

Add the latest videos with views, likes, comments and outlier score.

## `includeSimilar` (type: `boolean`):

Add similar channels with similarity score (great for competitor research).

## `maxItems` (type: `integer`):

Stop after this many channels (0 = no limit).

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

Not needed in most cases.

## Actor input object example

```json
{
  "channels": [
    "@mrbeast",
    "https://www.youtube.com/@mkbhd"
  ],
  "maxChannelsPerSearch": 10,
  "statsRange": "28",
  "groupBy": "daily",
  "includeTimeSeries": true,
  "includeVideos": true,
  "includeSimilar": false,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The results as dataset items.

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

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

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

```

## MCP server setup

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