40天天气简报
-
API调试: GET接口地址: /apis/wap40D/请求方法: GET
//api.help.bj.cn/apis/wap40D/?id=101060101请求参数: UrlParam参数名 类型 必填 描述 默认值 id string 是 城市中文名称(如:北京)或者编码(如:101010100) 101010100 返回说明: JSON格式,UTF-8编码。 返回事例: {
"status": "0",
"citycode": "101010100",
"city": "北京",
"isSummer": false,
"level": "",
"msg1": "预计未来40天白天平均气温为2℃",
"msg2": "12月30日前后降温10℃",
"msg_label": "较冷",
"time": "2019年12月28日-2020年02月05日",
"datas": [{
"temp_max": "4",
"temp_min": "-6",
"date": "20191228",
"w1_code": "00",
"w2_code": "01",
"weather": "晴转多云",
"week": "星期六"
}, {
"temp_max": "6",
"temp_min": "-8",
"date": "20191229",
"w1_code": "01",
"w2_code": "00",
"weather": "多云转晴",
"week": "星期日"
}, {
"label": "12月30日降温10℃",
"label_type": "05",
"temp_max": "-4",
"temp_min": "-12",
"date": "20191230",
"w1_code": "00",
"w2_code": "00",
"weather": "晴",
"week": "星期一"
}, {
......
}, {
"temp_max": "4",
"temp_min": "-8",
"date": "20200205",
"w1_code": "01",
"w2_code": "",
"weather": "多云",
"week": "星期三"
}]
}字段说明: {
"status": "0",
"citycode": "101010100",//城市编码
"city": "北京",//城市名称
"isSummer": false,
"level": "",
"msg1": "预计未来40天白天平均气温为2℃",
"msg2": "12月30日前后降温10℃",
"msg_label": "较冷",
"time": "2019年12月28日-2020年02月05日",
"datas": [{
"temp_max": "4",//最高气温
"temp_min": "-6",//最低气温
"date": "20191228",//日期
"w1_code": "00",//风向
"w2_code": "01",//风向
"weather": "晴转多云",//天气情况
"week": "星期六"//星期
}, {
"temp_max": "6",
"temp_min": "-8",
"date": "20191229",
"w1_code": "01",
"w2_code": "00",
"weather": "多云转晴",
"week": "星期日"
}, {
"label": "12月30日降温10℃",//提示
"label_type": "05",
"temp_max": "-4",
"temp_min": "-12",
"date": "20191230",
"w1_code": "00",
"w2_code": "00",
"weather": "晴",
"week": "星期一"
}, {
......
}, {
"temp_max": "4",
"temp_min": "-8",
"date": "20200205",
"w1_code": "01",
"w2_code": "",
"weather": "多云",
"week": "星期三"
}],
"isSummer": false,
"level": "",
"msg1": "预计未来40天白天平均气温为2℃",
"msg2": "12月30日前后降温10℃",
"msg_label": "较冷",
"time": "2019年12月28日-2020年02月05日"
} -