urlstring필수
Video URL
https://api.sandbase.ai/v1/api/bilibili/web/video-play-infoReturns playback stream information, including video stream URLs, MIME types, and frame rates, for a single Bilibili video URL.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Video URL |
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
}
| Field | Meaning |
|---|---|
dash.video[].baseUrl / base_url | Main URL of a video stream. backupUrl and backup_url list alternate URLs for the same stream. |
dash.video[].codecs / mimeType / frameRate | Codec string, MIME type and frame rate of a video stream. For example avc1.64001F, video/mp4 and 30.000. |
dash.video[].width / height / bandwidth | Frame size and bandwidth value of a video stream. |
dash.audio[].baseUrl / codecs / mimeType | Main URL, codec and MIME type of an audio stream. Audio streams are listed apart from video streams. |
dash.duration / timelength | Length of the video. dash.duration is 2177 and timelength is 2176490 in this response. |
accept_quality / accept_description | Quality 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 / format | Quality code and format name of the streams in this response. Here they are 32 and flv480. |
dash.video[].SegmentBase / segment_base | Byte ranges for the initialization data and the index (initialization, index_range) of a stream. |
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.url, so it has no pagination.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
urlstring필수Video URL
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| 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 |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/bilibili/web/video-play-info에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: url (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Bilibili Single Video Play Info은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Bilibili API 액세스를 별도로 신청할 필요는 없습니다.