Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Bilibili Video Captions

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.

मूल्य
$0.014286USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
3 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Bilibili Video ID (BVID).
Bilibili AID.
Bilibili CID.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

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.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Bilibili$0.014286 प्रति कॉलJSON
Bilibili$0.001 प्रति कॉलJSON
Bilibili$0.001 प्रति कॉलJSON
Bilibili$0.001 प्रति कॉलJSON
Bilibili$0.001 प्रति कॉलJSON
Bilibili$0.001 प्रति कॉलJSON

गाइड्स:Best Bilibili API in 2026: Pricing Compared

प्रश्न

FAQ

Bilibili Video Captions API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/bilibili/video-caption पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Bilibili Video Captions API की लागत कितनी है?

$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Bilibili Video Captions API कौन-से parameters स्वीकार करती है?

आवश्यक: bvid (string), aid (string) और cid (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Bilibili Video Captions API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Bilibili developer account या API key चाहिए?

नहीं। Bilibili Video Captions SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Bilibili API access के लिए आवेदन करने की आवश्यकता नहीं है।