主播分析
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
https://developer.toutiao.com/api/apps/v1/data_analysis/query_live_with_short_id
使用限制
错误码
错误码 | 描述 | 排查建议 |
---|---|---|
10002 | 参数不合法或缺少参数 | 检查参数合法性 |
10001 | 系统错误 | 建议重试 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://developer.toutiao.com/api/apps/v1/data_analysis/query_live_with_short_id' \
--header 'access-token;' \
--header 'content-type: application/json' \
--data-raw '{
"start_time": 1679760000,
"end_time": 1684857600,
"host_name": "douyin",
"aweme_short_id_list": [],
"page_no": 1,
"page_size": 1
}'
响应示例响应示例
200 - 示例 1
{
"data": {
"ShortDataList": [
{
"Data": {
"PayCustomerCnt": 0,
"PayOrderAmount": 0,
"RoomDuration": 0,
"RoomHighestOnlineCount": 0,
"RoomNewFans": 0,
"RoomSessionCnt": 0,
"RoomWatchRate": 0,
"OrderAmount": 0
},
"ShortInfo": {
"AccountType": 0,
"Avat": "string",
"AwemeShortID": "string",
"Nickname": "string"
}
}
],
"Total": 0
},
"err_msg": "string",
"err_no": 0
}
请求参数
Header 参数
content-type
string
必需
access-token
string
必需
Body 参数application/json