获取设备累计激活数据趋势

更新时间:2024-06-25 02:11:53下载pdf

本文介绍获取设备累计激活数据趋势的 API。

接口描述

获取设备累计激活数据趋势,按照国家日期维度来统计。

接口地址

GET: /v1.0/iot-data/devices/activation-total

请求参数

参数名类型参数位置是否必填说明
paramsStringquerytrue请求参数

params 说明

参数名类型参数位置是否必填说明
countryString false国家,传入格式是国家英文名
pidString false开发者平台账号下的 PID,只支持单个 PID
startDayString true开始日期,格式 YYYYMMDD,包含开始日期
endDayString true结束日期,格式 YYYYMMDD,包含结束日期

返回参数

参数名类型说明
resultJSONArray返回结果列表

result 说明

参数名类型说明
activationNumTotalInteger累计设备激活数
activationNumThirtyDayInteger近 30 天设备激活数
activationNumTodayInteger今日设备激活数
activeNumTodayInteger今日设备活跃数
activeNumSevenDayInteger近 7 日设备活跃数
activeNumFourteenDayInteger近 14 日设备活跃数
countryNameString国家名称(中文)
countryNameEnString国家名称(英文)
dtString日期,YYYYMMDD 格式

请求示例

GET: /v1.0/iot-data/devices/activation-total?params={"startDay":"20221206" ,"endDay":"20221212"}

返回示例

{
    "result": [
        {
            "activeNumFourteenDay": 146,
            "activeNumToday": 13,
            "countryNameEn": "China",
            "dt": "20220103",
            "activationNumToday": 13,
            "activeNumSevenDay": 79,
            "activationNumThirtyDay": 260,
            "activationNumTotal": 1863,
            "countryName": "中国"
        },
        {
            "activeNumFourteenDay": 146,
            "activeNumToday": 8,
            "countryNameEn": "China",
            "dt": "20220104",
            "activationNumToday": 8,
            "activeNumSevenDay": 70,
            "activationNumThirtyDay": 263,
            "activationNumTotal": 1871,
            "countryName": "中国"
        },
        {
            "activeNumFourteenDay": 142,
            "activeNumToday": 8,
            "countryNameEn": "China",
            "dt": "20220105",
            "activationNumToday": 7,
            "activeNumSevenDay": 61,
            "activationNumThirtyDay": 254,
            "activationNumTotal": 1878,
            "countryName": "中国"
        },
        {
            "activeNumFourteenDay": 136,
            "activeNumToday": 7,
            "countryNameEn": "China",
            "dt": "20220106",
            "activationNumToday": 7,
            "activeNumSevenDay": 62,
            "activationNumThirtyDay": 261,
            "activationNumTotal": 1885,
            "countryName": "中国"
        },
        {
            "activeNumFourteenDay": 142,
            "activeNumToday": 18,
            "countryNameEn": "China",
            "dt": "20220107",
            "activationNumToday": 18,
            "activeNumSevenDay": 73,
            "activationNumThirtyDay": 265,
            "activationNumTotal": 1903,
            "countryName": "中国"
        },
        {
            "activeNumFourteenDay": 142,
            "activeNumToday": 27,
            "countryNameEn": "China",
            "dt": "20220108",
            "activationNumToday": 11,
            "activeNumSevenDay": 74,
            "activationNumThirtyDay": 269,
            "activationNumTotal": 1914,
            "countryName": "中国"
        },
        {
            "activeNumFourteenDay": 148,
            "activeNumToday": 17,
            "countryNameEn": "China",
            "dt": "20220109",
            "activationNumToday": 17,
            "activeNumSevenDay": 81,
            "activationNumThirtyDay": 273,
            "activationNumTotal": 1931,
            "countryName": "中国"
        },
        {
            "activeNumFourteenDay": 158,
            "activeNumToday": 27,
            "countryNameEn": "China",
            "dt": "20220110",
            "activationNumToday": 11,
            "activeNumSevenDay": 79,
            "activationNumThirtyDay": 283,
            "activationNumTotal": 1942,
            "countryName": "中国"
        }
    ],
    "t": 1641902767155,
    "success": true
}

错误码

参考 错误码