Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Bilibili Video Captions

API-Dokumentation
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.

Preis
$0.014286USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
3 erforderlich · 0 optional

Playground

Eingabe
Bilibili Video ID (BVID).
Bilibili AID.
Bilibili CID.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Bilibili$0.014286 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON

Anleitungen:Best Bilibili API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Bilibili Video Captions API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/bilibili/video-caption mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Bilibili Video Captions API?

$0.014286 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Bilibili Video Captions API?

Erforderlich: bvid (string), aid (string) und cid (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Bilibili Video Captions API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Bilibili-Entwicklerkonto oder einen API-Schlüssel?

Nein. Bilibili Video Captions läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Bilibili API beantragen.