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

Bilibili Video Subtitle Details

API दस्तावेज़
https://api.sandbase.ai/v1/api/bilibili/web/video-subtitle

Returns subtitle data for a specified Bilibili video based on its video ID and CID. Helps retrieve available caption tracks and related metadata.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
2 आवश्यक · 0 वैकल्पिक
100 निःशुल्क कॉल / दिनपहली 100 कॉल प्रति दिन निःशुल्क (organization के लिए साझा) · 00:00 UTC पर रीसेट होता है। उसके बाद प्रति कॉल भुगतान करें।

प्लेग्राउंड

इनपुट
Video id
Video cid
आउटपुटउदाहरण
प्रतिक्रियाoutputs · 1.0 KB · 25 पंक्तियाँ
[
  {
    "data": {
      "allow_submit": false,
      "font_size_type": 0,
      "lan": "",
      "lan_doc": "",
      "subtitle_position": null,
      "subtitles": [
        {
          "ai_status": 2,
          "ai_type": 0,
          "id": 1689850260387946200,
          "id_str": "1689850260387946240",
          "is_lock": false,
          "lan": "ai-zh",
          "lan_doc": "中文",
          "subtitle_url": "//aisubtitle.hdslb.com/bfs/ai_subtitle/prod/1140060817394522840048445829058a24de68ec57ef3a7c4ccbbd139b?auth_key=1787218445-49f99e66f1fd4e339748e2caae8ae793-0-210c99e3de5bfc93303f4ccf3635c042",
          "subtitle_url_v2": "//subtitle.bilibili.com/S%13%1BP.%1D%28%29X%2CR%5Ej%1F%25w%0E%02H%5EHO4%14%7B4%08K@%3C%7B%00M%0B%0A%1AM%08%056N6$%0C0&%02%1E%01%09%0E%1A2V~%15AX%16EYSA_%0Cw%1A%5C%5Et%17TRYXQV%5DYQ%0FzvMa3%5COJ%1CJM3%1Az%13%10%0E%15%12%5E%08D%0B%5C%2CL%0D%5Du%16%02?auth_key=1787218445-49f99e66f1fd4e339748e2caae8ae793-0-210c99e3de5bfc93303f4ccf3635c042",
          "type": 1
        }
      ]
    }
  }
]

उदाहरण

प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।

API README

Bilibili Video Subtitle Details API

List the subtitle tracks of a Bilibili video, including AI-generated Chinese subtitles, with a download URL for each track. Needs the video's aid and cid.

Use cases

  • Get a video's transcript for summaries or search.
  • Translate or index Bilibili videos by their spoken content.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/video-subtitle" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"a_id": "114006081739452", "c_id": "28400484458"}'

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

Parameters

NameTypeRequiredDescription
a_idstringYesVideo id
c_idstringYesVideo cid

Example response

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

{
  "allow_submit": false,
  "font_size_type": 0,
  "lan": "",
  "lan_doc": "",
  "subtitle_position": null,
  "subtitles": [
    {
      "ai_status": 2,
      "ai_type": 0,
      "id": 1689850260387946240,
      "id_str": "1689850260387946240",
      "is_lock": false,
      "lan": "ai-zh",
      "lan_doc": "中文",
      "subtitle_url": "//aisubtitle.hdslb.com/bfs/ai_subtitle/prod/1140060817394522840048445829058a24de…",
      "subtitle_url_v2": "//subtitle.bilibili.com/S%13%1BP.%1D%28%29X%2CR%5Ej%1F%25w%0E%02H%5EHO4%14%7B4%0…",
      "type": 1
    }
  ]
}

Response fields

FieldMeaning
subtitles[]Subtitle tracks.
subtitles[].lan / lan_docLanguage code (ai-zh for AI Chinese) and its label.
subtitles[].subtitle_urlProtocol-relative URL of the subtitle JSON; prefix it with https:. The file has body[] entries with from, to (seconds) and content.
subtitles[].ai_type / ai_statusSet for AI-generated tracks.

Notes

  • Get aid and cid from a video detail API; one video has one cid per part.
  • Videos without subtitles return an empty subtitles list.

Pricing

$0.001 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Bilibili$0.001 प्रति कॉल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 Subtitle Details API का उपयोग कैसे करें?

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

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

$0.001 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।

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

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

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

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

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

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