取消
天气36小时,支持模糊参数查询
1037
1
1309492
  • API调试: 演示GET
    接口地址: /apis/weather36h
    请求方法: GET
    http://api.help.bj.cn/apis/weather36h?id=changchun
    http://api.help.bj.cn/apis/weather36h?id=cc
    http://api.help.bj.cn/apis/weather36h?id=长春市
    http://api.help.bj.cn/apis/weather36h?id=长春
    城市编码下载:http://api.help.bj.cn/api/CityCode.XLS
    请求参数: UrlParam
    参数名 类型 必填 描述 默认值
    idString城市区县名称(支持模糊录入)长春市朝阳区
    返回说明:JSON格式,UTF-8编码。
    返回事例:{
        "status": "0",
        "city": "长春",
        "citycode": "101060101",
        "weather24h": [
            {
                "temp": "3",
                "time": "2016-10-17 20:33:43",
                "weather": "晴"
            },{
                "temp": "2",
                "time": "2016-10-17 23:00:00",
                "weather": "晴"
            },{
                "temp": "2",
                "time": "2016-10-18 02:00:00",
                "weather": "晴"
            },{
                "temp": "4",
                "time": "2016-10-18 05:00:00",
                "weather": "晴"
            },{
                "temp": "7",
                "time": "2016-10-18 08:00:00",
                "weather": "晴"
            },{
                "temp": "13",
                "time": "2016-10-18 11:00:00",
                "weather": "晴"
            },{
                "temp": "15",
                "time": "2016-10-18 14:00:00",
                "weather": "晴"
            },{
                "temp": "11",
                "time": "2016-10-18 17:00:00",
                "weather": "晴"
            },{
                "temp": "8",
                "time": "2016-10-18 20:00:00",
                "weather": "晴"
            },{
                "temp": "5",
                "time": "2016-10-18 23:00:00",
                "weather": "多云"
            },{
                "temp": "5",
                "time": "2016-10-19 02:00:00",
                "weather": "多云"
            },{
                "temp": "7",
                "time": "2016-10-19 05:00:00",
                "weather": "多云"
            },{
                "temp": "12",
                "time": "2016-10-19 08:00:00",
                "weather": "多云"
            }
        ]
    }
    字段说明:{
        "status": "0",  //反馈代码 0成功
        "msg": "反馈信息", //反馈信息
        "city": "长春",  //城市名称
        "citycode": "101060101",  //城市编码
        "weather36h": [  //36小时天气
            {
                "temp": "3",  //温度
                "time": "2016-10-17 20:33:43",  //时间
                "weather": "晴" //天气
            },{
                ……
            },{
                "temp": 12",
                "time": "2016-10-19 08:00:00",
                "weather": 多云"
            }
        ]
    }
  • 评论:

轻触这里

关闭目录