# SocialBlade Creator Stats & YouTube Top Rankings (`vexaloom-labs/socialblade-creator-stats-and-youtube-top-rankings`) Actor

Look up public SocialBlade stats for YouTube, TikTok, Instagram, Twitch, or Facebook creators, or pull a filtered YouTube top-creators ranking. Get followers, views, grade, ranks, and daily history.

- **URL**: https://apify.com/vexaloom-labs/socialblade-creator-stats-and-youtube-top-rankings.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** Social media, Videos, Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## SocialBlade Creator Stats, Search & YouTube Top Rankings

SocialBlade publishes public audience statistics and letter grades for creators on YouTube, TikTok, Instagram, Twitch, and Facebook. This actor reads those public pages and APIs without a login, cookie, or API key. It can look up specific creators, search for creators by keyword, or pull a YouTube top, worst, fastest-growing, or fastest-declining leaderboard.

### Three modes

| Mode | What it returns |
|---|---|
| `profiles` | Full public stats for creators you name by SocialBlade URL, platform URL, `{platform, username}` object, or bare username |
| `search` | Creator search results for one or more keywords on one platform |
| `youtube_rankings` | A YouTube leaderboard: top, worst, fastest growing, or fastest declining |

#### Profile lookups

Supported platforms and URL forms:

- YouTube: `/youtube/handle/<name>`, `/youtube/user/<name>`, `/youtube/channel/<UC...>`
- TikTok: `/tiktok/user/<name>`
- Instagram: `/instagram/user/<name>`
- Twitch: `/twitch/user/<name>`
- Facebook: `/facebook/user/<name>` (legacy `/facebook/page/<name>` also works)

Direct platform links (`youtube.com/@name`, `tiktok.com/@name`, `instagram.com/name`, `twitch.tv/name`, `facebook.com/name`) are accepted too.

Each profile record contains:

- `type`, `platform`, `input`, `url` — record type, platform, what you supplied, and the SocialBlade URL that was read
- `id`, `username`, `displayName`, `avatar`, `banner`
- `avatarOriginal` / `bannerOriginal` — the source CDN URL when it was signed or expiring; `avatar`/`banner` point to an Apify-hosted copy in that case
- `country`, `description`, `website`, `verified`, `disabled`, `madeForKids`, `statsHidden`
- `channelType`, `category`, `createdAt`
- `subscribers` (YouTube) or `followers` (TikTok, Instagram, Twitch, Facebook)
- `views`, `videos`, plus `likes`, `following`, `talkingAbout`, `mediaCount`, `engagementRate`, `averageLikes`, `averageComments` where the platform publishes them. Facebook profiles expose page `likes` and keep the legacy `followers` alias.
- `grade` — SocialBlade's letter grade
- `ranks` — every published rank (overall, subscriber/follower, views, country, category, engagement, and so on)
- `socials` — linked social accounts with `url`, `title`, `platform`, `username`, and `favicon`
- `identifiers` — SocialBlade's known handles/usernames for the creator
- `history` — up to 31 daily snapshots, with the metrics each platform reports
- `estimatedEarnings` — YouTube only: up to 14 daily `{date, low, high, currency}` ranges from SocialBlade's public earnings table
- `firstTracked` and `milestones` — when `includeMilestones` is on for YouTube
- `scrapedAt`

A field the source does not have for a given creator is omitted, never returned as `null` or an empty string.

#### Creator search

`searchQueries` is a list of keywords and `searchPlatform` picks the platform. Each record contains the fields SocialBlade publishes for that platform, including `id`, `displayName`, `username`, `avatar`, `verified`, the platform's main metric (`subscribers`, `followers`, or `likes`), plus `following`, `videos`, `mediaCount`, `engagementRate`, `talkingAbout` where available, a SocialBlade `url`, and `scrapedAt`. Search is useful for finding the exact username before running profile lookups. YouTube search results usually carry the channel ID rather than a handle.

