{
  "openapi": "3.0.1",
  "info": {
    "title": "Bilibili Scraper 哔哩哔哩 [From $1] Videos, Comments & Danmaku",
    "description": "[From $1 per 1000 results] Bilibili (哔哩哔哩, B站) scraper with no login: search videos, list a creator's uploads, views, likes, coins and shares, comments with replies, danmaku, creator followers, trending and hot searches. Videos $5, comments $2, danmaku $1 per 1,000.",
    "version": "0.1",
    "x-build-id": "kexdmXp4bKV2kmJea"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~bilibili-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~bilibili-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~bilibili-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Search Bilibili videos. 50 results per page. Example: `人工智能`.",
            "items": {
              "type": "string"
            }
          },
          "creators": {
            "title": "Creators (UP主)",
            "type": "array",
            "description": "List a creator's uploads, 50 per page. Give the numeric UID (`546195`) or the space link (`https://space.bilibili.com/546195`).",
            "items": {
              "type": "string"
            }
          },
          "creatorKeywords": {
            "title": "Find creators by keyword",
            "type": "array",
            "description": "Search Bilibili for creators (UP主) by name or topic, 20 per page. Each row has the UID, name, avatar and follower count; turn on Creator profile to look each one up in full. Example: `美食`.",
            "items": {
              "type": "string"
            }
          },
          "videoUrls": {
            "title": "Video links",
            "type": "array",
            "description": "Video links (`https://www.bilibili.com/video/BV1PTHS6MEC5`), BV ids, av ids, or `b23.tv` short links. Each returns the full video record.",
            "items": {
              "type": "string"
            }
          },
          "liveRooms": {
            "title": "Live rooms",
            "type": "array",
            "description": "Live room ids (`22816111`) or links (`https://live.bilibili.com/22816111`). Each returns the room's title, status, area, followers and cover. Billed as `live-room`.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "Post links",
            "type": "array",
            "description": "Feed post (动态) ids or links (`https://t.bilibili.com/1232186887046692873`, `https://www.bilibili.com/opus/1232186887046692873`). Each returns the post's text, images, linked video, likes, comments and reposts. Billed as `post`.",
            "items": {
              "type": "string"
            }
          },
          "includeTrending": {
            "title": "Trending videos",
            "type": "boolean",
            "description": "Bilibili's site-wide popular list (综合热门), 20 per page with full stats. Default: off.",
            "default": false
          },
          "includeHotSearch": {
            "title": "Hot search terms",
            "type": "boolean",
            "description": "The 50 terms currently trending in Bilibili search, with heat scores. Billed as `hot-search-term`. Default: off.",
            "default": false
          },
          "searchOrder": {
            "title": "Sort search by",
            "enum": [
              "totalrank",
              "click",
              "pubdate",
              "dm",
              "stow"
            ],
            "type": "string",
            "description": "Order of search results. Default: relevance.",
            "default": "totalrank"
          },
          "searchDuration": {
            "title": "Video length",
            "enum": [
              "all",
              "under10",
              "10to30",
              "30to60",
              "over60"
            ],
            "type": "string",
            "description": "Limit search results by length. Default: any.",
            "default": "all"
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only search results published in the last N days. Leave empty for any time."
          },
          "creatorVideoOrder": {
            "title": "Sort creator videos by",
            "enum": [
              "pubdate",
              "click"
            ],
            "type": "string",
            "description": "Order of a creator's uploads. Default: newest.",
            "default": "pubdate"
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Pages per keyword and per creator (50 videos each), and of the trending list (20 each). Default 3.",
            "default": 3
          },
          "includeVideoDetails": {
            "title": "Full details for listed videos",
            "type": "boolean",
            "description": "Search and creator lists carry views, comments and (for search) likes and favorites. Turn this on to look up each video in full: coins, shares, likes, parts, category, resolution. Same price per video. Video links always return the full record. Default: off.",
            "default": false
          },
          "includeCreatorProfile": {
            "title": "Creator profile",
            "type": "boolean",
            "description": "For each entry in Creators, and for each creator found by keyword, add a full `creator` row: followers, following, level, bio, verification title, video count. Billed as `creator-profile`. Default: off.",
            "default": false
          },
          "includeCreatorVideos": {
            "title": "Creator uploads",
            "type": "boolean",
            "description": "Return each creator's uploaded videos. Turn off when you only want their profile, posts, favorites or in-creator search results. Default: on.",
            "default": true
          },
          "creatorSearchKeywords": {
            "title": "Search inside each creator",
            "type": "array",
            "description": "Keywords searched within each creator's own uploads, 50 per page. Use a single word per entry (Bilibili ignores spaces). Example: `游戏`.",
            "items": {
              "type": "string"
            }
          },
          "includePosts": {
            "title": "Creator posts (动态)",
            "type": "boolean",
            "description": "Return each creator's feed posts as rows with `type: post`: text, images, linked video, likes, comments, reposts and time. Billed as `post`. Default: off.",
            "default": false
          },
          "maxPostsPerCreator": {
            "title": "Max posts per creator",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Posts come about 12 per page. Default 24.",
            "default": 24
          },
          "includeFavorites": {
            "title": "Creator public favorites",
            "type": "boolean",
            "description": "Return the videos in each creator's public favorite folders, with the folder name and the time they saved it. Billed as videos. Default: off.",
            "default": false
          },
          "includeStreamUrl": {
            "title": "Live stream address",
            "type": "boolean",
            "description": "For each live room that is on air, add `streamUrl` (the FLV stream address), its quality and when the address expires, about an hour after the run. No extra charge. Default: off.",
            "default": false
          },
          "includeComments": {
            "title": "Comments",
            "type": "boolean",
            "description": "Return each video's comments (hottest first) as rows with `type: comment`: author, level, text, likes, reply count, time. Default: off.",
            "default": false
          },
          "maxCommentsPerVideo": {
            "title": "Max comments per video",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Comments come 20 per page. Default 20.",
            "default": 20
          },
          "includeReplies": {
            "title": "Replies to comments",
            "type": "boolean",
            "description": "Also return replies under each comment as rows with `type: reply`. Needs Comments. Default: off.",
            "default": false
          },
          "maxRepliesPerComment": {
            "title": "Max replies per comment",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Default 20.",
            "default": 20
          },
          "includeDanmaku": {
            "title": "Danmaku (bullet comments)",
            "type": "boolean",
            "description": "Return each video's danmaku as rows with `type: danmaku`: text, position in the video, colour, mode and send time. Covers the first part of multi-part videos. Billed as `danmaku` per row. Default: off.",
            "default": false
          },
          "maxDanmakuPerVideo": {
            "title": "Max danmaku per video",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Bilibili serves up to about 600 per video part. Default 600.",
            "default": 600
          },
          "includeSubtitles": {
            "title": "Subtitles / transcript (字幕)",
            "type": "boolean",
            "description": "Add each video's subtitle track to its video row: subtitleText (the whole transcript as plain text), subtitleSegments (from, to, text), subtitleLanguage, and isAiSubtitle. Uses the uploader's own subtitles when there are any, otherwise Bilibili's AI transcript (ai-zh). First part of the video only. Videos without subtitles get null fields. Free until 3 Nov 2026; from 4 Nov 2026 each transcript found is billed as `subtitle` ($0.003), and videos without one are not charged. Default: off.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum videos",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on video rows. Comments, replies, danmaku and creator rows are capped separately. Default 50. Free-tier runs are capped at 100.",
            "default": 50
          },
          "monitorMode": {
            "title": "Monitoring mode (only-new videos)",
            "type": "boolean",
            "description": "Skip videos already delivered to you; they are not billed and no data is fetched for them. First run builds the baseline. Default: false.",
            "default": false
          },
          "monitorStateName": {
            "title": "Monitor state name",
            "type": "string",
            "description": "Separate seen-lists for several schedules. Example: `tech-creators`."
          },
          "resetMonitoringState": {
            "title": "Reset monitoring state",
            "type": "boolean",
            "description": "Clear the seen-list at the start of this run. Default: false.",
            "default": false
          },
          "emitBaseline": {
            "title": "Emit baseline on first monitoring run",
            "type": "boolean",
            "description": "ON (default): first monitoring run returns current videos. OFF: first run seeds silently.",
            "default": true
          },
          "includeUnchanged": {
            "title": "Include unchanged (monitoring)",
            "type": "boolean",
            "description": "Also re-emit already-seen videos, tagged `changeType`. Billed. Default: false.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}