{
  "openapi": "3.0.1",
  "info": {
    "title": "Social Blade Stats: YouTube, TikTok & Twitch Creator Data",
    "description": "Get Social Blade stats for YouTube, TikTok, Instagram, Twitch and Facebook creators: followers, views, grade, ranks, growth, daily history and YouTube earnings. No login.",
    "version": "0.1",
    "x-build-id": "hWK19A2PrLGcCh2mU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~social-blade-stats/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-social-blade-stats",
        "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/cliqtomedia~social-blade-stats/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-social-blade-stats",
        "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/cliqtomedia~social-blade-stats/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-social-blade-stats",
        "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 get",
            "enum": [
              "profiles",
              "rankings",
              "search"
            ],
            "type": "string",
            "description": "Statistics of the creators you list, a Social Blade top list, or creators found by search words.",
            "default": "profiles"
          },
          "profiles": {
            "title": "Creators",
            "type": "array",
            "description": "One per line: platform:name (youtube:mrbeast, tiktok:khaby.lame, twitch:kaicenat, instagram:cristiano, facebook:MrBeast6000), a Social Blade link, a YouTube/TikTok/Instagram/Twitch/Facebook profile link, a YouTube channel ID (UC…), or a bare name for the default platform. Up to 1,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "defaultPlatform": {
            "title": "Platform for bare names",
            "enum": [
              "youtube",
              "tiktok",
              "instagram",
              "twitch",
              "facebook"
            ],
            "type": "string",
            "description": "Used when an entry has no platform, such as \"mrbeast\" or \"@mkbhd\".",
            "default": "youtube"
          },
          "includeHistory": {
            "title": "Daily history",
            "type": "boolean",
            "description": "Daily totals for the last 30 days, oldest first.",
            "default": true
          },
          "includeGrowth": {
            "title": "Growth",
            "type": "boolean",
            "description": "Gains for 1, 7, 30, 90, 365 days and more.",
            "default": true
          },
          "includeEarnings": {
            "title": "YouTube estimated earnings",
            "type": "boolean",
            "description": "Daily, monthly and yearly low and high estimate in USD, the way Social Blade counts it.",
            "default": true
          },
          "includeMonthly": {
            "title": "Monthly gains",
            "type": "boolean",
            "description": "Gains per month.",
            "default": false
          },
          "includeWeekly": {
            "title": "Weekly gains",
            "type": "boolean",
            "description": "Gains per week.",
            "default": false
          },
          "rankingsPlatform": {
            "title": "Ranking platform",
            "enum": [
              "youtube",
              "tiktok",
              "instagram",
              "twitch",
              "facebook"
            ],
            "type": "string",
            "description": "Used when \"What to get\" is \"Top creators ranking\".",
            "default": "youtube"
          },
          "rankingsMetric": {
            "title": "Rank by",
            "enum": [
              "followers",
              "views",
              "uploads",
              "likes",
              "talkingAbout"
            ],
            "type": "string",
            "description": "Twitch has followers only.",
            "default": "followers"
          },
          "rankingsOrder": {
            "title": "Order",
            "enum": [
              "top",
              "bottom"
            ],
            "type": "string",
            "description": "Highest first is the usual top list.",
            "default": "top"
          },
          "rankingsCountry": {
            "title": "Country (YouTube)",
            "type": "string",
            "description": "Two-letter code such as US or IN. Empty = global."
          },
          "rankingsCategory": {
            "title": "Category (YouTube)",
            "enum": [
              "games",
              "entertainment",
              "people",
              "animals",
              "film",
              "music",
              "sports",
              "tech",
              "howto",
              "news",
              "education",
              "comedy",
              "nonprofit",
              "autos",
              "travel",
              "shows"
            ],
            "type": "string",
            "description": "Empty = all categories."
          },
          "rankingsMadeForKids": {
            "title": "Made for kids (YouTube)",
            "type": "boolean",
            "description": "Empty = all channels; on = only made for kids; off = not made for kids."
          },
          "rankingsLimit": {
            "title": "Creators in the list",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Up to 100.",
            "default": 100
          },
          "searchQueries": {
            "title": "Search words",
            "type": "array",
            "description": "Names to look up when \"What to get\" is \"Find creators by name\". The exact match comes first.",
            "items": {
              "type": "string"
            }
          },
          "searchPlatforms": {
            "title": "Search on",
            "type": "array",
            "description": "Empty = the platform for bare names.",
            "items": {
              "type": "string",
              "enum": [
                "youtube",
                "tiktok",
                "instagram",
                "twitch",
                "facebook"
              ],
              "enumTitles": [
                "YouTube",
                "TikTok",
                "Instagram",
                "Twitch",
                "Facebook"
              ]
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "At most this many paid rows: profiles, top list or search rows and not found entries. Invalid entries and errors are free and do not count.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Default: Apify datacenter proxy, switching to residential only if Social Blade blocks it. Choose your own groups to use only them.",
            "default": {
              "useApifyProxy": true
            }
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}