结束直播
https://member.bilibili.com/liveopen/fn/live/thirdPartyLive/endLive
开放能力 / 直播能力 / 开播能力嵌入(一键开播) / 开播接口列表
用户通过一键开播后,调用该接口后会关闭对应的直播
body 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| biz_code | string | 是 | 从对接运营处获取的业务唯一固定码 |
| open_id | string | 是 | 用户唯一ID |
| live_key | string | 是 | 开播后返回的直播live_key |
| third_live_uuid | string | 是 | 本次开播调用grantUrl的时候给到的唯一id |
响应字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| open_id | string | 是 | 直播用户唯一ID |
| end_time | int64 | 是 | 停止直播的时间戳(UTC+8) |
调用方式
javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "53", "query": {…}, "body": {…} }
// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "53", "dryRun": true }
// 生成完整调用代码
bili_codegen { "ref": "53", "lang": "python" }官方请求示例
bash
curl --location --request POST 'https://member.bilibili.com/liveopen/fn/live/thirdPartyLive/endLive' \
--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 'Host: member.bilibili.com' \
--header 'Connection: keep-alive'
--data-raw '{"biz_code": "","open_id": "","live_key": "","third_live_uuid": ""}'原始文档:053_结束直播.md(2053 字节)。用 bili_docs_get { "ref": "53" } 读全文,或用 bili_api_spec { "ref": "53" } 取结构化规格。