查詢TOP_URL排行
更新時間 2023-11-09 11:21:25
最近更新時間: 2023-11-09 11:21:25
分享文章
接口描述:調用本接口查詢多個域名下URL范圍量排名,可按流量/請求數排名
請求方式:post
請求路徑:/statistics/query-top-url-data
使用說明:
- 單個用戶一分鐘限制調用10000次,并發不超過100;
- 單次查詢輸入域名的個數不能超過100個;
請求參數說明:
| 參數 | 類型 | 是否必傳 | 名稱 | 描述 |
|---|---|---|---|---|
| domain | list< string> | 是 | 域名列表 | 可多個域名,作為統計篩選項 |
| start_time | int | 是 | 開始時間戳 | 起始時間,時間戳(秒) |
| end_time | int | 是 | 結束時間戳 | 結束時間,時間戳(秒) |
| top_rank | int | 是 | 倒序取top_rank條數據 | 取值區間[1, 100] |
| http_code | list< string> | 否 | http狀態碼 | 可多個http狀態碼,作為統計篩選項,支持2XX/3XX/4XX/5XX,不傳默認所有狀態碼 |
| status | string | 否 | 命中狀態 | HIT或者MISS,作為統計篩選項,不傳默認所有命中狀態 |
| protocol | string | 否 | 是否合并協議 | 是否合并協議,true或者false,默認true |
| sort_type | string | 否 | 排序指標 | flow或者request,作為統計篩選項,不傳默認flow |
返回參數說明:
| 參數 | 類型 | 是否必傳 | 名稱及描述 |
|---|---|---|---|
| code | int | 是 | 狀態碼 |
| message | string | 是 | 描述信息 |
| result | list< object> | 否 | 統計結果 |
| result[*].rank | int | 否 | 排名 |
| result[*].channel | string | 否 | 域名 |
| result[*].uri | string | 否 | uri值 |
| result[*].port | string | 否 | url的端口 |
| result[*].protocol | string | 否 | 協議,合并協議時不返回 |
| result[*].request | long | 否 | 請求數 |
| result[*].flow | long | 否 | 流量 |
示例:
請求路徑://cdnapi-global.ctapi.daliqc.cn/statistics/query-top-url-data
示例1:
請求參數:
{
"domain": [
"test.daliqc.cn"
],
"start_time": 1669001453,
"end_time": 1669087853,
"top_rank": 2
}
返回結果:
{
"result": [
{
"request": 30036,
"port": "80",
"channel": "test.daliqc.cn",
"rank": 1,
"uri": "/123/637c1a5b/video/tos/cn/tt/567/",
"flow": 37873768442
},
{
"request": 102,
"port": "80",
"channel": "test.daliqc.cn",
"rank": 2,
"uri": "/123/637c1a5b/video/tos/cn/tt/56799/",
"flow": 27959264073
}
],
"code": 100000,
"message": "success"
}
錯誤碼請參考:參數code和message含義