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

Bilibili Video Captions

Dokumentacja API
https://api.sandbase.ai/v1/api/bilibili/video-caption

Get caption data for a Bilibili video segment identified by BVID, AID, and CID. Use it to obtain subtitles for transcript extraction, accessibility review, or language-focused content analysis.

Cena
$0.014286USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
3 wymaganych · 0 opcjonalnych

Playground

Wejście
Bilibili Video ID (BVID).
Bilibili AID.
Bilibili CID.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

Bilibili Video Captions API

Returns the list of caption tracks available for one Bilibili video part. Each track has a language code, a language name, and a URL to the subtitle file. You send bvid, aid, and cid together.

Use cases

  • Download the subtitle file for each language to build a transcript of a Bilibili video.
  • Check which caption languages a video offers before you plan translation or review work.
  • Collect Simplified and Traditional Chinese tracks to compare wording for language analysis.
  • Audit whether a video has captions for accessibility review.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/video-caption" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bvid": "BV1GJ411x7h7", "aid": "80433022", "cid": "137649199"}'

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

Parameters

NameTypeRequiredDescription
aidstringYesBilibili AID.
bvidstringYesBilibili Video ID (BVID).
cidstringYesBilibili CID.

Example response

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

{
  "data": [
    {
      "lan": "zh-CN",
      "lan_doc": "中文(中国)",
      "subtitle_url": "https://aisubtitle.hdslb.com/bfs/subtitle/662b660a420431045b483f9b560057c262539b…"
    }
  ]
}

Response fields

FieldMeaning
data[]One caption track per item. The list has one entry for each language available for the video part.
data[].lanLanguage code of the track, such as zh-CN, zh-Hans, or zh-Hant.
data[].lan_docDisplay name of the language, such as 中文(简体) for Simplified Chinese.
data[].subtitle_urlURL of the subtitle file for this track. The file is JSON and the URL carries an auth_key query parameter.

Notes

  • All three parameters are required: bvid, aid, and cid. They must describe the same video part.
  • Use Bilibili BV to AID Converter to get the aid from a bvid.
  • Use Bilibili Video Parts to find the cid of each part of a video.
  • The subtitle_url values include an auth_key, so fetch the subtitle file soon after you receive the response.

Pricing

$0.014286 per successful call. Failed calls 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.014286 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 Captions?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/bilibili/video-caption 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 Captions?

$0.014286 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Bilibili Video Captions?

Wymagane: bvid (string), aid (string) i cid (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Bilibili Video Captions?

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