bvidstringobbligatorio
Bilibili Video ID (BVID).
https://api.sandbase.ai/v1/api/bilibili/video-captionGet 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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
aid | string | Yes | Bilibili AID. |
bvid | string | Yes | Bilibili Video ID (BVID). |
cid | string | Yes | Bilibili CID. |
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…"
}
]
}
| Field | Meaning |
|---|---|
data[] | One caption track per item. The list has one entry for each language available for the video part. |
data[].lan | Language code of the track, such as zh-CN, zh-Hans, or zh-Hant. |
data[].lan_doc | Display name of the language, such as 中文(简体) for Simplified Chinese. |
data[].subtitle_url | URL of the subtitle file for this track. The file is JSON and the URL carries an auth_key query parameter. |
bvid, aid, and cid. They must describe the same video part.aid from a bvid.cid of each part of a video.subtitle_url values include an auth_key, so fetch the subtitle file soon after you receive the response.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/video-caption" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"aid": "80433022",
"cid": "137649199",
"bvid": "BV1GJ411x7h7"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
bvidstringobbligatorioBilibili Video ID (BVID).
aidstringobbligatorioBilibili AID.
cidstringobbligatorioBilibili CID.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Bilibili Video CaptionsQuesta API Bilibili | $0.014286 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/bilibili/video-caption con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.014286 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: bvid (string), aid (string) e cid (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Bilibili Video Captions funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Bilibili.