菜单

动态住宅流量历史查询(API)

动态住宅流量历史查询可通过API查询:

 

Path: /ip/open-api/residential-data-history

Method: GET

接口描述:获取动态住宅的流量信息

参数说明:

参数名 是否必须 示例 备注 使用场景
is_hour 1

1 或者 0 可填,默认0.

填写0,按UTC+8划分时间跨度.

时间间隔1为小时维度,0为天维度
page 1  取值范围为[1,25],默认1;页数  
start_timestamp 1725206401 开始时间戳,最小值为90天之前.  
end_timestamp 1725292799 结束时间戳  

 

返回数据:

{
    "data": {
        "list": [
            {
                "mb": "1453.16",
                "timestamp": "1725231600",
                "period": "1 hour"
            },
            {
                "mb": "13624.97",
                "timestamp": "1725235200",
                "period": "1 hour"
            },
            {
                "mb": "15726.6",
                "timestamp": "1725238800",
                "period": "1 hour"
            },
            {
                "mb": "10585.6",
                "timestamp": "1725242400",
                "period": "1 hour"
            },
            {
                "mb": "12845.94",
                "timestamp": "1725246000",
                "period": "1 hour"
            },
            {
                "mb": "9128.05",
                "timestamp": "1725249600",
                "period": "1 hour"
            },
            {
                "mb": "6106.33",
                "timestamp": "1725253200",
                "period": "1 hour"
            },
            {
                "mb": "7759.89",
                "timestamp": "1725256800",
                "period": "1 hour"
            },
            {
                "mb": "13815.69",
                "timestamp": "1725260400",
                "period": "1 hour"
            },
            {
                "mb": "9154.83",
                "timestamp": "1725264000",
                "period": "1 hour"
            },
            {
                "mb": "1458.62",
                "timestamp": "1725267600",
                "period": "1 hour"
            }
        ],
        "total": 11,
        "page": 1,
        "page_size": 35
    },
    "code": 0,
    "msg": "Success"
}

 

字段说明:

page_size
展示当前页大小
page
展示当前第几页
total
当前多少条记录
list
数据列表
mb
时间段内消耗多少MB流量
timestamp
时间段内的开始时间戳
period
["1 hour","1 day"] 其中之一,表示当前查询的是1小时维度还是1天维度
分享文章
上一个
动态住宅流量查询(API)
下一个
开发者API
最近修改: 2024-09-03Powered by