xiaodian.cpsdata.live.getlivelist

  • 免费
  • 需要授权
  • 结果不加密
获取有佣金直播间的信息

公共参数

名称 类型 必选 描述
app_key Long 接入时申请的app_key
method String 接口名称
access_token String Oauth2.0授权获得的access_token
sign String 对 API 调用参数(除sign外)进行 md5 加密获得。参数的顺序为字母表的顺序
timestamp Long 时间戳,使用Unix时间戳格式
format String 响应格式。默认为json格式,固定
sign_method String 参数的加密方法选择,当前只支持Md5
version String API协议版本,固定值为:1.0

输入参数

名称 类型 必选 描述 示例值
liveCpsListQuery
Object LiveCpsListQuery
feedbackUid
Number 第三方平台唯一id(第三方平台的用户ID,当成交的时候这个id会随订单反馈给第三方平台)
shareRate
Number 分销比例 0~100 整型
page
Number 页数
pageSize
Number pageSize
actorIds
String[]
actorId
String

返回参数

名称 类型 描述 默认值
status
Object 请求状态
code
String
msg
String
result
Object 结果
data
Object[] 返回数据
data_object
Object
h5Link
String 蘑菇街H5链接
visitorCount
Number 直播间热度
link
String 蘑菇街APP链接
bgImg
String 主播背景图
realOnlineCount
Number 当前在线人数
avatar
String 主播封面图
userName
String 主播名称
roomId
Number 直播间ID
actorGoodList
Object[]
actorGoodList_object
Object
cover
String 商品图片
price
String 商品价格
goodLink
String 商品链接
title
String 商品标题
actorId
String 主播id
intro
String 直播间名称
actorDefinitions
Object[] 直播同步画面信息
actorDefinitions_object
Object
template
String 画质 ORI-原画 HD-高清 SD-标清 LD-流畅
liveUrl
String 直播流
width
String
label
String 画质描述 ——原画 、高清 、标清 、流畅
height
String
startTime
Number 直播开始时间
xcxLink
String 蘑菇街小程序链接
liveStatus
Number 直播状态 1-直播中 2-直播结束
itemTotal
Number 商品总数
advanceNotice
Object[] 主播预告信息
startTime
Number 预告开播时间
userName
String 主播名
liveStatus
Number 直播状态 0-预告
shareImg
String 主播分享图 1125*1125px
success
Boolean 是否成功 true

请求参数示例

返回示例

