Rotating data history can be queried via API
Path: /ip/open-api/residential-data-history
Method: GET
Interface description: Residential data history
Parameter description:
Parameter name | Is it necessary | Example | Remarks | Usage scenarios |
is_hour | no | 1 |
option:[0,1] ,default 1. Time zone is UTC+8 when is_hour is 0. |
The interval of 1 is hour and 0 is day |
page | no | 1 | range: 1 to 25 ,default 1 | |
start_timestamp | Yes | 1725206401 | start timestamp.Minimum is 90 days ago. | |
end_timestamp | Yes | 1725292799 | end timestamp |
Return data:
{
"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"
}
Field description:
page_size | page size for data. |
page |
page for data. |
total | total item for data |
list | list of data |
mb | residential data consumption size, unit is MB. |
timestamp | start timestamp of each item |
period | one of ["1 hour","1 day"].Indicates whether the query period is one day or one hour. |