{
  "openapi": "3.0.1",
  "info": {
    "title": "Bilibili KOL Scraper - 花火 Creator Rates & Audience",
    "description": "Find and vet Bilibili (哔哩哔哩 / B站) creators on the 花火 (Huahuo) creator marketplace: search UP主 by keyword or filters, read creator rankings, and export quoted collaboration rates, CPM, audience portraits, follower growth and similar creators to JSON/CSV/Excel. No advertiser account needed.",
    "version": "1.0",
    "x-build-id": "NzOo5k4BkvaXpo4Qq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vulnv~bilibili-kol-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vulnv-bilibili-kol-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/vulnv~bilibili-kol-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vulnv-bilibili-kol-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/vulnv~bilibili-kol-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vulnv-bilibili-kol-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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "⚙️ Operation",
            "enum": [
              "search_creators",
              "browse_creators",
              "creator_rankings",
              "creator_profile",
              "creator_performance",
              "similar_creators"
            ],
            "type": "string",
            "description": "What to scrape. Each operation uses a different input field below:\n\n• Search creators → Keywords (+ optional filters)\n• Browse creators by filters → filters only\n• Creator rankings → Ranking type (+ optional category)\n• Creator commercial profile → Creator URLs / UIDs\n• Creator growth & performance → Creator URLs / UIDs\n• Similar creators → Creator URLs / UIDs",
            "default": "search_creators"
          },
          "keywords": {
            "title": "🔎 Search keywords",
            "type": "array",
            "description": "For the \"Search creators\" operation. Add one or more keywords - Chinese works best (e.g. 咖啡, 数码测评, 美妆). Each keyword is searched independently and cross-keyword duplicates are removed. See \"Search by\" to match on video content or on creator names / UIDs.",
            "items": {
              "type": "string"
            }
          },
          "searchMode": {
            "title": "🧭 Search by",
            "enum": [
              "content",
              "name"
            ],
            "type": "string",
            "description": "For \"Search creators\" only. Content finds creators whose videos match the keyword (matched videos are listed in each row). Creator name finds creators by nickname or UID.",
            "default": "content"
          },
          "creatorUrls": {
            "title": "👤 Creator URLs / UIDs",
            "type": "array",
            "description": "For the \"Creator commercial profile\", \"Creator growth & performance\" and \"Similar creators\" operations. Paste space.bilibili.com URLs or bare numeric UIDs (e.g. 403884151) - one per line. Only creators listed on the 花火 marketplace return data.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "📊 Maximum results per input",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on results per keyword (search), per run (browse, rankings) or per creator (similar creators). Cost scales linearly. Set 0 to fetch all available.",
            "default": 100
          },
          "category": {
            "title": "🗂️ Content category",
            "enum": [
              "any",
              "anime",
              "music",
              "gaming",
              "entertainment",
              "tv_series",
              "bangumi",
              "knowledge",
              "kichiku",
              "dance",
              "fashion",
              "life",
              "guochuang",
              "documentary",
              "film",
              "tech",
              "news",
              "food",
              "animals",
              "cars",
              "sports"
            ],
            "type": "string",
            "description": "Optional. Limits Search, Browse and Rankings to creators whose main content category matches. Rankings cover 15 of these categories; for the others the full ranking is returned.",
            "default": "any"
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Only creators with at least this many followers."
          },
          "maxFollowers": {
            "title": "Maximum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Only creators with at most this many followers."
          },
          "minPrice": {
            "title": "Minimum quoted price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only creators whose standard quoted rate is at least this much, in Chinese yuan."
          },
          "maxPrice": {
            "title": "Maximum quoted price (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only creators whose standard quoted rate is at most this much, in Chinese yuan."
          },
          "minMedianViews": {
            "title": "Minimum median views",
            "minimum": 0,
            "type": "integer",
            "description": "Only creators whose median views per video are at least this many."
          },
          "maxMedianViews": {
            "title": "Maximum median views",
            "minimum": 0,
            "type": "integer",
            "description": "Only creators whose median views per video are at most this many."
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "relevance",
              "followers",
              "median_views",
              "interaction_rate"
            ],
            "type": "string",
            "description": "Order of Search and Browse results. Sorting by a metric gives the most stable paging.",
            "default": "relevance"
          },
          "rankingType": {
            "title": "🏆 Ranking type",
            "enum": [
              "top",
              "value",
              "breakout"
            ],
            "type": "string",
            "description": "For \"Creator rankings\" only. Top creators (头部必选), best value creators (超值优选) or breakout creators with the fastest follower growth (成长黑马).",
            "default": "top"
          },
          "performancePeriod": {
            "title": "📅 Performance period",
            "enum": [
              "30d",
              "90d",
              "180d"
            ],
            "type": "string",
            "description": "For \"Creator growth & performance\" only. Window for the content statistics (videos, brand deals, hot videos, content and traffic mix). Follower growth is always reported for 7, 30, 90, 180 and 365 days.",
            "default": "180d"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}