# vidIQ YouTube Stats & Earnings Scraper (`goat255/vidiq-youtube-stats-earnings-scraper`) Actor

Scrape public vidIQ YouTube stats without a login: channel subscribers, views and estimated earnings, world ranks, growth, video stats, top 500 rankings by category and country, channel comparisons, trending topics, keywords and TikTok sounds.

- **URL**: https://apify.com/goat255/vidiq-youtube-stats-earnings-scraper.md
- **Developed by:** [Goutam Soni](https://apify.com/goat255) (community)
- **Categories:** Social media, SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 5 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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

## vidIQ YouTube Stats & Earnings Scraper

Get public vidIQ YouTube statistics in bulk, with no login and no API key. Look up any channel's subscribers, total views and **estimated monthly earnings**, its world, category and country rank, 28-day growth, daily history and top videos. Pull the **top 500 most subscribed channels** worldwide or the top 100 for every category and country, compare channels side by side, check single video stats, and read what is trending right now: topics, keywords and TikTok sounds.

Built for large jobs: thousands of channels per run on rotating residential proxies, results pushed as they arrive, structured JSON, CSV or Excel out.

> Not affiliated with, endorsed by or sponsored by vidIQ. vidIQ is a trademark of its owner. This actor reads publicly visible pages only.

### What it does

- **Channel stats and earnings**: subscribers, total views, video count, estimated monthly earnings (the sum of the last 30 daily estimates when the summary figure is not shown), world rank, category and category rank, country, join date, 28-day subscriber and view gains, channel description.
- **Daily history**: the last 30 days of views, subscriber changes and estimated daily earnings.
- **Long-form vs Shorts**: uploads and views split by format over 7 days, 28 days, 3 months, 1 year and year to date.
- **Top and latest videos**: views, views per hour, outlier and breakout scores, duration and thumbnails, plus likes and comments on the latest videos (top videos carry no like or comment counts; comments read 0 where a channel turns them off).
- **Similar channels**: the closest matches and the fastest-growing channels in the same niche, with their 30-day growth.
- **Channel search**: find channels by name and get their ID, @handle and subscriber count, or return full stats for every match.
- **Comparisons**: two channels side by side (subscribers, views, videos, ranks, grade, country, category).
- **Single video stats**: views, views per hour, likes, comments, engagement rate and the full view history.
- **Rankings**: top 50, 100 or 500 worldwide, plus the top 100 for each of 15 categories and every country.
- **Trends**: trending search topics (today, this week, this month), trending keywords with view history, and trending TikTok sounds (popular and rising).

Any combination works in a single run.

### Use cases

- Influencer and creator research, outreach lists and lead generation.
- Competitor and niche analysis for agencies and brands.
- Tracking subscriber and view growth across a watchlist, on a schedule.
- Estimating what a channel earns before a sponsorship or acquisition conversation.
- Finding topics, keywords and sounds that are climbing before they peak.
- Building leaderboards and datasets of the biggest channels by country or category.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `channels` | list of text | `["@nasa"]` | An @handle, a channel link, a channel ID or a channel name. Duplicates are delivered once. |
| `includeProfile` | yes/no | yes | Adds description, country and start date. |
| `includeLatestVideos` | yes/no | yes | Adds the latest long-form videos and Shorts. |
| `includeSimilarChannels` | yes/no | no | Adds closest-match and fastest-growing channels. |
| `includeExtendedData` | yes/no | yes | Adds 30-day daily earnings, the five long-form vs Shorts windows and per-video likes, comments and thumbnails. For single videos it adds the full view history. |
| `searchQueries` | list of text | none | Channel names to search. |
| `maxSearchResults` | number | 10 | Matches returned per search (1 to 50). |
| `expandSearchResults` | yes/no | no | Return full channel stats for each match. |
| `compareChannels` | list of text | none | Pairs written as `@a vs @b`. |
| `videos` | list of text | none | `@handle/VIDEO_ID` or the channel's stats page link for the video. |
| `rankings` | list of text | none | `top50`, `top100`, `top500`, `category:gaming`, `country:in`, `all-categories`, `all-countries`. |
| `trending` | list of text | none | `topics-day`, `topics-week`, `topics-month`, `keywords`, `tiktok-popular`, `tiktok-rising`, or `all`. |
| `maxConcurrency` | number | 20 | Parallel requests (1 to 200). Raise it for large jobs. |
| `proxyConfiguration` | proxy | residential | Rotating residential proxies are the default. |

Categories: autos, business, education, entertainment, food, gaming, health, lifestyle, music, news, pets, religion, sports, tech, travel. Countries use two-letter codes such as `us`, `in`, `gb`, `br`.

#### Example input

```json
{
  "channels": ["@nasa", "@natgeo"],
  "compareChannels": ["@nasa vs @natgeo"],
  "rankings": ["top100", "category:gaming", "country:in"],
  "trending": ["topics-week", "keywords", "tiktok-popular"],
  "includeSimilarChannels": true
}
```

### Output

Every row has a `recordType` and a `scrapedAt` time. A value that is not published is `null`, never missing, so your parsing stays stable.

| `recordType` | One row is | Key fields |
|---|---|---|
| `channel` | one channel | `subscribers`, `totalViews`, `estimatedMonthlyEarningsUsd`, `worldwideRank`, `category`, `subscribersGained28d`, `dailyHistory`, `topVideos` |
| `search_result` | one matching channel | `channelId`, `handle`, `name`, `subscribers` |
| `comparison` | one channel pair | `channelA`, `channelB`, `subscriberDifference` |
| `video` | one video | `views`, `viewsPerHour`, `likes`, `comments`, `engagementRatePct`, `history` |
| `ranking` | one ranked channel | `list`, `position`, `rank`, `subscribers`, `totalViews` |
| `trending_topic` | one trending topic | `period`, `searchGrowthPct`, `estimatedMonthlySearches`, `opportunity` |
| `trending_keyword` | one trending keyword | `averageViewsPerHour`, `searchVolumeChange`, `history` |
| `tiktok_sound` | one TikTok sound | `list`, `title`, `author`, `latestViewsPerHour`, `viewsPerHourChangePct` |

A channel that cannot be found, or an input that cannot be read, returns a row with `ok: false` and an `error` reason (`not_found`, `invalid_input` and similar). Those rows are never charged.

#### Output sample: channel (trimmed)

```json
{
  "recordType": "channel",
  "channelId": "UCLA_DiR1FfKNvjuUpBHmylQ",
  "handle": "@nasa",
  "name": "NASA",
  "subscribers": 15100000,
  "totalViews": 1131971380,
  "videoCount": 6193,
  "estimatedMonthlyEarningsUsd": 27368,
  "worldwideRank": 1401,
  "category": "Education",
  "categoryRank": 36,
  "joinedDate": "2008-06-03",
  "subscribersGained28d": 0,
  "viewsGained28d": 8618476,
  "longVsShorts28d": {
    "longForm": { "uploads": 18, "views": 4531472 },
    "shorts": { "uploads": 1, "views": 50103 }
  },
  "dailyHistory": [
    { "date": "2026-09-26", "totalViews": 1123352904, "viewsChange": 77837, "subscribers": 15100000, "subscribersChange": 0, "estimatedEarningsUsd": 244.96 }
  ],
  "topVideos": [
    { "videoId": "d6wFRZoz8UE", "title": "Artemis II Astronauts Launch Day Demo", "format": "short", "views": 5321809, "viewsPerHour": 128 }
  ],
  "scrapedAt": "2026-10-26T10:54:49.560Z"
}
```

#### Output sample: ranking row

```json
{
  "recordType": "ranking",
  "listType": "worldwide",
  "list": "top-50",
  "listUpdatedDate": "2026-10-25",
  "position": 1,
  "rank": 1,
  "name": "MrBeast",
  "handle": "@mrbeast",
  "subscribers": 523000000,
  "totalViews": 144353642443,
  "videoCount": 1009
}
```

#### Output sample: trending topic

```json
{
  "recordType": "trending_topic",
  "period": "week",
  "rank": 1,
  "keyword": "hush valorant",
  "searchGrowthPct": 14828,
  "estimatedMonthlySearches": 626768,
  "competition": 16,
  "opportunity": 85
}
```

### Notes

- **Estimated earnings** are modelled estimates of ad revenue, not income reported by the creator. Sponsorships, memberships and merchandise are not included. Some channels (many music channels, for example) have no estimate, and the field is `null`.
- **Subscriber counts** are the rounded figures YouTube shows publicly.
- **Freshness**: the underlying figures refresh once a day. Each row carries the date the data was recorded.
- **What is public**: the actor returns what is visible without an account. Some lists (a channel's full video catalog, further similar channels) are longer for signed-in users and are not included.
- **Speed**: 100 channels with full details typically finish in well under a minute. Raise `maxConcurrency` for bigger jobs; results are saved as they arrive, so a long run never loses work.
- **Cost control**: you are charged per delivered result only. Error rows are free.

### FAQ

**Do I need a vidIQ account or API key?**
No. The actor reads public pages only.

**How many channels can I process in one run?**
Thousands. Put them in `channels` and raise `maxConcurrency`.

**Why use proxies?**
Rotating residential proxies spread requests over many addresses, which keeps large runs reliable. They are on by default.

**Can I look a channel up by its name?**
Yes. Put the name in `channels`, or use `searchQueries` to see every match first.

**Can I schedule it to track growth?**
Yes. Schedule the actor daily on a list of channels and compare `subscribers`, `totalViews` and `dailyHistory` over time.

**Why is a field `null`?**
The value is not published for that channel or video. Fields are always present so the row shape never changes.

### Privacy

To improve our actors we collect anonymized usage telemetry (run stats and input patterns). No personal account data is collected.

**Found this useful?** [Leave a quick review](https://apify.com/goat255/vidiq-youtube-stats-earnings-scraper/reviews). It takes a few seconds and it genuinely helps other people find the actor.

# Actor input Schema

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

YouTube channels to get full stats and estimated earnings for. Accepts an @handle, a channel link, a channel ID or a channel name. Example: @nasa, https://www.youtube.com/@natgeo, UCLA_DiR1FfKNvjuUpBHmylQ, National Geographic.

## `includeProfile` (type: `boolean`):

Adds the channel description, country and start date to each channel row.

## `includeLatestVideos` (type: `boolean`):

Adds the channel's latest long-form videos and Shorts, with views and duration.

## `includeSimilarChannels` (type: `boolean`):

Adds the closest-match and fastest-growing channels in the same niche, with their 30-day growth.

## `includeExtendedData` (type: `boolean`):

Adds 30 days of daily views and earnings, the long-form vs Shorts split over 7 days to a year, and per-video likes, comments and thumbnails. For single videos it adds the full view history.

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

Channel names to search. Returns the best matching channels with their ID, @handle and subscriber count. Example: nasa, space documentaries.

## `maxSearchResults` (type: `integer`):

How many matching channels to return for each name searched.

## `expandSearchResults` (type: `boolean`):

When on, each match is returned as a full channel stats row instead of a short search result.

## `compareChannels` (type: `array`):

Pairs of channels to compare side by side, written as two handles separated by vs. Returns subscribers, views, videos, ranks, grade, country and category for both. Example: @nasa vs @natgeo.

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

Videos to get stats for, written as the channel handle and the video ID, or as the channel's stats page link for the video. Returns views, views per hour, likes, comments, engagement and view history. Example: @nasa/pAKqJxuxDgk.

## `rankings` (type: `array`):

Most subscribed channel lists to return. Use top50, top100 or top500 for worldwide, category:gaming (or just gaming) for a category, country:in (or just in) for a country, or all-categories / all-countries for every list. Categories: autos, business, education, entertainment, food, gaming, health, lifestyle, music, news, pets, religion, sports, tech, travel.

## `trending` (type: `array`):

Trend lists to return. Use topics-day, topics-week or topics-month for trending search topics, keywords for trending keywords, tiktok-popular or tiktok-rising for trending TikTok sounds, or all for everything.

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

How many requests run at the same time. Raise it to finish large jobs faster.

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

Proxy used for requests. Rotating residential proxies are the default and are recommended for large runs.

## Actor input object example

```json
{
  "channels": [
    "@nasa"
  ],
  "includeProfile": true,
  "includeLatestVideos": true,
  "includeSimilarChannels": false,
  "includeExtendedData": true,
  "searchQueries": [],
  "maxSearchResults": 10,
  "expandSearchResults": false,
  "compareChannels": [],
  "videos": [],
  "rankings": [],
  "trending": [],
  "maxConcurrency": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `items` (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 = {
    "channels": [
        "@nasa"
    ],
    "searchQueries": [],
    "compareChannels": [],
    "videos": [],
    "rankings": [],
    "trending": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("goat255/vidiq-youtube-stats-earnings-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": ["@nasa"],
    "searchQueries": [],
    "compareChannels": [],
    "videos": [],
    "rankings": [],
    "trending": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("goat255/vidiq-youtube-stats-earnings-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": [
    "@nasa"
  ],
  "searchQueries": [],
  "compareChannels": [],
  "videos": [],
  "rankings": [],
  "trending": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call goat255/vidiq-youtube-stats-earnings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,goat255/vidiq-youtube-stats-earnings-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/gJEbtMyyQABKTLC7D/builds/MydB2E1mlmOiOiptz/openapi.json
