Bilibili Room Stream Data
https://api.sandbase.ai/v1/api/bilibili/web/live-videosReturns stream URLs and playback connection details for a specific Bilibili broadcast room. Filter using the unique room identifier.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 0 optional
Try the model
Playground
[
{
"data": {
"code": 0,
"data": {
"accept_quality": [
"4"
],
"current_qn": 10000,
"current_quality": 4,
"durl": [
{
"length": 0,
"order": 1,
"p2p_type": -1,
"stream_type": 0,
"url": "https://d1--ov-gotcha07.bilivideo.com/live-bvc/451596/live_1777360364_82518558.flv?expires=1787221949&len=0&oi=2886142013&pt=android&qn=10000&trid=100067cbee5073cdf00f61032720556a86c9&bmt=1&sigparams=cdn,expires,len,oi,pt,qn,trid,bmt&cdn=ov-gotcha07&sign=f25581d628277c9b07e784ca6c24d5cf&site=4d5b259e7440cb62fbaeda813faecd46&free_type=0&mid=0&sche=ban&trace=0&isp=other&rg=other&pv=other&info_source=origin&sk=a418dfe3b5d2a85dc2243b92a1dda63d&pp=&origin_bitrate=0&hdr_type=0&sl=1&suffix=origin&deploy_env=prod&hot_cdn=0&p2p_type=-1&score=1&source=puv3_onetier&media_type=0&vd=bc&src=puv3&order=1"
},
{
"length": 0,
"order": 2,
"p2p_type": -1,
"stream_type": 0,
"url": "https://d1--ov-gotcha07b.bilivideo.com/live-bvc/451596/live_1777360364_82518558.flv?expires=1787221949&len=0&oi=2886142013&pt=android&qn=10000&trid=100067cbee5073cdf00f61032720556a86c9&bmt=1&sigparams=cdn,expires,len,oi,pt,qn,trid,bmt&cdn=ov-gotcha07&sign=f25581d628277c9b07e784ca6c24d5cf&site=4d5b259e7440cb62fbaeda813faecd46&free_type=0&mid=0&sche=ban&trace=0&isp=other&rg=other&pv=other&info_source=origin&sk=a418dfe3b5d2a85dc2243b92a1dda63d&pp=&origin_bitrate=0&hdr_type=0&sl=1&suffix=origin&deploy_env=prod&hot_cdn=0&p2p_type=-1&score=1&source=puv3_onetier&media_type=0&vd=bc&src=puv3&order=2"
}
],
"quality_description": [
{
"desc": "原画",
"qn": 10000
}
]
},
"message": "OK",
"ttl": 1
}
}
]Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.0015 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- room_id
- string · required
Access
- Provider
- Bilibili
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/bilibili/web/live-videos
- Authentication
- Bearer API key
API README
Bilibili Room Stream Data API
Retrieve stream playback addresses and transmission parameters for a Bilibili room. Specify the target broadcast room using room_id.
Use cases
- Access direct media stream links for active Bilibili broadcasts.
- Integrate Bilibili stream playback into external player interfaces.
- Inspect streaming protocol types and transmission endpoints for a room.
Request
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/live-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"room_id": "1815229528"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
room_id | string | Yes | Live room ID |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"data": {
"durl": [
{
"p2p_type": -1,
"stream_type": 0,
"url": "https://d1--ov-gotcha07.bilivideo.com/live-bvc/538254/live_1777360364_82518558.f…"
}
]
}
}
Notes
- Supply the broadcast room identifier via
room_id.
Related APIs
- Bilibili Streaming Areas: Returns the complete list of streaming broadcast areas and categories on Bilibili.
- Bilibili BV to AID Converter: Converts a Bilibili BV identifier to its corresponding numeric AID value.
- Bilibili User Collection Folders: Returns the collection folders owned by a specific Bilibili user.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/bilibili/web/live-videos" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"room_id": "1815229528"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Bilibili Room Stream DataThis API Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Bilibili | $0.0015 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Bilibili Room Stream Data API?
Send a POST request to https://api.sandbase.ai/v1/api/bilibili/web/live-videos with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Bilibili Room Stream Data API cost?
$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the Bilibili Room Stream Data API accept?
Required: room_id (string). The Parameters table and the Playground on this page list every field.
What does the Bilibili Room Stream Data API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a Bilibili developer account or API key?
No. Bilibili Room Stream Data runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Bilibili API access separately.
