Bbili-open-mcpMCP
★

获取直播间流信息

POST#54api LIVE_STREAM_DATA
https://member.bilibili.com/arcopen/fn/live/room/stream

开放能力 / 直播能力 / 直播视频流相关

查询和获取直播间的直播流信息 该接口为限定接口,仅提供给合作方使用,如需使用请进行商业前期对接**

响应字段

名称类型必填说明
areaobject否直播间所属分区信息
area.area_id_namestring否分区名称(如:英雄联盟)
showobject否直播间展示信息
show.room_idint否直播间ID
show.titlestring否直播间标题
streamobject否直播流信息对象
stream.xxxxxobject否xxxxx为数值,根据直播间情况可能会缺失某些画质,取值:150:流畅、250:高清、400:超清、10000:原画
stream.xxxxx.descstring否流描述(如:原画)
stream.xxxxx.flv_urlstring否FLV格式的流URL
stream.xxxxx.hls_urlstring否HLS格式的流URL

调用方式

javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "54", "query": {…}, "body": {…} }

// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "54", "dryRun": true }

// 生成完整调用代码
bili_codegen { "ref": "54", "lang": "python" }

官方请求示例

bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/live/room/stream' \
--header 'Accept: application/json' \
--header 'Access-Token: a24e56a0fc0093668bca0f3a15410ea2' \
--header 'Authorization: 950a03adb287904a93bcffd7e4abf57a4c2ef0608bf1f95f3bcb2c278ae532be' \
--header 'X-Bili-Accesskeyid: 93a0f774fae84e6c' \
--header 'X-Bili-Content-Md5: d41d8cd98f00b204e9800998ecf8427e' \
--header 'X-Bili-Signature-Method: HMAC-SHA256' \
--header 'X-Bili-Signature-Nonce: 1730185575446751000' \
--header 'X-Bili-Signature-Version: 2.0' \
--header 'X-Bili-Timestamp: 1730185575' \
--header 'Content-Type: application/json' \
--header 'Host: member.bilibili.com' \
--header 'Connection: keep-alive'

原始文档:054_获取直播间流信息.md(6125 字节)。用 bili_docs_get { "ref": "54" } 读全文,或用 bili_api_spec { "ref": "54" } 取结构化规格。