{
  "openapi": "3.0.1",
  "info": {
    "title": "Social Blade Creator Stats Scraper",
    "description": "Social Blade Creator Stats Scraper SD - Social Blade Creator Stats Scraper is a creator analytics tool that extracts Social Blade statistics of YouTube, TikTok, Instagram, Twitch and Facebook creators: subscribers, views, grade, ranks, daily history, growth, earnings estimates and top-100 lists.",
    "version": "1.0",
    "x-build-id": "YRw1DKNPKJfPYcYbW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~social-blade-creator-stats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-social-blade-creator-stats-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/neuro-scraper~social-blade-creator-stats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-social-blade-creator-stats-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/neuro-scraper~social-blade-creator-stats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-social-blade-creator-stats-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "profile",
              "history",
              "growth",
              "search",
              "top"
            ],
            "type": "string",
            "description": "profile: one row per creator with stats, ranks, grade, history, growth and earnings. history: one row per day. growth: growth windows only. search: find creators by name. top: Social Blade's top / bottom 100 lists.",
            "default": "profile"
          },
          "profiles": {
            "title": "Creators (links or usernames)",
            "type": "array",
            "description": "Social Blade links (https://socialblade.com/youtube/handle/mrbeast), creator links (https://www.youtube.com/@MrBeast, https://www.tiktok.com/@khaby.lame, https://www.instagram.com/nasa/, https://www.twitch.tv/shroud, https://www.facebook.com/nasa), platform:username lines (tiktok:khaby.lame) or plain usernames of the Platform below.",
            "items": {
              "type": "string"
            }
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "youtube",
              "tiktok",
              "instagram",
              "twitch",
              "facebook",
              "all"
            ],
            "type": "string",
            "description": "Platform of plain usernames, search terms and top lists. all = look the name up on every platform (minus Exclude platforms).",
            "default": "youtube"
          },
          "excludePlatforms": {
            "title": "Exclude platforms (with All)",
            "type": "array",
            "description": "Platforms to skip when Platform is All.",
            "items": {
              "type": "string",
              "enum": [
                "youtube",
                "tiktok",
                "instagram",
                "twitch",
                "facebook"
              ]
            },
            "default": []
          },
          "searchQueries": {
            "title": "Search terms",
            "type": "array",
            "description": "Creator names to search on Social Blade, e.g. [\"mrbeast\", \"nasa\"]. Used in search mode.",
            "items": {
              "type": "string"
            }
          },
          "resultsPerQuery": {
            "title": "Results per search term",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many search results per term and platform (Social Blade returns up to 5).",
            "default": 5
          },
          "enrichResults": {
            "title": "Full stats for search / top results",
            "type": "boolean",
            "description": "Open each search or top-list result's Social Blade page for full stats, history and growth (search: on by default; top lists: slower).",
            "default": true
          },
          "includeHistory": {
            "title": "Include daily history",
            "type": "boolean",
            "description": "Add the daily history (date, subscribers / followers, views, videos, likes) to every profile row.",
            "default": true
          },
          "historyDays": {
            "title": "History days",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "Days of history: up to 31 for YouTube, 15 for the other platforms (what Social Blade shows logged out).",
            "default": 31
          },
          "includeGrowth": {
            "title": "Include growth",
            "type": "boolean",
            "description": "Growth over the last 3, 7, 14 and 30 days for every metric, plus daily, weekly and monthly growth.",
            "default": true
          },
          "includeEarningsEstimates": {
            "title": "Include earnings estimates (YouTube)",
            "type": "boolean",
            "description": "Estimated daily, monthly and yearly earnings of YouTube channels from views gained ($0.25-$4.00 per 1,000 views).",
            "default": true
          },
          "projections": {
            "title": "Include projections",
            "type": "boolean",
            "description": "Projected subscribers / followers in 30, 90 and 365 days from the average daily growth.",
            "default": true
          },
          "rankBy": {
            "title": "Top list: rank by",
            "enum": [
              "subscribers",
              "views",
              "videos",
              "followers",
              "likes",
              "following",
              "media_count",
              "engagement_rate"
            ],
            "type": "string",
            "description": "Metric of the top list: subscribers / views / videos (YouTube), followers / likes (TikTok, Instagram, Twitch, Facebook).",
            "default": "subscribers"
          },
          "rankSort": {
            "title": "Top list: order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Top or bottom of the ranking.",
            "default": "desc"
          },
          "rankCountry": {
            "title": "Top list: country",
            "type": "string",
            "description": "global or a two-letter country code, e.g. us, gb, in, br, jp (YouTube).",
            "default": "global"
          },
          "rankCategory": {
            "title": "Top list: category",
            "enum": [
              "all",
              "autos",
              "comedy",
              "education",
              "entertainment",
              "film",
              "games",
              "howto",
              "music",
              "news",
              "nonprofit",
              "people",
              "animals",
              "tech",
              "sports",
              "travel",
              "shows"
            ],
            "type": "string",
            "description": "YouTube category of the top list.",
            "default": "all"
          },
          "rankMadeForKids": {
            "title": "Top list: made for kids",
            "enum": [
              "all",
              "hide",
              "only"
            ],
            "type": "string",
            "description": "YouTube only.",
            "default": "all"
          },
          "topLists": {
            "title": "Several top lists",
            "type": "array",
            "description": "Top mode: several lists in one run, one per line as platform:rankBy:country:category:order, e.g. youtube:subscribers:us:music, tiktok:followers, youtube:views:global:games:asc. Missing parts use the top-list options above.",
            "items": {
              "type": "string"
            }
          },
          "rankLimit": {
            "title": "Top list: size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many creators of each list (Social Blade shows 100).",
            "default": 100
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on all rows of the run (0 = no cap).",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many creators are scraped at the same time.",
            "default": 5
          },
          "continueOnError": {
            "title": "Output a row for failed creators",
            "type": "boolean",
            "description": "On: a creator that is not found gives a row with the error. Off: only logged.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential IPs by default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}