1).
{ "status": { "code": "0000000", "msg": "正常" }, "result": { "data": [ { "h5Link": "https://h5.mogu.com/live-mona/live.html?roomId=11894779&actorId=12yr75k&acm=3.ms.0_14_1e5w6m.0.99756-68958-95369.uA6FXs85Rlq7H.sd_117-xid_2029-t_uA6FXs85Rlq7H-xm_1e5w6m-sh_0-lc_302-x_12yr75k-dm1_1000-idx_0&cparam=MTU5NzgyMjMyOF8xMWtfOWVkZWJlYzYyMGU4ZGM3OTZlNTUwZWY2MjMwNmY2MDBfMzAyXzBfMF80OF84OTY1NDExMl8wXzBfNjU4XzJfMjBfZmJpZC0zMjkxMDk5NC54aWQtMTAzODAzLnJpZC0xMTg5NDc3OQ&shareParams=eyJtYXN0ZXJCYXNlUmF0ZSI6MTAwLCJtYXN0ZXJSYXRlIjoxMDAsInNoYXJlUmF0ZSI6NX0&endAutoBack=1&from=livecps_302_103803_32910994", "visitorCount": 157432, "link": "mgj://mglive/enterLiveRoom?actorId=12yr75k&acm=3.ms.0_14_1e5w6m.0.99756-68958-95369.uA6FXs85Rlq7H.sd_117-xid_2029-t_uA6FXs85Rlq7H-xm_1e5w6m-sh_0-lc_302-x_12yr75k-dm1_1000-idx_0&cparam=MTU5NzgyMjMyOF8xMWtfOWVkZWJlYzYyMGU4ZGM3OTZlNTUwZWY2MjMwNmY2MDBfMzAyXzBfMF80OF84OTY1NDExMl8wXzBfNjU4XzJfMjBfZmJpZC0zMjkxMDk5NC54aWQtMTAzODAzLnJpZC0xMTg5NDc3OQ&shareParams=eyJtYXN0ZXJCYXNlUmF0ZSI6MTAwLCJtYXN0ZXJSYXRlIjoxMDAsInNoYXJlUmF0ZSI6NX0&endAutoBack=1&from=livecps_302_103803_32910994", "bgImg": "http://s5.mogucdn.com/mlcdn/c45406/191231_39515b0a2cbe8hf3f4le7c9il807j_1242x1242.jpg", "realOnlineCount": 575, "avatar": "https://s11.mogucdn.com/mlcdn/c45406/190913_3ba8gk0a1i8060a8434l3bbed5l26_400x400.jpg", "userName": "慕Mu宝", "roomId": 11894779, "shareImg": "https://s11.mogucdn.com/mlcdn/c45406/190913_3ba8gk0a1i8060a8434l3bbed5l26_400x400.jpg", "actorGoodList": [ { "cover": "https://s5.mogucdn.com/mlcdn/c45406/200803_24b76b3ej586i7hd3153i5liejlg3_750x750.jpg", "h5Link": "https://h5.mogu.com/live-mona/live.html?roomId=11894779&actorId=12yr75k&acm=3.ms.0_14_1e5w6m.0.99756-68958-95369.uA6FXs85Rlq7H.sd_117-xid_2029-t_uA6FXs85Rlq7H-xm_1e5w6m-sh_0-lc_302-x_12yr75k-dm1_1000-idx_0&cparam=MTU5NzgyMjMyOF8xMWtfOWVkZWJlYzYyMGU4ZGM3OTZlNTUwZWY2MjMwNmY2MDBfMzAyXzBfMF80OF84OTY1NDExMl8wXzBfNjU4XzJfMjBfZmJpZC0zMjkxMDk5NC54aWQtMTAzODAzLnJpZC0xMTg5NDc3OQ&shareParams=eyJtYXN0ZXJCYXNlUmF0ZSI6MTAwLCJtYXN0ZXJSYXRlIjoxMDAsInNoYXJlUmF0ZSI6NX0&endAutoBack=1&from=livecps_302_103803_32910994", "price": "¥69.9", "adPrice": "0.3", "goodLink": "mgj://mglive/enterLiveRoom?roomId=11894779&actorId=12yr75k&itemId=1mv9ejc&acm=3.lb.1_4_1mv9ejc.0..A69Mas85Rlqe4.x_12yr75k-sd_132-dm1_1000-xid_2029-xm_1e5w6m-rx_uA6FXs85Rlq7H-idx_0", "title": "2366-新款百搭桔橘色网面镂空透气超火ins潮鞋" }, { "cover": "https://s5.mogucdn.com/mlcdn/c45406/200809_1i31cj25ih4la46b84b3fgbil7064_3024x3024.jpg", "h5Link": "https://h5.mogu.com/live-mona/live.html?roomId=11894779&actorId=12yr75k&acm=3.ms.0_14_1e5w6m.0.99756-68958-95369.uA6FXs85Rlq7H.sd_117-xid_2029-t_uA6FXs85Rlq7H-xm_1e5w6m-sh_0-lc_302-x_12yr75k-dm1_1000-idx_0&cparam=MTU5NzgyMjMyOF8xMWtfOWVkZWJlYzYyMGU4ZGM3OTZlNTUwZWY2MjMwNmY2MDBfMzAyXzBfMF80OF84OTY1NDExMl8wXzBfNjU4XzJfMjBfZmJpZC0zMjkxMDk5NC54aWQtMTAzODAzLnJpZC0xMTg5NDc3OQ&shareParams=eyJtYXN0ZXJCYXNlUmF0ZSI6MTAwLCJtYXN0ZXJSYXRlIjoxMDAsInNoYXJlUmF0ZSI6NX0&endAutoBack=1&from=livecps_302_103803_32910994", "price": "¥59", "adPrice": "0.3", "goodLink": "mgj://mglive/enterLiveRoom?roomId=11894779&actorId=12yr75k&itemId=1mvdcdg&acm=3.lb.1_4_1mvdcdg.0..A69Mas85Rlqf5.x_12yr75k-sd_132-dm1_1000-xid_2029-xm_1e5w6m-rx_uA6FXs85Rlq7H-idx_0", "title": "6319老爹凉鞋" }, { "cover": "https://s5.mogucdn.com/mlcdn/c45406/200704_0e394c070483cld791di8iliel917_650x651.jpg", "h5Link": "https://h5.mogu.com/live-mona/live.html?roomId=11894779&actorId=12yr75k&acm=3.ms.0_14_1e5w6m.0.99756-68958-95369.uA6FXs85Rlq7H.sd_117-xid_2029-t_uA6FXs85Rlq7H-xm_1e5w6m-sh_0-lc_302-x_12yr75k-dm1_1000-idx_0&cparam=MTU5NzgyMjMyOF8xMWtfOWVkZWJlYzYyMGU4ZGM3OTZlNTUwZWY2MjMwNmY2MDBfMzAyXzBfMF80OF84OTY1NDExMl8wXzBfNjU4XzJfMjBfZmJpZC0zMjkxMDk5NC54aWQtMTAzODAzLnJpZC0xMTg5NDc3OQ&shareParams=eyJtYXN0ZXJCYXNlUmF0ZSI6MTAwLCJtYXN0ZXJSYXRlIjoxMDAsInNoYXJlUmF0ZSI6NX0&endAutoBack=1&from=livecps_302_103803_32910994", "price": "¥19.9", "adPrice": "0.1", "goodLink": "mgj://mglive/enterLiveRoom?roomId=11894779&actorId=12yr75k&itemId=1mun0pc&acm=3.lb.1_4_1mun0pc.0..A69Mas85Rlqf6.x_12yr75k-sd_132-dm1_1000-xid_2029-xm_1e5w6m-rx_uA6FXs85Rlq7H-idx_0", "title": "清仓产品已直播间展示为准品质女鞋" } ], "itemTotal": 44, "actorId": "12yr75k", "intro": "鞋子大清仓。", "actorDefinitions": [ { "template": "ORI", "liveUrl": "https://hwtliveplay.mogujielive.com/live/89654112_11894779.flv", "width": "1080", "label": "原画", "height": "1920" }, { "template": "HD", "liveUrl": "https://hwtliveplay.mogujielive.com/live/89654112_11894779_SD2.flv", "width": "720", "label": "高清", "height": "1280" }, { "template": "SD", "liveUrl": "https://hwtliveplay.mogujielive.com/live/89654112_11894779_SD.flv", "width": "720", "label": "标清", "height": "1280" }, { "template": "LD", "liveUrl": "https://hwtliveplay.mogujielive.com/live/89654112_11894779_LD.flv", "width": "480", "label": "流畅", "height": "854" } ], "startTime": 1597818453, "advanceNotice": [], "xcxLink": "/pages/live/room/index?roomId=11894779&actorUserId=12yr75k&acm=3.ms.0_14_1e5w6m.0.99756-68958-95369.uA6FXs85Rlq7H.sd_117-xid_2029-t_uA6FXs85Rlq7H-xm_1e5w6m-sh_0-lc_302-x_12yr75k-dm1_1000-idx_0&cparam=MTU5NzgyMjMyOF8xMWtfOWVkZWJlYzYyMGU4ZGM3OTZlNTUwZWY2MjMwNmY2MDBfMzAyXzBfMF80OF84OTY1NDExMl8wXzBfNjU4XzJfMjBfZmJpZC0zMjkxMDk5NC54aWQtMTAzODAzLnJpZC0xMTg5NDc3OQ&shareParams=eyJtYXN0ZXJCYXNlUmF0ZSI6MTAwLCJtYXN0ZXJSYXRlIjoxMDAsInNoYXJlUmF0ZSI6NX0&endAutoBack=1&from=livecps_302_103803_32910994", "liveStatus": 1 } ] }, "success": true }

异常示例