{
  "openapi": "3.0.1",
  "info": {
    "title": "Bilibili Transcript - Video to Text with SRT & Translation",
    "description": "Get the transcript of a Bilibili video as text: paste video links, b23.tv short links or BV IDs and get the spoken words by speech to text, with timestamps, SRT and VTT subtitles and an optional English translation. $0.25 per video up to 20 minutes; failed, private and silent videos are free.",
    "version": "1.0",
    "x-build-id": "ktGiw7anM9k0XjbWH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tenfoldfleet~bilibili-transcript-video-to-text/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tenfoldfleet-bilibili-transcript-video-to-text",
        "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/tenfoldfleet~bilibili-transcript-video-to-text/runs": {
      "post": {
        "operationId": "runs-sync-tenfoldfleet-bilibili-transcript-video-to-text",
        "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/tenfoldfleet~bilibili-transcript-video-to-text/run-sync": {
      "post": {
        "operationId": "run-sync-tenfoldfleet-bilibili-transcript-video-to-text",
        "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": [
          "videoUrls"
        ],
        "properties": {
          "videoUrls": {
            "title": "Bilibili video links or BV IDs",
            "type": "array",
            "description": "Videos to transcribe: full links (https://www.bilibili.com/video/BV1cQap6UEr2), b23.tv short links, or bare BV IDs. A link with ?p=3 transcribes that part only. One video part = one result. Free Apify plan: 3 videos per run, up to 20 minutes each.",
            "items": {
              "type": "string"
            }
          },
          "parts": {
            "title": "Multi-part videos",
            "enum": [
              "first",
              "all"
            ],
            "type": "string",
            "description": "Some Bilibili videos have several parts (P1, P2, ...). Transcribe only the first part, or every part. Each part is one result and one charge.",
            "default": "first"
          },
          "language": {
            "title": "Spoken language",
            "type": "string",
            "description": "Two-letter code of the language spoken in the videos: zh (Mandarin, the default), yue (Cantonese), ja, en, ko and so on. Use \"auto\" to detect it per video.",
            "default": "zh"
          },
          "translateTo": {
            "title": "Translate to",
            "enum": [
              "none",
              "en",
              "zh",
              "zh-tw",
              "es",
              "pt",
              "fr",
              "de",
              "it",
              "ru",
              "ar",
              "tr",
              "vi",
              "id",
              "th",
              "ja",
              "ko",
              "hi",
              "pl",
              "nl",
              "ms"
            ],
            "type": "string",
            "description": "Optional. Adds a translation of the transcript, as text and as a timed SRT, at no extra charge. It is translated a passage at a time, so a translated subtitle line can be a few seconds early or late.",
            "default": "none"
          },
          "outputFormats": {
            "title": "Output formats",
            "type": "array",
            "description": "What each result contains besides the timed segments: the plain transcript text, an SRT subtitle file, a VTT subtitle file. All formats cost the same.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "Plain text",
                "SRT subtitles",
                "VTT subtitles"
              ]
            },
            "default": [
              "text",
              "srt",
              "vtt"
            ]
          },
          "maxMinutesPerVideo": {
            "title": "Longest video to transcribe (minutes)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Videos longer than this are skipped for free, so a long livestream replay cannot surprise you with extra-minute charges. The first 20 minutes of a video are covered by the transcript price; each further minute is a small extra charge. Free Apify plan: 20 minutes at most.",
            "default": 60
          },
          "maxPartsPerVideo": {
            "title": "Most parts per video",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "With \"All parts\", a video with more parts than this is cut off after this many (a course can have hundreds).",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify proxies are picked automatically and are included in the price. Proxy groups are ignored; you can supply your own proxy URLs instead.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}