# Viewstats YouTube Channel Analytics Scraper (`maximedupre/viewstats`) Actor

Get Viewstats analytics for YouTube channels from handles, channel links, or keywords. Each row has subscribers, views, rankings, growth, revenue estimates, and more. Add long-form videos and Shorts when you need them.

- **URL**: https://apify.com/maximedupre/viewstats.md
- **Developed by:** [Maxime Dupré](https://apify.com/maximedupre) (community)
- **Categories:** Social media, Videos, For creators
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.45 / 1,000 channel analytics

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

### 📊 Get Viewstats YouTube channel analytics in one run

Viewstats YouTube Channel Analytics Scraper is for creators, agencies, brand teams, and researchers who want [Viewstats](https://www.viewstats.com) data for many YouTube channels without opening each page. Give it channel handles, channel links, or keywords. It returns one row per channel with subscribers, views, rankings, growth, revenue estimates, averages, forecasts, and similar channels. You can also add long-form videos and Shorts.

Use it to:

- Compare subscriber and view counts across a list of rival channels.
- Check each channel's global, country, and category rank before you pitch a sponsor.
- Read Viewstats revenue estimate ranges to size up a creator before a deal.
- Find channels in a niche from a keyword, then sort them by growth.
- Track a channel list on a schedule and keep only the channels whose data changed.

#### 📈 What you get for each channel

- **Profile and totals:** name, handle, verified status, country, avatar and banner links, subscribers, views, video count, and average views per video over 90 days.
- **Rankings:** global subscriber and view rank, plus country and category subscriber rank.
- **Growth:** subscriber, view, and upload change over 7, 28, 90, and 365 days and all time, with the revenue estimate range Viewstats states.
- **Long-form versus Shorts:** uploads and views split by period.
- **Averages and forecasts:** daily, weekly, monthly, and yearly averages, upload frequency, subscriber and view forecasts, and projected milestones.
- **Context:** public description, creation date, similar channels, featured video, and a daily history of the last 28 days.
- **Videos (optional):** long-form videos and Shorts with counts, average views, and the typical view range by hours after upload.

#### ▶️ How to run it

1. Open the Actor and choose **Channel handles or URLs** or **Keywords** in **Find channels by**.
2. Add your handles, links, or keywords.
3. Turn on long-form videos or Shorts if you want them, and set how many videos you need.
4. Click **Start**, then download the dataset as JSON, CSV, Excel, or HTML, or read it with the Apify API.

#### ⚙️ Input

**Input fields**

| Field | Type | What it does |
| --- | --- | --- |
| `findBy` | string | How to find channels. Use `channels` for known handles or links, or `keywords` to search Viewstats. The UI prefill and the default are both `channels`. |
| `channels` | array of strings | One channel per line. Accepted forms: `@MrBeast`, `MrBeast`, a `youtube.com/@handle` link, a Viewstats link with a handle, or a `youtube.com/channel/UC...` link. `/c/` and `/user/` links and bare channel IDs are not accepted and are skipped with a warning. Used only when `findBy` is `channels`. The UI prefill is `@MrBeast` and `@YouTube`. |
| `keywords` | array of strings | One keyword or channel name per line. Used only when `findBy` is `keywords`. Viewstats returns up to 30 channels per keyword. |
| `maxChannelsPerKeyword` | integer | Most channels to get for each keyword. Empty or `0` gets all channels found, up to 30 per keyword. No default is set. |
| `maxItems` | integer | Most channel rows to save in the run. Empty or `0` means no limit. The UI prefill is `10`. No schema default is set. |
| `includeLongVideos` | boolean | Add each channel's long-form videos to its row. Default `false`. |
| `maxLongVideosPerChannel` | integer | Most long-form videos per channel. Default `10`. `0` gets all available videos. Used only when `includeLongVideos` is on. |
| `includeShorts` | boolean | Add each channel's Shorts to its row. Default `false`. |
| `maxShortsPerChannel` | integer | Most Shorts per channel. Default `10`. `0` gets all available Shorts. Used only when `includeShorts` is on. |
| `onlyChanged` | boolean | On repeated runs of the same channels, return only channels that are new or whose Viewstats data changed since the last run. Default `false`. |

A channel that appears twice in your list, or is found by two keywords, is saved once. A handle that Viewstats does not know gives no row and a warning in the log.

**Example input**

```json
{
  "maxItems": 10,
  "findBy": "channels",
  "channels": [
    "@MrBeast",
    "@YouTube"
  ],
  "includeLongVideos": false,
  "maxLongVideosPerChannel": 10,
  "includeShorts": false,
  "maxShortsPerChannel": 10,
  "onlyChanged": false
}
```

#### 🧾 Output

**Output fields**

Each dataset row is one channel. Nested fields use dotted paths.

| Field | Type | What it does |
| --- | --- | --- |
| `handle` | string | YouTube channel handle, such as `@MrBeast`. |
| `name` | string | Channel display name. |
| `keyword` | string | The keyword that found this channel. Only present when you find channels by keyword. |
| `isVerified` | boolean | Whether the channel is verified. |
| `country` | string | Channel country. |
| `avatarUrl` | string | Link to the channel avatar image. |
| `bannerUrl` | string | Link to the channel banner image. |
| `subscriberCount` | number | Number of subscribers. |
| `viewCount` | number | Total number of views. |
| `videoCount` | number | Total number of videos. |
| `viewsPerVideo90Days` | number | Average views per video over the last 90 days. |
| `rankings.globalSubscriberRank` | number | Global rank by subscribers. |
| `rankings.globalViewRank` | number | Global rank by views. |
| `rankings.countrySubscriberRank` | number | Rank by subscribers in the channel country. |
| `rankings.categorySubscriberRank` | number | Rank by subscribers in the channel category. |
| `rankings.category` | string | Channel category. |
| `growth` | array of objects | Growth for 7 days, 28 days, 90 days, 365 days, and all time. |
| `growth[].period` | string | One of `7days`, `28days`, `90days`, `365days`, `allTime`. |
| `growth[].subscriberChange` | number | Change in subscribers. |
| `growth[].viewChange` | number | Change in views. |
| `growth[].uploadChange` | number | Change in uploads. |
| `growth[].revenueEstimate.low` | number | Low end of the revenue estimate in US dollars. |
| `growth[].revenueEstimate.high` | number | High end of the revenue estimate in US dollars. |
| `longsVsShorts` | array of objects | Long-form versus Shorts split, one object per period. |
| `longsVsShorts[].period` | string | Time period, from weekly to all time. |
| `longsVsShorts[].longFormUploads` | number | Number of long-form uploads. |
| `longsVsShorts[].shortsUploads` | number | Number of Shorts uploads. |
| `longsVsShorts[].longFormViews` | number | Views of long-form videos. |
| `longsVsShorts[].shortsViews` | number | Views of Shorts. |
| `averages.daily`, `averages.weekly`, `averages.monthly`, `averages.yearly` | object | Average per period. Each has `views`, `subscribers`, and `revenueEstimate` with `low` and `high` in US dollars. |
| `averages.uploadFrequency` | number | Upload frequency that Viewstats states. No unit is given. |
| `projections.forecasts` | array of objects | Viewstats forecasts. Each has `metric` (`subscribers` or `views`), `horizon`, and `value`. |
| `projections.milestones` | array of objects | Projected milestones. Each has `metric`, `target`, and `projectedDate`. |
| `about.description` | string | Public channel description. |
| `about.createdAt` | string | Date the channel was created. |
| `similarChannels` | array of objects | Channels Viewstats lists as similar. Each has `handle`, `name`, `subscriberCount`, `viewCount`, and `videoCount`. |
| `featuredVideo` | object | The channel featured video, with `title`, `viewCount`, `likeCount`, `durationSeconds`, and `videoId`. |
| `longVideos` | array of objects | Long-form videos. Present only when `includeLongVideos` is on. |
| `shorts` | array of objects | Shorts. Present only when `includeShorts` is on. |
| `timeSeries` | array of objects | One point per day for the last 28 days. Each has `date`, `subscribers`, `views`, `videos`, `revenueEstimate` with `low` and `high`, and `uploads` with the `title` and `videoId` of uploads that day. |

Each object in `longVideos` and `shorts` has these fields:

| Field | Type | What it does |
| --- | --- | --- |
| `videoId` | string | YouTube video ID. |
| `title` | string | Video title. |
| `description` | string | Video description. |
| `uploadedAt` | string | Date the video was uploaded. |
| `durationSeconds` | number | Video length in seconds. |
| `thumbnailUrl` | string | Link to the video thumbnail. |
| `viewCount` | number | Number of views. |
| `likeCount` | number | Number of likes. |
| `commentCount` | number | Number of comments. |
| `averageDailyViews` | number | Average views per day. |
| `averageWeeklyViews` | number | Average views per week. |
| `averageDailyRevenueEstimate.low`, `.high` | number | Revenue estimate range per day in US dollars. |
| `averageWeeklyRevenueEstimate.low`, `.high` | number | Revenue estimate range per week in US dollars. |
| `expectedViewsByHoursAfterUpload` | array of objects | Typical view range by hours after upload, with `hoursAfterUpload`, `lowViews`, and `highViews`. |

**Example channel row**

This row is shortened. The value `"..."` marks where avatar and banner links, long text, and more list items were left out. Real rows hold the full lists.

```json
{
  "handle": "@mrbeast",
  "name": "MrBeast",
  "isVerified": true,
  "country": "US",
  "avatarUrl": "...",
  "bannerUrl": "...",
  "subscriberCount": 527000000,
  "viewCount": 147409962155,
  "videoCount": 1014,
  "viewsPerVideo90Days": 110584326,
  "rankings": {
    "globalSubscriberRank": 1,
    "globalViewRank": 12,
    "countrySubscriberRank": 1,
    "categorySubscriberRank": 1,
    "category": "Entertainment"
  },
  "growth": [
    {
      "period": "7days",
      "subscriberChange": 1000000,
      "viewChange": 746361679,
      "uploadChange": 2,
      "revenueEstimate": {
        "low": 769403,
        "high": 2139619
      }
    },
    "..."
  ],
  "longsVsShorts": [
    {
      "period": "7days",
      "longFormUploads": 1,
      "shortsUploads": 1,
      "longFormViews": 276695633,
      "shortsViews": 469666045
    },
    "..."
  ],
  "averages": {
    "daily": {
      "views": 123656992,
      "subscribers": 166666,
      "revenueEstimate": {
        "low": 59672,
        "high": 166752
      }
    },
    "weekly": {
      "views": 865598944,
      "subscribers": 1166662,
      "revenueEstimate": {
        "low": 417707,
        "high": 1167263
      }
    },
    "monthly": {
      "views": 3709709786,
      "subscribers": 5000000,
      "revenueEstimate": {
        "low": 1790174,
        "high": 5002554
      }
    },
    "yearly": {
      "views": 49700166476,
      "subscribers": 82000000,
      "revenueEstimate": {
        "low": 23983540,
        "high": 67020809
      }
    },
    "uploadFrequency": 6
  },
  "projections": {
    "forecasts": [
      {
        "metric": "subscribers",
        "horizon": "2027-01-19",
        "value": 543241082
      },
      "..."
    ],
    "milestones": [
      {
        "metric": "subscribers",
        "target": 528000000,
        "projectedDate": "2026-11-24"
      },
      "..."
    ]
  },
  "about": {
    "description": "SUBSCRIBE FOR A COOKIE! ...",
    "createdAt": "2012-02-20"
  },
  "similarChannels": [
    {
      "handle": "@mrbeastgaming",
      "name": "MrBeast Gaming",
      "subscriberCount": 62300000,
      "viewCount": 12512005242,
      "videoCount": 188
    },
    "..."
  ],
  "featuredVideo": {
    "title": "$250,000 Hunger Games In Real Life",
    "viewCount": 82750844,
    "likeCount": 1280089,
    "durationSeconds": 2038,
    "videoId": "q6fgVVmdpgY"
  },
  "timeSeries": [
    {
      "date": "2026-10-22",
      "subscribers": 523000000,
      "views": 144115601942,
      "videos": 1008,
      "revenueEstimate": {
        "low": 94925,
        "high": 264700
      }
    },
    "..."
  ]
}
```

#### 💳 Pricing

This Actor uses pay per event. You pay for what it saves. Prices fall as your Apify plan rises.

| Event | When it is charged | Free plan | Gold plan and above |
| --- | --- | --- | --- |
| Run start | Once per run | $0.005 | $0.005 |
| Channel analytics | Each channel saved | $0.0006 | $0.00045 |
| Long-form video | Each long-form video saved | $0.0025 | $0.0018 |
| Short | Each Short saved | $0.0025 | $0.0018 |

Videos are charged only when you turn them on. Plans between Free and Gold use prices in between. Set a maximum cost per run in Apify to cap spending.

#### 🔌 Integrations

Run it from the Apify API, a schedule, or a webhook. Send results to Google Sheets, Slack, Make, Zapier, n8n, or your own code through Apify integrations.

https://www.youtube.com/watch?v=bNACk1_S_6w\&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW\&index=4

#### ❓ FAQ

##### Which channel links work?

Handles such as `@MrBeast`, `youtube.com/@handle` links, Viewstats links that include a handle, and `youtube.com/channel/UC...` links. Links in the `/c/` or `/user/` form and bare channel IDs are skipped with a warning. Use the handle instead.

##### How many channels does a keyword return?

Up to 30 per keyword. Viewstats gives no further page. Set `maxChannelsPerKeyword` to get fewer.

##### What happens when a channel is not on Viewstats?

The Actor logs a warning, saves no row for it, and keeps going with the rest of your list.

##### Can I get video lists too?

Yes. Turn on `includeLongVideos`, `includeShorts`, or both. Set a limit per channel, or use `0` to get all available videos. Each video is charged as its own event.

##### How far back does the history go?

The `timeSeries` field holds one point per day for the last 28 days. The `growth` field covers 7, 28, 90, and 365 days and all time.

##### Are the revenue numbers exact?

No. They are the low and high estimate range that Viewstats states, in US dollars. Treat them as estimates.

##### How do I only get channels that changed?

Turn on `onlyChanged` and run the same channel list again. The Actor remembers each channel's data from earlier runs and returns only new or changed channels.

##### Can I limit how much a run saves?

Yes. Set `maxItems` to cap the number of channel rows. You can also set a maximum cost per run in Apify.

##### Do I need a Viewstats account?

No. The Actor needs no login and no cookies.

### 📝 Changelog

**v0.0** (19-11-2026)

- Initial release.

### 🆘 Support

For issues, questions, or feature requests, [file a ticket](https://console.apify.com/actors/maximedupre~viewstats/issues) and I'll fix or implement it in less than 24h 🫡

### 🔗 Related Actors

- [Social Blade Scraper](https://apify.com/maximedupre/socialblade): compare Viewstats numbers with Social Blade rankings and analytics for YouTube and other platforms.
- [Playboard YouTube Channel Ranking Scraper](https://apify.com/maximedupre/playboard): get ranked YouTube channel lists by country, category, and metric.
- [YouTube Channel Statistics Scraper](https://apify.com/maximedupre/youtube-channel-statistics-scraper): get public subscriber, view, and video counts straight from YouTube.
- [YouTube Channel Search Scraper](https://apify.com/maximedupre/youtube-channel-search-scraper): find channels from keywords, then send them here for analytics.
- [YouTube Similar Channels Finder](https://apify.com/maximedupre/youtube-similar-channels): find channels like one you already track.

**Made with ❤️ by Maxime Dupré**

# Actor input Schema

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

Stop after this many channel records. Leave empty or use 0 to get all available channels.

## `findBy` (type: `string`):

Pick channel handles or URLs to look up known channels. Pick keywords to search for channels by name or topic.

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

Add one YouTube channel per line. Use a handle such as `@MrBeast`, a `youtube.com/@handle` link, or a `youtube.com/channel/UC...` link. Links in the `/c/` or `/user/` form and bare channel IDs are not accepted. Used when you find channels by handles or URLs.

## `keywords` (type: `array`):

Add one keyword or channel name per line. Each one is searched on Viewstats, which returns up to 30 channels per keyword. Used when you find channels by keywords.

## `maxChannelsPerKeyword` (type: `integer`):

Get up to this many channels for each keyword. Leave empty or use 0 to get all channels found, up to 30 per keyword.

## `includeLongVideos` (type: `boolean`):

Add each channel's long-form videos to its record, with averages and typical view ranges. Applies to both ways of finding channels.

## `maxLongVideosPerChannel` (type: `integer`):

Get up to this many long-form videos for each channel, where available. Use 0 to get all available videos. Used only when long-form videos are included.

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

Add each channel's Shorts to its record, with averages and typical view ranges. Applies to both ways of finding channels.

## `maxShortsPerChannel` (type: `integer`):

Get up to this many Shorts for each channel, where available. Use 0 to get all available Shorts. Used only when Shorts are included.

## `onlyChanged` (type: `boolean`):

On repeated runs of the same channels, return only channels that are new or whose Viewstats data changed since the last run. Applies to both ways of finding channels.

## Actor input object example

```json
{
  "maxItems": 10,
  "findBy": "channels",
  "channels": [
    "@MrBeast",
    "@YouTube"
  ],
  "includeLongVideos": false,
  "maxLongVideosPerChannel": 10,
  "includeShorts": false,
  "maxShortsPerChannel": 10,
  "onlyChanged": false
}
```

# Actor output Schema

## `overview` (type: `string`):

One row per channel with stats, rankings, growth, and averages.

# 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 = {
    "maxItems": 10,
    "findBy": "channels",
    "channels": [
        "@MrBeast",
        "@YouTube"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("maximedupre/viewstats").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 = {
    "maxItems": 10,
    "findBy": "channels",
    "channels": [
        "@MrBeast",
        "@YouTube",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("maximedupre/viewstats").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 '{
  "maxItems": 10,
  "findBy": "channels",
  "channels": [
    "@MrBeast",
    "@YouTube"
  ]
}' |
apify call maximedupre/viewstats --silent --output-dataset

```

## MCP server setup

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

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/L5ZX05iPx3PwYIUle/builds/xqlUd6COuvfXAbunl/openapi.json
