天气简报2天
-
接口地址: /apis/weather2d/请求方法: GET
//api.help.bj.cn/apis/weather2d/?id=长春
城市编码下载:http://api.help.bj.cn/api/CityCode.XLS请求参数: UrlParam参数名 类型 必填 描述 默认值 id String 是 城市区县名称 长春 返回说明: JSON格式,UTF-8编码。 返回事例: {
"status": "0",
"city": "上海市",
"aqi": "94",
"pm25": "94",
"temp": "18 ~ 12℃",
"weather": "晴",
"wind": "东风微风",
"weatherimg": "http://www.help.bj.cn/weather/bigicon/1.png",
"tomorrow": {
"temp": "20 ~ 14℃",
"weather": "晴",
"wind": "东南风微风",
"weatherimg": "http://www.help.bj.cn/weather/icon/1.png"
}
}字段说明: {
"status": "0", //反馈代码 0成功
"msg": "反馈信息", //反馈信息
"city": "上海市",//城市
"aqi": "94",//AQI质量
"pm25": "94",//PM2.5质量
"temp": "18 ~ 12℃",//温度
"weather": "晴",//天气情况
"wind": "东风微风",//风向风力
"weatherimg": "http://www.help.bj.cn/weather/bigicon/1.png",//大图标
"tomorrow": {//第二天天气简报
"temp": "20 ~ 14℃",//温度
"weather": "晴",//天气情况
"wind": "东南风微风",//风向风力
"weatherimg": "http://www.help.bj.cn/weather/icon/1.png"//小图标
}
} -