Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Bilibili Video Subtitle Details

Dokumentacja 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.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
2 wymaganych · 0 opcjonalnych
100 darmowych wywołań / dzieńPierwsze 100 wywołań dziennie za darmo (współdzielone w ramach organizacji) · Reset o 00:00 UTC. Później płatność za każde wywołanie.

Playground

Wejście
Video id
Video cid
WyjściePrzykład
Odpowiedźoutputs · 1.0 KB · 25 wierszy
[
  {
    "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
        }
      ]
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

README 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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON

Przewodniki:Best Bilibili API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Bilibili Video Subtitle Details?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/bilibili/web/video-subtitle z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Bilibili Video Subtitle Details?

$0.001 za wywołanie. Każda organizacja otrzymuje 100 bezpłatnych wywołań na dzień UTC, współdzielonych między kwalifikującymi się API SandBase, w tym to; potem każde wywołanie jest rozliczane według tej stawki z salda SandBase. Nie ma subskrypcji.

Jakie parametry przyjmuje API Bilibili Video Subtitle Details?

Wymagane: a_id (string) i c_id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Bilibili Video Subtitle Details?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Bilibili lub klucza API?

Nie. Bilibili Video Subtitle Details działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Bilibili.