{
  "openapi": "3.0.1",
  "info": {
    "title": "Bilibili Creator Videos Scraper - UP主投稿 (B站)",
    "description": "Get a Bilibili creator's public video uploads by UID or space URL. Choose list metadata or detailed metrics with likes, coins, favorites, shares and tags. Export JSON/CSV without login. 获取B站UP主投稿列表，可选点赞、投币、收藏、分享与标签等详情。",
    "version": "0.1",
    "x-build-id": "qcvjSfbPHe8DDDXAQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arjun_code~bilibili-creator-videos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arjun_code-bilibili-creator-videos-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/arjun_code~bilibili-creator-videos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-arjun_code-bilibili-creator-videos-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/arjun_code~bilibili-creator-videos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-arjun_code-bilibili-creator-videos-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": {
          "creator": {
            "title": "Creator UID or link / UP 主 UID 或链接",
            "type": "string",
            "description": "Enter one creator's numeric UID or space-page link, for example 23947287 or https://space.bilibili.com/23947287. One creator per run. Use the UID, not a nickname, video link or BV ID.\n\n中文：填写一个 UP 主的数字 UID 或主页链接，例如 23947287 或 https://space.bilibili.com/23947287。每次运行填写一位 UP 主；不要填写昵称、视频链接或 BV 号。"
          },
          "maxVideosPerCreator": {
            "title": "Maximum videos / 最多获取视频数",
            "type": "integer",
            "description": "The first-run example prefills 5 videos. If this field is omitted from an API request, the default remains 20. Enter 100 for up to 100 videos, or 0 to keep collecting all accessible public uploads in the chosen sort order. The limit counts selected unique videos, not guaranteed successful detail results. Timeouts or access restrictions may stop the run early; saved results remain available.\n\n中文：首次示例预填 5 条视频；API 请求省略此参数时，仍默认获取 20 条。填写 100 表示最多 100 条；填写 0 表示按所选排序持续获取全部可访问的公开投稿。数量按选中的唯一视频计算，详情失败时结果可能少于设置值。运行超时或访问受限可能提前结束，已保存的结果仍可查看。",
            "default": 20
          },
          "sortBy": {
            "title": "Sort videos by / 视频排序",
            "enum": [
              "newest",
              "mostViewed",
              "mostFavorited"
            ],
            "type": "string",
            "description": "Choose Bilibili's native ordering: newest publication, most views, or most favorites first. Every page is requested in this order; results are not collected first and sorted locally. With a limit of 20, this returns the first 20 videos in the selected order; 0 keeps collecting all accessible uploads. Most favorited means how often each uploaded video was favorited, not the creator's favorite lists. Sorting does not require video details, but favoriteCount is available only when video details are enabled.\n\n中文：选择 B站原生排序：最新发布、最多播放或最多收藏。每一页都直接按所选顺序请求，不会先抓完再在本地排序。数量设为 20 时，获取该排序的前 20 条；设为 0 时，持续获取全部可访问投稿。最多收藏按投稿视频被收藏的次数排序，不是获取 UP 主的收藏夹。排序本身无需开启视频详情；如需返回 favoriteCount，请开启视频详情。",
            "default": "newest"
          },
          "includeVideoDetails": {
            "title": "Include video details / 获取更多视频详情",
            "type": "boolean",
            "description": "Off (default): faster; collect titles, links, covers, publication times, duration, views, comments and danmaku where available, at the list-result price. On: request additional likes, coins, favorites, shares, tags, uploader avatar and more video details, at the detail-result price instead of the list price. No double result fee. Details take more requests and time. Neither mode separately requests the full creator profile. Some fields may be unavailable from Bilibili. See Pricing for your applicable rate.\n\n中文：关闭（默认）：更快获取标题、链接、封面、发布时间、时长、播放量、评论数和弹幕数等基础信息，按列表结果价格收费。开启：额外请求点赞、投币、收藏、分享、标签、UP 主头像等更多视频详情，改按详情结果价格收费，不会叠加列表费。开启后请求更多、耗时更长。两种模式都不会单独查询完整 UP 主资料，字段以 B站实际返回为准。具体单价请查看价格面板。",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}