文档
测试

地区用量

POST
http://47.75.9.94:2222/api/v1/cdn/web/stats/region/flows

请求参数

参数名
类型
描述
必填
domain
json
域名
必填
from
int
开始时间戳
必填
to
int
结束时间戳
必填
interval
int
时间粒度
必填

响应参数

参数名
类型
描述
必填
country
string
国家
必填
pv
int
访问次数
必填
netOut
int
用量(bytes)
必填
percent
float
百分比(小数)
必填

说明 / 示例

请求示例 ``` { "domain":["www.163.com","163.com"], "from":1627142400000, "to":1627747200000, "interval":5 } ``` 返回示例 ``` { "status": 200, "timestamp": 1627823393, "message": "success", "data": [ { "pv": "442", "country": "越南", "netOut": "2735764", "percent": 0 }, { "pv": "331", "country": "爱尔兰", "netOut": "2340959", "percent": 0 }, { "pv": "427", "country": "西班牙", "netOut": "2699808", "percent": 0 }, { "pv": "168", "country": "德国", "netOut": "1123243", "percent": 0 }, { "pv": "2", "country": "印度尼西亚", "netOut": "11806", "percent": 0 }, { "pv": "153", "country": "老挝", "netOut": "1013809", "percent": 0 }, { "pv": "7", "country": "加纳", "netOut": "43129", "percent": 0 }, { "pv": "54", "country": "罗马尼亚", "netOut": "358115", "percent": 0 }, { "pv": "75", "country": "葡萄牙", "netOut": "440943", "percent": 0 }, { "pv": "17", "country": "哥伦比亚", "netOut": "88481", "percent": 0 }, { "pv": "465", "country": "柬埔寨", "netOut": "2970513", "percent": 0 }, { "pv": "1671", "country": "中国", "netOut": "10278803", "percent": 0.01 }, { "pv": "21", "country": "危地马拉", "netOut": "115542", "percent": 0 }, { "pv": "226", "country": "泰国", "netOut": "1324807", "percent": 0 }, { "pv": "37", "country": "南非", "netOut": "348365", "percent": 0 }, { "pv": "704", "country": "英国", "netOut": "4354578", "percent": 0 }, { "pv": "2", "country": "阿根廷", "netOut": "14911", "percent": 0 }, { "pv": "92", "country": "尼日利亚", "netOut": "557694", "percent": 0 }, { "pv": "10", "country": "哥斯达黎加", "netOut": "27866", "percent": 0 }, { "pv": "5", "country": "智利", "netOut": "12360", "percent": 0 }, { "pv": "102844", "country": "美国", "netOut": "1321947510", "percent": 0.8 }, { "pv": "319", "country": "中国澳门", "netOut": "1724248", "percent": 0 }, { "pv": "9", "country": "沙特阿拉伯", "netOut": "59708", "percent": 0 }, { "pv": "72", "country": "墨西哥", "netOut": "308570", "percent": 0 }, { "pv": "2333", "country": "马来西亚", "netOut": "13935579", "percent": 0.01 }, { "pv": "52924", "country": "中国香港", "netOut": "287544726", "percent": 0.17 }, { "pv": "279", "country": "法国", "netOut": "1741238", "percent": 0 } ] } ```