#### YouTube rankings

Pick `rankType` (`top`, `worst`, `growth`, `decline`), the metric with `rankBy` (`subscribers`, `views`, `videos`), and the public list size with `rankCount` (10, 50, or 100). Top/worst lists also accept `rankCountryCode`, `rankCategorySlug`, and `rankMadeForKids`. Growth/decline lists use `rankPeriod` (yesterday through year-to-date).

Each ranking record contains `position`, `rankType`, `rankBy`, `rankCountry`, `rankCategory`, `rankPeriod` (growth/decline only), the creator's identity fields, `subscribers`, `views`, `videos`, growth deltas (`subscribersGained`, `viewsGained`, `videosGained`) where published, `madeForKids`, `url`, `youtubeUrl`, `identifiers`, and `scrapedAt`.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `profiles` | `profiles`, `search`, or `youtube_rankings` |
| `startUrls` | array | – | \[profiles] SocialBlade or direct platform profile URLs |
| `profiles` | array | – | \[profiles] Alternative to URLs: `{platform, username}` objects or bare usernames |
| `platform` | select | `youtube` | \[profiles] Platform for bare usernames |
| `includeHistory` | boolean | `true` | \[profiles] Include daily snapshots |
| `historyDays` | integer | `15` | \[profiles] History length, 1–31 days |
| `includeMilestones` | boolean | `false` | \[profiles] Fetch YouTube milestones (one extra request per YouTube profile) |
| `searchQueries` | array | – | \[search] Keywords to search |
| `searchPlatform` | select | `youtube` | \[search] Platform to search |
| `rankType` | select | `top` | \[rankings] `top`, `worst`, `growth`, or `decline` |
| `rankBy` | select | `subscribers` | \[rankings] `subscribers`, `views`, or `videos` |
| `rankCountryCode` | select | `global` | \[rankings] Country code for top/worst lists |
| `rankCategorySlug` | select | `all` | \[rankings] Category for top/worst lists |
| `rankMadeForKids` | select | `all` | \[rankings] `all`, `only`, or `hide` |
| `rankPeriod` | select | `3` | \[rankings] Growth/decline window: `1`, `3`, `7`, `14`, `30`, `60`, `90`, `180`, `365`, or `ytd` |
| `rankCount` | select | `100` | \[rankings] Public list size: 10, 50, or 100 |
| `maxItems` | integer | `50` | Maximum records returned across all modes |

#### Examples

Look up two creators and include 30 days of history:

```json
{
  "mode": "profiles",
  "startUrls": [
    "https://socialblade.com/youtube/handle/mrbeast",
    "https://socialblade.com/tiktok/user/khaby.lame"
  ],
  "includeHistory": true,
  "historyDays": 30,
  "includeMilestones": true,
  "maxItems": 2
}
```

Search TikTok for a keyword:

```json
{
  "mode": "search",
  "searchPlatform": "tiktok",
  "searchQueries": ["khaby", "cooking"],
  "maxItems": 10
}
```

Top 100 gaming channels in the United States:

```json
{
  "mode": "youtube_rankings",
  "rankType": "top",
  "rankBy": "subscribers",
  "rankCountryCode": "US",
  "rankCategorySlug": "games",
  "rankCount": "100",
  "maxItems": 100
}
```

Fastest-growing channels over 7 days, hiding made-for-kids channels:

```json
{
  "mode": "youtube_rankings",
  "rankType": "growth",
  "rankBy": "subscribers",
  "rankPeriod": "7",
  "rankMadeForKids": "hide",
  "maxItems": 50
}
```

### Limits and behaviour

