组件详细数据
开发环境
开发环境
POST
https://developer.toutiao.com/api/apps/v1/data_analysis/query_component_with_detail
使用限制
错误码
错误码 | 描述 | 排查建议 |
---|---|---|
10002 | 参数不合法或缺少参数 | 检查参数合法性 |
10001 | 系统错误 | 建议重试 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://developer.toutiao.com/api/apps/v1/data_analysis/query_component_with_detail' \
--header 'access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"start_time": 1684598400,
"end_time": 1684598400,
"componentId_list": [],
"is_query_live": true,
"is_query_video": true,
"page_no": 1,
"page_size": 10
}'
响应示例响应示例
200 - 示例 1
{
"data": {
"LiveData": {
"Total": 0,
"DataList": [
{
"Data": {
"ComponentClickPv": 0,
"ComponentClickUv": 0,
"ComponentId": "string",
"ComponentName": "string",
"ComponentReportPv": 0,
"ComponentReportUv": 0,
"ComponentShowPv": 0,
"ComponentShowUv": 0
},
"RoomCreateTime": 0,
"RoomDuration": 0,
"RoomId": 0,
"ShortInfo": {
"AccountType": 0,
"Avat": "string",
"AwemeShortID": "string",
"Nickname": "string"
}
}
]
},
"VideoData": {
"DataList": [
{
"CompletionRate": 0,
"Data": {
"ComponentClickPv": 0,
"ComponentClickUv": 0,
"ComponentId": "string",
"ComponentName": "string",
"ComponentReportPv": 0,
"ComponentReportUv": 0,
"ComponentShowPv": 0,
"ComponentShowUv": 0
},
"ItemAddr": "string",
"ItemCover": "string",
"ItemCreateTime": 0,
"ItemDuration": 0,
"ItemId": 0,
"ItemTitle": "string",
"ItemVv": 0,
"ShortInfo": {
"AccountType": 0,
"Avat": "string",
"AwemeShortID": "string",
"Nickname": "string"
}
}
],
"Total": 0
}
},
"err_msg": "string",
"err_no": 0,
"log_id": "string"
}
请求参数
Header 参数
access-token
string
必需
Body 参数application/json
返回响应
修改于 2023-12-07 03:29:28