Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Bilibili Video Subtitle Details

Documentación de la API
https://api.sandbase.ai/v1/api/bilibili/web/video-subtitle

Returns subtitle data for a specified Bilibili video based on its video ID and CID. Helps retrieve available caption tracks and related metadata.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
2 obligatorios · 0 opcionales
100 llamadas gratis / díaLas primeras 100 llamadas de cada día son gratis (compartidas por organización) · Se restablecen a las 00:00 UTC. Después, pago por llamada.

Entorno de pruebas

Entrada
Video id
Video cid
SalidaEjemplo
Respuestaoutputs · 1.0 KB · 25 líneas
[
  {
    "data": {
      "allow_submit": false,
      "font_size_type": 0,
      "lan": "",
      "lan_doc": "",
      "subtitle_position": null,
      "subtitles": [
        {
          "ai_status": 2,
          "ai_type": 0,
          "id": 1689850260387946200,
          "id_str": "1689850260387946240",
          "is_lock": false,
          "lan": "ai-zh",
          "lan_doc": "中文",
          "subtitle_url": "//aisubtitle.hdslb.com/bfs/ai_subtitle/prod/1140060817394522840048445829058a24de68ec57ef3a7c4ccbbd139b?auth_key=1787218445-49f99e66f1fd4e339748e2caae8ae793-0-210c99e3de5bfc93303f4ccf3635c042",
          "subtitle_url_v2": "//subtitle.bilibili.com/S%13%1BP.%1D%28%29X%2CR%5Ej%1F%25w%0E%02H%5EHO4%14%7B4%08K@%3C%7B%00M%0B%0A%1AM%08%056N6$%0C0&%02%1E%01%09%0E%1A2V~%15AX%16EYSA_%0Cw%1A%5C%5Et%17TRYXQV%5DYQ%0FzvMa3%5COJ%1CJM3%1Az%13%10%0E%15%12%5E%08D%0B%5C%2CL%0D%5Du%16%02?auth_key=1787218445-49f99e66f1fd4e339748e2caae8ae793-0-210c99e3de5bfc93303f4ccf3635c042",
          "type": 1
        }
      ]
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la API

Bilibili Video Subtitle Details API

List the subtitle tracks of a Bilibili video, including AI-generated Chinese subtitles, with a download URL for each track. Needs the video's aid and cid.

Use cases

  • Get a video's transcript for summaries or search.
  • Translate or index Bilibili videos by their spoken content.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/video-subtitle" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"a_id": "114006081739452", "c_id": "28400484458"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
a_idstringYesVideo id
c_idstringYesVideo cid

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "allow_submit": false,
  "font_size_type": 0,
  "lan": "",
  "lan_doc": "",
  "subtitle_position": null,
  "subtitles": [
    {
      "ai_status": 2,
      "ai_type": 0,
      "id": 1689850260387946240,
      "id_str": "1689850260387946240",
      "is_lock": false,
      "lan": "ai-zh",
      "lan_doc": "中文",
      "subtitle_url": "//aisubtitle.hdslb.com/bfs/ai_subtitle/prod/1140060817394522840048445829058a24de…",
      "subtitle_url_v2": "//subtitle.bilibili.com/S%13%1BP.%1D%28%29X%2CR%5Ej%1F%25w%0E%02H%5EHO4%14%7B4%0…",
      "type": 1
    }
  ]
}

Response fields

FieldMeaning
subtitles[]Subtitle tracks.
subtitles[].lan / lan_docLanguage code (ai-zh for AI Chinese) and its label.
subtitles[].subtitle_urlProtocol-relative URL of the subtitle JSON; prefix it with https:. The file has body[] entries with from, to (seconds) and content.
subtitles[].ai_type / ai_statusSet for AI-generated tracks.

Notes

  • Get aid and cid from a video detail API; one video has one cid per part.
  • Videos without subtitles return an empty subtitles list.

Pricing

$0.001 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON

Guías:Best Bilibili API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Bilibili Video Subtitle Details?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/bilibili/web/video-subtitle con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Bilibili Video Subtitle Details?

$0.001 por llamada. Cada organización obtiene 100 llamadas gratis por día UTC, compartidas entre las APIs elegibles de SandBase, incluida esta; después, cada llamada se factura a este precio desde tu saldo de SandBase. No hay suscripción.

¿Qué parámetros acepta la API de Bilibili Video Subtitle Details?

Requeridos: a_id (string) y c_id (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Bilibili Video Subtitle Details?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Bilibili?

No. Bilibili Video Subtitle Details funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Bilibili por separado.