- **Public ranking lists are capped at 100 rows.** SocialBlade exposes 250/500/1,000/5,000-row lists only to paid plans. To collect more than 100 rows, run several country or category filters and combine the datasets.
- **History is capped at 31 days** without a login. Instagram daily history is login-only, so Instagram profile records omit `history`.
- **Estimated earnings are a public range, not a payout.** SocialBlade shows a daily low-high USD estimate for YouTube; the actor returns those ranges as published (up to 14 days) and does not invent a single monthly figure.
- **Growth/decline lists are global.** SocialBlade's growth/decline endpoint does not accept country or category filters, so the actor filters the returned global list locally. A narrow filter can therefore return fewer than 100 rows.
- **Made-for-kids "hide" is filtered locally** because the public endpoint only supports "only made-for-kids".
- **Paid-only filters are not exposed.** SocialBlade's AI classification and language filters require a paid plan, so they are not part of this actor.
- **Expiring CDN images are mirrored.** TikTok, Instagram, and Facebook serve avatars/banners as signed links that expire. The actor copies those bytes into its Apify Key-Value Store and keeps the original URL in `avatarOriginal`/`bannerOriginal`; YouTube CDN images are emitted as-is. If an already-expired link can no longer be fetched, the image field is omitted instead of shipping a dead URL.
- **The actor chooses its network path automatically.** It tries a direct request first and only falls back to Apify Proxy if SocialBlade blocks the request. You do not need to configure a proxy.
- **No login, cookie, or API key is required.**

### Backward compatibility

Saved tasks that use the previous input names still work. The actor maps these legacy keys in code:

- `rankSort` (`desc`/`asc`) → `rankType` (`top`/`worst`)
- `rankLimit` (5–5,000) → `rankCount` (10/50/100); values above 100 are capped at the public 100-row limit
- `rankCountry` (lowercase codes such as `us`) → `rankCountryCode`
- `rankCategory` (`nonprofits`, `pets`, `science`) → `nonprofit`, `animals`, `tech`
- Facebook profile records keep the old `followers` field as an alias of page `likes`

Existing output fields keep their names; new fields are added beside them.

### FAQ

**Why is a field missing for one creator?**
SocialBlade does not publish every metric for every creator or platform. Missing values are omitted instead of being filled with nulls or guesses.

**Can I mix platforms in one profile run?**
Yes. Put SocialBlade URLs in `startUrls`, or use `profiles` objects with an explicit `platform`. Bare usernames use the `platform` input.

**Does this include SocialBlade's paid Pro/Gold data?**
No. It reads only the publicly visible profile, search, and ranking data.

**Is this affiliated with SocialBlade?**
No. This is an independent actor that reads SocialBlade's publicly visible pages; it is not operated by or affiliated with SocialBlade.

# Actor input Schema

## `mode` (type: `string`):

What to do: look up specific creators (profiles), search creators by keyword, or pull a YouTube top/worst/growth/decline list.

## `startUrls` (type: `array`):

\[profiles] SocialBlade URLs or direct platform URLs. Supported: /youtube/handle/, /youtube/user/, /youtube/channel/, /tiktok/user/, /instagram/user/, /twitch/user/, /facebook/user/ (and /facebook/page/). You can also paste youtube.com, tiktok.com, instagram.com, twitch.tv or facebook.com profile links.

## `profiles` (type: `array`):

\[profiles] Alternative to Start URLs: a list of {platform, username} objects or bare usernames.

## `platform` (type: `string`):

\[profiles] Platform used when a Profiles entry is a bare username string.

## `includeHistory` (type: `boolean`):

\[profiles] Include daily snapshots of followers/subscribers, views, videos and other platform metrics. Instagram history is login-only and is omitted.

## `historyDays` (type: `integer`):

\[profiles] How many daily history snapshots to request (1-31). SocialBlade exposes at most 31 days without a login.

## `includeMilestones` (type: `boolean`):

\[profiles] Also fetch YouTube subscriber/view/upload milestones and the first-tracked date. Adds one request per YouTube profile.

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

\[search] Keywords to search on SocialBlade, e.g. "mrbeast" or "gaming". One request per query.

## `searchPlatform` (type: `string`):

\[search] Platform to search on.

