{
  "openapi": "3.0.1",
  "info": {
    "title": "Bilibili Scraper - Creator & Video Growth Tracker",
    "description": "Track Bilibili (哔哩哔哩) creators, keywords and videos. Get views, likes, coins, favorites, shares, danmaku, comments and followers, plus growth since your last run and a fastest-growing rank. No login.",
    "version": "0.1",
    "x-build-id": "yOYFK7NN9hQIe9lL9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~bilibili-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-bilibili-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/khadinakbar~bilibili-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-bilibili-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/khadinakbar~bilibili-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-bilibili-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": {
          "creators": {
            "title": "Creators to track",
            "type": "array",
            "description": "Use when the user names Bilibili creators (UP主) or gives space.bilibili.com links or numeric UIDs. Returns each creator's latest videos with full stats plus a creator summary row (followers, follower growth). Use 'keywords' instead for topics, and 'videos' for specific video links.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords to search",
            "type": "array",
            "description": "Use when the user describes a topic, game, brand or product (Chinese or English), e.g. '原神' or 'Xiaomi SU7'. Searches Bilibili videos and tracks the top results. Use 'creators' instead when the user names specific accounts.",
            "items": {
              "type": "string"
            }
          },
          "videos": {
            "title": "Videos to track",
            "type": "array",
            "description": "Use when the user gives specific video links or IDs: bilibili.com/video/BV… links, BV ids, av ids or b23.tv short links.",
            "items": {
              "type": "string"
            }
          },
          "trackerName": {
            "title": "Tracker name (for growth since last run)",
            "type": "string",
            "description": "Runs with the same tracker name are compared with each other to calculate views, coins, likes and followers gained since the previous run. Use one name per watchlist, e.g. 'gaming-creators'. Saved in your account's key-value store 'bilibili-tracker-<name>'.",
            "default": "default"
          },
          "maxVideosPerCreator": {
            "title": "Max videos per creator",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Newest videos to track for each creator.",
            "default": 20
          },
          "maxVideosPerKeyword": {
            "title": "Max videos per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Search results to track for each keyword.",
            "default": 20
          },
          "searchOrder": {
            "title": "Keyword search order",
            "enum": [
              "totalrank",
              "pubdate",
              "click",
              "stow",
              "dm"
            ],
            "type": "string",
            "description": "How keyword results are ranked before the top ones are tracked.",
            "default": "totalrank"
          },
          "maxResults": {
            "title": "Max videos per run",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap on video rows (and video charges) for the whole run. Creator summary rows are free and not counted. Free Apify plan: capped at 50 videos per run.",
            "default": 1000
          },
          "includeCreatorStats": {
            "title": "Include creator follower stats",
            "type": "boolean",
            "description": "Adds followers, following, video count, level and verification title for every video's creator, and enables follower growth.",
            "default": true
          },
          "includeComments": {
            "title": "Include top comments",
            "type": "boolean",
            "description": "Adds each video's top comments (Bilibili shows up to 3 to visitors who are not logged in) with likes, replies and location.",
            "default": false
          },
          "translateTitles": {
            "title": "Translate titles to English",
            "type": "boolean",
            "description": "Adds a machine-translated English title in titleEnglish.",
            "default": false
          },
          "includeDanmakuReport": {
            "title": "Add bullet-comment reaction report (paid add-on)",
            "type": "boolean",
            "description": "Adds danmakuReport to each video: a timeline of bullet comments (danmaku), the 3 peak moments with their top phrases, the 10 most repeated phrases and a simple positive/negative mood. Built from the newest few thousand bullet comments. Charged once per video that has bullet comments.",
            "default": false
          },
          "includeTranscripts": {
            "title": "Add speech-to-text transcripts (paid add-on)",
            "type": "boolean",
            "description": "Adds transcriptText and timed transcriptSegments made by speech recognition from the video's audio (Bilibili's own subtitles need a login). Charged per started minute of audio, only when a transcript is returned. Videos longer than the max length below are skipped and not charged.",
            "default": false
          },
          "maxTranscriptMinutes": {
            "title": "Max video length for transcripts (minutes)",
            "minimum": 1,
            "maximum": 45,
            "type": "integer",
            "description": "Videos longer than this are not transcribed (and not charged for transcripts).",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy works for Bilibili. Change only if runs are blocked.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}