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

Bilibili Single Video Play Info

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

Returns playback stream information, including video stream URLs, MIME types, and frame rates, for a single Bilibili video URL.

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

प्लेग्राउंड

इनपुट
Video URL
आउटपुटतैयार

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

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

API README

Bilibili Single Video Play Info API

Returns playback stream information for one Bilibili video. It includes DASH video and audio stream URLs, codecs, MIME types, frame rates, and the quality levels on offer. The input is a Bilibili video page url.

Use cases

  • Pull direct DASH video and audio stream URLs for a Bilibili video.
  • Compare the codecs, resolutions and bandwidth of each available video stream.
  • List the quality levels a video offers, such as 4K or 1080P.
  • Check MIME types and frame rates before you hand a stream to an external player.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/video-play-info" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.bilibili.com/video/BV1S5uKzzE4r"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesVideo URL

Example response

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

{
  "accept_description": [
    "超清 4K"
  ],
  "accept_format": "hdflv2,hdflv2,flv,flv720,flv480,mp4",
  "accept_quality": [
    120
  ],
  "auto_qn_resp": {
    "dyeid": "32720d4a99eabdba00eb79966ae98d09"
  },
  "cur_language": "",
  "cur_production_type": 0,
  "dash": {
    "audio": [
      {
        "SegmentBase": {
          "Initialization": "0-825",
          "indexRange": "826-6089"
        },
        "backupUrl": [
          "https://upos-sz-mirrorhw.bilivideo.com/upgcxcode/81/89/30966218981/30966218981-1…"
        ],
        "backup_url": [
          "https://upos-sz-mirrorhw.bilivideo.com/upgcxcode/81/89/30966218981/30966218981-1…"
        ],
        "bandwidth": 75307,
        "baseUrl": "https://upos-sz-mirrorhwo1.bilivideo.com/upgcxcode/81/89/30966218981/30966218981…",
        "base_url": "https://upos-sz-mirrorhwo1.bilivideo.com/upgcxcode/81/89/30966218981/30966218981…",
        "codecid": 0,
        "codecs": "mp4a.40.2",
        "frameRate": "",
        "frame_rate": "",
        "height": 0,
        "id": 30216
      }
    ],
    "dolby": {
      "audio": null,
      "type": 0
    },
    "duration": 2177,
    "flac": null,
    "minBufferTime": 1.5,
    "min_buffer_time": 1.5,
    "video": [
      {
        "SegmentBase": {
          "Initialization": "0-929",
          "indexRange": "930-6193"
        },
        "backupUrl": [
          "https://upos-sz-estgoss.bilivideo.com/upgcxcode/81/89/30966218981/30966218981-1-…"
        ],
        "backup_url": [
          "https://upos-sz-estgoss.bilivideo.com/upgcxcode/81/89/30966218981/30966218981-1-…"
        ],
        "bandwidth": 261921,
        "baseUrl": "https://upos-sz-estgoss.bilivideo.com/upgcxcode/81/89/30966218981/30966218981-1-…",
        "base_url": "https://upos-sz-estgoss.bilivideo.com/upgcxcode/81/89/30966218981/30966218981-1-…",
        "codecid": 7,
        "codecs": "avc1.64001F",
        "frameRate": "30.000",
        "frame_rate": "30.000",
        "height": 426,
        "id": 32
      }
    ]
  },
  "format": "flv480",
  "from": "local",
  "high_format": null,
  "last_play_cid": 0,
  "last_play_time": 0
}

Response fields

FieldMeaning
dash.video[].baseUrl / base_urlMain URL of a video stream. backupUrl and backup_url list alternate URLs for the same stream.
dash.video[].codecs / mimeType / frameRateCodec string, MIME type and frame rate of a video stream. For example avc1.64001F, video/mp4 and 30.000.
dash.video[].width / height / bandwidthFrame size and bandwidth value of a video stream.
dash.audio[].baseUrl / codecs / mimeTypeMain URL, codec and MIME type of an audio stream. Audio streams are listed apart from video streams.
dash.duration / timelengthLength of the video. dash.duration is 2177 and timelength is 2176490 in this response.
accept_quality / accept_descriptionQuality codes (such as 120, 112, 80) and their text labels (such as 超清 4K).
support_formats[].quality / display_desc / format / codecs[]Each quality level on offer. It has a short label, a format name and a list of codecs for that level.
quality / formatQuality code and format name of the streams in this response. Here they are 32 and flv480.
dash.video[].SegmentBase / segment_baseByte ranges for the initialization data and the index (initialization, index_range) of a stream.

Notes

  • Pass the full video page link in url, for example https://www.bilibili.com/video/BV1S5uKzzE4r.
  • dash.video[] can hold several entries with the same id but different codecid and codecs values, so match on codec as well.
  • The request takes only url, so it has no pagination.
  • To get the title, author and stats of the same video, call Bilibili Video Details.

Pricing

$0.001 per successful call. Failed calls 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 Single Video Play Info API का उपयोग कैसे करें?

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

Bilibili Single Video Play Info API की लागत कितनी है?

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

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

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

Bilibili Single Video Play Info API क्या लौटाती है?

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

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

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