取消
AQI查询:AQI+PM2.5+采集点
734
5
63269
  • API调试: 演示GET
    接口地址: /apis/aqi
    请求方法: GET
    http://api.help.bj.cn/apis/aqi?id=长春
    http://api.help.bj.cn/apis/aqi?id=101060101
    城市编码下载:http://api.help.bj.cn/api/CityCode.XLS
    请求参数: UrlParam
    参数名 类型 必填 描述 默认值
    idstring城市中文名称(如:北京)或者编码(如:101010100)101010100
    返回说明:JSON格式,UTF-8编码。
    返回事例:{
        "status": "0",
        "citye": "changchun",
        "city": "长春",
        "citycode": "101060101",
        "aqi": "18",
        "data": [
            {
                "add": "长春",
                "aqi": "18",
                "pm25": "9",
                "per": "优",
                "lv": "1"
            },{
                "add": "劳动公园",
                "aqi": "13",
                "pm25": "5",
                "per": "优",
                "lv": "1"
            },{
                "add": "净月潭",
                "aqi": "14",
                "pm25": "3",
                "per": "优",
                "lv": "1"
            },{
                "add": "岱山公园",
                "aqi": "20",
                "pm25": "14",
                "per": "优",
                "lv": "1"
            },{
                ……
            }
        ]
    }
    字段说明:{
        "status": "0",//反馈代码
        "msg": "反馈信息",//反馈信息
        "citye": "changchun",//城市英文名称
        "city": "长春",//城市名称
        "citycode": "101060101",//城市编码
        "aqi": "18",//AQI数值
        "data": [//各采集点数值
            {
                "add": "长春",//采集点名称
                "aqi": "18",//AQI数值
                "pm25": "9",//PM2.5数值
                "per": "优",//评价
                "lv": "1"//等级
            },{
                "add": "劳动公园",
                "aqi": "13",
                "pm25": "5",
                "per": "优",
                "lv": "1"
            },{
                "add": "净月潭",
                "aqi": "14",
                "pm25": "3",
                "per": "优",
                "lv": "1"
            },{
                "add": "岱山公园",
                "aqi": "20",
                "pm25": "14",
                "per": "优",
                "lv": "1"
            },{
                ……
            }
        ]
    }
  • 评论:

轻触这里

关闭目录