bvidstringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
bvidstringwajibBilibili Video ID (BVID).
aidstringwajibBilibili AID.
cidstringwajibBilibili CID.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Bilibili Video CaptionsAPI ini Bilibili | $0.014286 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/bilibili/video-caption dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.014286 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: bvid (string), aid (string) dan cid (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Bilibili Video Captions berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Bilibili secara terpisah.