# Social Blade Scraper (`scrapingbuddy/socialblade-scraper`) Actor

Scrapes creator stats from Social Blade (socialblade.com): YouTube, TikTok, Twitch, Instagram and Facebook profiles with growth, daily history and estimated earnings, searches, and top lists.

- **URL**: https://apify.com/scrapingbuddy/socialblade-scraper.md
- **Developed by:** [Giacomo Pigani](https://apify.com/scrapingbuddy) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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.

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

## Social Blade Scraper

Scrapes creator statistics from [Social Blade](https://socialblade.com) for YouTube, TikTok, Twitch, Instagram
and Facebook. You can look up creators, search for names like on the website, or get Social Blade's top lists.
Each creator comes with the data Social Blade shows a visitor who is not logged in: stats, grade, ranks, growth,
the last 30 days of daily stats, weekly and monthly gains and, on YouTube, estimated earnings.

### Input

Combine any of the inputs in one run.

| Parameter | Options | Description |
|---|---|---|
| `profiles` | (optional) List of creators: Social Blade or platform profile URLs, YouTube channel IDs, or handles | One row per creator, with growth, daily history and weekly and monthly gains. Handles are looked up on `platform`. |
| `searchTerms` | (optional) List of names, e.g. `gaming` | Like Social Blade's search page: the creators it lists (up to 25), in its order, on `platform`. |
| `topLists` | (optional) List of Social Blade list URLs, e.g. `https://socialblade.com/youtube/lists/top/100/subscribers/music/ES` | The creators of each list, ranked as on the website. Lists show at most 100 creators, as on the website for visitors who are not logged in. |
| `platform` | `youtube` (default), `tiktok`, `twitch`, `instagram`, `facebook` | The platform of handles and searches. URLs already name their platform. |

A creator can be given as any of these:

- a Social Blade page: `https://socialblade.com/youtube/handle/mkbhd`, `https://socialblade.com/tiktok/user/khaby.lame`
- a platform page: `https://www.youtube.com/@mkbhd`, `https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ`,
  `https://www.tiktok.com/@khaby.lame`, `https://www.twitch.tv/kaicenat`, `https://www.instagram.com/cristiano`,
  `https://www.facebook.com/cristiano`
- a YouTube channel ID: `UCBJycsmduvYEL83R_U4JriQ`
- a handle, with or without `@`: `mkbhd`, on the platform chosen in `platform`

Example looking up creators on several platforms:

```json
{
  "profiles": [
    "https://www.youtube.com/@mkbhd",
    "https://www.tiktok.com/@khaby.lame",
    "https://www.twitch.tv/kaicenat"
  ]
}
```

Example with a search and two top lists:

```json
{
  "searchTerms": ["gaming"],
  "platform": "tiktok",
  "topLists": [
    "https://socialblade.com/youtube/lists/top/50/subscribers/all/ES",
    "https://socialblade.com/tiktok/lists/growth/100/followers/30"
  ]
}
```

#### Top lists

Open a list on Social Blade, set its filters, and copy the URL. The URLs look like this:

| Platform | Top and bottom lists | Fastest growing and declining |
|---|---|---|
| YouTube | `/youtube/lists/{top\|worst}/{count}/{subscribers\|views\|videos}/{category}/{country}` | `/youtube/lists/{growth\|decline}/{count}/{subscribers\|views}/{days}` |
| TikTok | `/tiktok/lists/{top\|worst}/{count}/{followers\|likes}` | `/tiktok/lists/{growth\|decline}/{count}/{followers\|likes}/{days}` |
| Twitch | `/twitch/lists/{top\|worst}/{count}/followers` | `/twitch/lists/{growth\|decline}/{count}/followers/{days}` |
| Instagram | `/instagram/lists/{top\|worst}/{count}/followers` | `/instagram/lists/{growth\|decline}/{count}/followers/{days}` |
| Facebook | `/facebook/lists/{top\|worst}/{count}/{likes\|talking_about}` | `/facebook/lists/{growth\|decline}/{count}/{likes\|talking_about}/{days}` |

- **Count:** 10, 50 or 100. Larger counts also return 100 creators, as on the website.
- **YouTube category:** `all`, `games`, `entertainment`, `people`, `animals`, `film`, `music`, `sports`, `tech`, `howto`,
  `news`, `education`, `comedy`, `nonprofit`, `autos`, `travel` or `shows`.
- **YouTube country:** `global` or a two-letter country code, e.g. `US`, `ES`, `IN`.
- **YouTube Filter:** add `?made_for_kids=true` (made for kids only) or `?made_for_kids=false` (hide them), as the
  website's Filter does.

### Output

- **Dataset**: one row per creator, with the fields Social Blade sends. Counts are numbers; IDs are text, as some are
  too big for numbers. `type` tells where a row comes from:
  - `profile`: a creator from `profiles`, with `growth`, `history`, `weeklyGains`, `monthlyGains` and, on YouTube,
    estimated earnings. Instagram rows have none of these: Social Blade shows them only to logged-in visitors.
  - `search`: a search result, with the few fields the search page shows.
  - `list`: a creator in a top list, with its `rank`.
- **`NOT_FOUND`** (key-value store, only when some creators were not found): the creators Social Blade doesn't know.
  They don't fail the run.
- **`FAILED_REQUESTS`** (key-value store, only when some requests failed): the URL and error of each failed request,
  e.g. a list URL Social Blade doesn't accept. If any request failed, the run fails rather than returning an
  incomplete dataset as a success.

#### Output fields

Fields depend on the platform; the table says where each one appears.

| Field | Description |
|---|---|
| `type`, `platform` | Row type (`profile`, `search`, `list`) and platform. |
| `input`, `search_term`, `list`, `rank` | The input that gave the row; `rank` is the place in a list, from 1. |
| `url` | The creator's Social Blade page. |
| `id` | ID on the platform, e.g. the YouTube channel ID. |
| `username`, `displayName`, `identifier` | Username (YouTube: the handle, in `identifier`) and the name shown. |
| `avatar`, `banner`, `description`, `website`, `socials` | Profile picture, banner, YouTube channel description, website, YouTube channel links. |
| `country`, `channelType`, `madeForKids` | YouTube: country code, category, made for kids. |
| `createdAt`, `verified` | When the account was created, and whether it is verified. |
| `subscribers`, `views`, `videos` | YouTube counts (TikTok also has `videos`). |
| `followers`, `following`, `likes` | TikTok, Twitch, Instagram counts; Facebook page `likes`. |
| `mediaCount`, `engagementRate`, `averageLikes`, `averageComments` | Instagram: posts, engagement rate (%), and averages per post. |
| `talkingAbout` | Facebook: people talking about the page. |
| `grade`, `ranks` | Social Blade grade, e.g. *A++*, and ranks: `sb` (Social Blade rank), by subscribers, views, country, category… |
| `stats` | The counts shown at the top of the profile. In growth and decline lists, the gains over the list's days instead, e.g. `subscribers_gained`. |
| `growth` | Gains over 1, 3, 7, 14, 30, 60, 90, 180 and 365 days and the year to date, e.g. `subscribers30`, `views365`. |
| `history` | One entry per day for about the last 30 days, oldest first, e.g. `{date, subscribers, views, videos}`. |
| `weeklyGains`, `monthlyGains` | Gains per week for the last year, and per month for the last 3 years or more, oldest first, as in the website's Weekly and Monthly charts, e.g. `{date, subscribers, views, videos}`. |
| `estimatedMonthlyEarnings`, `estimatedYearlyEarnings` | YouTube: estimated earnings over 30 and 365 days, `{min, max}` in USD, as on the website ($0.25 to $4 per 1000 views). Each YouTube `history` day has its own `estimatedEarnings`. |
| `hasAuthed`, `statsHidden` | The creator has connected the account to Social Blade, or hidden their stats. |

# Actor input Schema

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

One creator per line: a Social Blade profile URL (e.g. https://socialblade.com/youtube/handle/mkbhd), a YouTube, TikTok, Twitch, Instagram or Facebook profile URL (e.g. https://www.tiktok.com/@khaby.lame), a YouTube channel ID (UC…), or a handle (e.g. @mkbhd) on the platform chosen below. Each creator gives one row with their stats, grade, ranks, growth, the last 30 days of daily stats and, on YouTube, estimated earnings.

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

One search per line, on the platform chosen below, like Social Blade's search page, e.g. "gaming". Returns the creators the website lists, in its order.

## `topLists` (type: `array`):

One Social Blade list URL per line, copied from the website, e.g. https://socialblade.com/youtube/lists/top/100/subscribers/music/ES (top 100 YouTube music channels in Spain by subscribers) or https://socialblade.com/tiktok/lists/growth/100/followers/30 (fastest growing TikTok creators over 30 days). Lists show at most 100 creators, like the website for visitors who are not logged in.

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

The platform of creators given by handle, and of the searches. URLs already name their platform.

## Actor input object example

```json
{
  "profiles": [
    "https://www.youtube.com/@mkbhd"
  ],
  "platform": "youtube"
}
```

# Actor output Schema

## `results` (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 = {
    "profiles": [
        "https://www.youtube.com/@mkbhd"
    ]
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapingbuddy/socialblade-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/4NDZjooQfMZgGCRff/builds/DSKGLBZzUNrAt68ex/openapi.json
