Skip to content

直播间设备统计

请求路径

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://gateway.nuoyunapi.com/Api/RoomStat/deviceStatList/2.0.0
  • 频率限制:10秒100次

请求参数

参数必选类型描述
room_idinteger直播间ID

请求示例

json
{
    "room_id": 123456
}

响应参数

参数必选类型描述
codeinteger状态码:200-成功,400-失败
msgstring提示信息
dataobject消息内容

data 参数结构

参数必选类型描述
pcintegerPC端观众数量
androidintegerAndroid设备观众数量
iosintegeriOS设备观众数量
otherinteger其他设备观众数量

响应示例

json
{
    "code": 200,
    "data": {
        "pc": 245,
        "android": 189,
        "ios": 156,
        "other": 23
    },
    "msg": "Success"
}