文档
测试

直播详情接口

GET
https://ugc.mp.autops.xyz/live/api/v2/app/live/detail?hash_id=Y1Rb5d1K&action=update

请求参数

参数名
类型
描述
必填
hash_id
string
示例:5O4r5k94132165416 或者 16827
必填
action
string
如果是要修改获取详情 就传"update" 如果是观看的直播间获取详情不传传空都可以
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:请求成功
必填
data
object
数据字典
必填
hash_id
string
示例:Y1Rb5d1K
必填
title
string
标题 示例:北京召开第381场疫情防控新闻发布会
必填
anchor_name
string
稿件来源: 例如-北京日报
必填
video_type
int
0:视频 1:音频
必填
screen_direction
int
1横屏 2竖屏
必填
describe_json
string
直播简介
必填
cover
string
封面
必填
status
int
直播状态 0:未开始 1:直播中 2:断流 3.直播已结束 4.回放
必填
audit_status
int
审核状态 0:待提交 1:审核中 2:审核拒绝 3:审核通过
必填
stream_name
string
示例:5cc70db2-2eb8-11ea-a5e3-dcf401e72500
可选
push_url
string
推流地址
必填
pull_url
string
拉流地址
必填
replay_url
string
回访地址
必填
start_time
string
示例:2022-07-24 16:11:16
可选
end_time
string
示例:2022-07-24 16:34:19
可选
begin_time
object
设定的直播开始时间
必填
stop_time
object
设定的直播结束时间
必填
live_num
int
示例:1810
必填
show_num
int
展示的直播观看人次
必填
appoint_type
int
垫片类型
必填
appoint_url
string
垫片地址
必填
allow_danmaku
int
允许弹幕设置 1允许 2不允许
必填
preset_comment
string
预配置弹幕
必填
live_period
string
直播时长-直播结束后会有
必填
created_at
string
示例:2022-07-24 12:56:27
必填
updated_at
string
示例:2022-07-24 12:56:27
必填
post_id
object
中青号稿件id
必填
share_url
string
分享地址
必填
twzb_status
int
0没有关联图文直播 1有图文直播
必填
twzb_id
int
图文直播id
必填

说明 / 示例

```language { "code": 0, "msg": "请求成功", "data": { "id": 16832, "hash_id": "Y1Rb5d1K", "channel_uid": "aafc2e09-6e6a-4c1e-9fbe-c26c6a5751a1", "channel_uname": "糖醋小排骨", "category": 1, "title": "北京召开第381场疫情防控新闻发布会", "anchor_name": "北京日报", "video_type": 0, "screen_direction": 1, "describe": "直播时间:2022年7月24日16:00\r\n直播简介:7月24日16:00,北京召开新冠疫情防控第381场新闻发布会,通报疫情最新情况。", "cover": "https://test-cyol-app.oss-cn-beijing.aliyuncs.com/video/2022/07/24/62dcd0e9a5d5e.jpg", "status": 2, "audit_status": 3, "stream_name": "5cc70db2-2eb8-11ea-a5e3-dcf401e72500", "push_url": "rtmp://pushstream.vcloud.cyol.com/zqlive/back-ebb8896080930bb4f7df919c782e330c?auth_key=1658724958-0-0-f81ae26c8172b63e148fc50e61e65a7c", "pull_url": "http://live.vcloud.cyol.com/zqlive/back-ebb8896080930bb4f7df919c782e330c.m3u8?auth_key=1658724958-0-0-669ce64c988068d2998fb00c091815d3", "cast_url": "", "replay_url": "http://sv.cyol.com/newrecord...abb.m3u8", "start_time": "2022-07-24 16:11:16", "end_time": "2022-07-24 16:34:19", "begin_time": null, "stop_time": null, "live_num": 1810, "show_num": 1810, "appoint_type": 1, "appoint_url": "", "allow_danmaku": 2, "preset_comment": "", "twzb_id": "", "twzb_status": 0, "created_at": "2022-07-24 12:56:27", "updated_at": "2022-08-09 14:18:17", "deleted_at": null, "post_id": null, "post_msg": null, "post_submit_at": null, "post_cancel_at": null, "post_checking_at": null, "live_period": "", "mp_user": { "id": 1, "user_id": "f583b333-5c21-491e-a349-8c4765c30745", "alias": "糖醋小排骨", "avatar": "https://test-cyol-app.cyol.com/2022/02/18/cyol-i-tluGKfSvGXQh.jpg?x-oss-process=image/resize,w_120", "mp_user_id": "aafc2e09-6e6a-4c1e-9fbe-c26c6a5751a1", "mp_name": "糖醋小排骨", "mp_logo": "https://test-cyol-app.cyol.com/2022/02/18/cyol-i-tluGKfSvGXQh.jpg?x-oss-process=image/resize,w_120", "mp_permission": "[\"1\",\"3\",\"5\",\"6\",\"7\",\"2\",\"4\"]", "mp_type": "2", "created_at": "2022-08-03 08:54:36", "updated_at": "2022-08-22 16:35:50", "deleted_at": null }, "describe_json": "[]", "domain": "https://test-cyol-app.oss-cn-beijing.aliyuncs.com/" } } ```