域名計費值查詢
更新時間 2023-11-09 15:31:23
最近更新時間: 2023-11-09 15:31:23
分享文章
接口功能介紹
調用本接口查詢不同運營商的計費詳情
使用說明
單個用戶一分鐘限制調用10000次,并發不超過100。
接口詳情
請求方式:post
請求路徑:/statistics/query-billing-data
請求參數
| 參數名 | 類型 | 名稱 | 是否必填 | 說明 |
|---|---|---|---|---|
| start_time | int | 開始時間戳 | 是 | 起始時間,時間戳(秒)。 |
| end_time | int | 結束時間戳 | 是 | 結束時間,時間戳(秒)。 |
| isp | list | 運營商編碼列表 | 否 | 運營商編碼,不傳默認所有運營商,可多個運營商編碼,作為統計篩選項,點擊查看運營商及對應的運營商編碼。 |
響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
| code | int | 狀態碼 |
| message | string | 描述信息 |
| result | dict | 返回結果 |
| result.domains | list(string) | 域名列表 |
| result.top_95_bandwidth | dict | 95峰值數據 |
| result.top_95_bandwidth.timestamp | int | 95峰值時間戳,單位秒 |
| result.top_95_bandwidth.bandwidth | float | 95峰值帶寬,單位: bps |
| result.top_bandwidth | dict | 峰值數據 |
| result.top_bandwidth.timestamp | int | 峰值時間戳,單位秒 |
| result.top_bandwidth.bandwidth | float | 峰值帶寬,單位: bps |
示例
請求路徑://cdnapi-global.ctapi.daliqc.cn/statistics/query-billing-data
請求示例
{
"start_time": "1662413100",
"end_time": "1662413700",
"isp": [
"001"
]
}
正確響應示例
{
"code": 100000,
"message": "success",
"result": {
"domains": [
"daliqc.cn;daliqc.cn1"
],
"top_95_bandwidth": {
"bandwidth": 146228751259.23,
"timestamp": 1662413700
},
"top_bandwidth": {
"bandwidth": 146228751259.23,
"timestamp": 1662413700
}
}
}
錯誤碼請參考:參數code和message含義