## `rankType` (type: `string`):

\[youtube_rankings] Top creators, worst creators, fastest growing, or fastest declining.

## `rankBy` (type: `string`):

\[youtube_rankings] Metric to rank by.

## `rankCountryCode` (type: `string`):

\[youtube_rankings] Country filter for top/worst lists. Growth/decline lists are global and are filtered by country after download.

## `rankCategorySlug` (type: `string`):

\[youtube_rankings] Content category filter. Growth/decline lists are global and are filtered by category after download.

## `rankMadeForKids` (type: `string`):

\[youtube_rankings] Include all creators, only made-for-kids creators, or hide made-for-kids creators.

## `rankPeriod` (type: `string`):

\[youtube_rankings] Time window for growth/decline rankings.

## `rankCount` (type: `string`):

\[youtube_rankings] How many creators SocialBlade should put in the list. Public lists are capped at 100; 10/50/100 are the useful public sizes.

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

Maximum records returned across all modes.

## Actor input object example

```json
{
  "mode": "profiles",
  "startUrls": [
    "https://socialblade.com/youtube/handle/mrbeast"
  ],
  "platform": "youtube",
  "includeHistory": true,
  "historyDays": 15,
  "includeMilestones": false,
  "searchQueries": [
    "mrbeast"
  ],
  "searchPlatform": "youtube",
  "rankType": "top",
  "rankBy": "subscribers",
  "rankCountryCode": "global",
  "rankCategorySlug": "all",
  "rankMadeForKids": "all",
  "rankPeriod": "3",
  "rankCount": "100",
  "maxItems": 2
}
```

# Actor output Schema

## `records` (type: `string`):

Dataset containing profile, search or ranking records.

# 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 = {
    "mode": "profiles",
    "startUrls": [
        "https://socialblade.com/youtube/handle/mrbeast"
    ],
    "platform": "youtube",
    "includeHistory": true,
    "historyDays": 15,
    "includeMilestones": false,
    "searchQueries": [
        "mrbeast"
    ],
    "searchPlatform": "youtube",
    "rankType": "top",
    "rankBy": "subscribers",
    "rankCountryCode": "global",
    "rankCategorySlug": "all",
    "rankMadeForKids": "all",
    "rankPeriod": "3",
    "rankCount": "100",
    "maxItems": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/socialblade-creator-stats-and-youtube-top-rankings").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 = {
    "mode": "profiles",
    "startUrls": ["https://socialblade.com/youtube/handle/mrbeast"],
    "platform": "youtube",
    "includeHistory": True,
    "historyDays": 15,
    "includeMilestones": False,
    "searchQueries": ["mrbeast"],
    "searchPlatform": "youtube",
    "rankType": "top",
    "rankBy": "subscribers",
    "rankCountryCode": "global",
    "rankCategorySlug": "all",
    "rankMadeForKids": "all",
    "rankPeriod": "3",
    "rankCount": "100",
    "maxItems": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/socialblade-creator-stats-and-youtube-top-rankings").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 '{
  "mode": "profiles",
  "startUrls": [
    "https://socialblade.com/youtube/handle/mrbeast"
  ],
  "platform": "youtube",
  "includeHistory": true,
  "historyDays": 15,
  "includeMilestones": false,
  "searchQueries": [
    "mrbeast"
  ],
  "searchPlatform": "youtube",
  "rankType": "top",
  "rankBy": "subscribers",
  "rankCountryCode": "global",
  "rankCategorySlug": "all",
  "rankMadeForKids": "all",
  "rankPeriod": "3",
  "rankCount": "100",
  "maxItems": 2
}' |
apify call vexaloom-labs/socialblade-creator-stats-and-youtube-top-rankings --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/socialblade-creator-stats-and-youtube-top-rankings"
        }
    }
}
```

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/ESRTZMOn1EUqigP2X/builds/PyQavTGoIwLlAMmZk/openapi.json
