接口地址:
http://t.weather.sojson.com/api/weather/city/101281601
City code 在这上面
https://blog.csdn.net/wangqjpp/article/details/39957091
返回数据
{
"message": "success感谢又拍云(upyun.com)提供CDN赞助",
"status": 200,
"date": "20200602",
"time": "2020-06-02 09:52:32",
"cityInfo": {
"city": "东莞市",
"citykey": "101281601",
"parent": "广东",
"updateTime": "09:01"
},
"data": {
"shidu": "100%",
"pm25": 8.0,
"pm10": 20.0,
"quality": "优",
"wendu": "31",
"ganmao": "各类人群可自由活动",
"forecast": [
{
"date": "02",
"high": "高温 35℃",
"low": "低温 30℃",
"ymd": "2020-06-02",
"week": "星期二",
"sunrise": "05:38",
"sunset": "19:07",
"aqi": 24,
"fx": "南风",
"fl": "3级",
"type": "多云",
"notice": "阴晴之间,谨防紫外线侵扰"
},
{
"date": "03",
"high": "高温 33℃",
"low": "低温 29℃",
"ymd": "2020-06-03",
"week": "星期三",
"sunrise": "05:38",
"sunset": "19:07",
"aqi": 21,
"fx": "南风",
"fl": "2级",
"type": "大雨",
"notice": "出门最好穿雨衣,勿挡视线"
},
{
"date": "04",
"high": "高温 34℃",
"low": "低温 30℃",
"ymd": "2020-06-04",
"week": "星期四",
"sunrise": "05:38",
"sunset": "19:07",
"aqi": 25,
"fx": "南风",
"fl": "3级",
"type": "阴",
"notice": "不要被阴云遮挡住好心情"
},
{
"date": "05",
"high": "高温 32℃",
"low": "低温 28℃",
"ymd": "2020-06-05",
"week": "星期五",
"sunrise": "05:38",
"sunset": "19:08",
"aqi": 21,
"fx": "南风",
"fl": "3级",
"type": "小雨",
"notice": "雨虽小,注意保暖别感冒"
},
{
"date": "06",
"high": "高温 31℃",
"low": "低温 25℃",
"ymd": "2020-06-06",
"week": "星期六",
"sunrise": "05:40",
"sunset": "19:02",
"aqi": 15,
"fx": "东风",
"fl": "2级",
"type": "小雨",
"notice": "雨虽小,注意保暖别感冒"
},
{
"date": "07",
"high": "高温 34℃",
"low": "低温 29℃",
"ymd": "2020-06-07",
"week": "星期日",
"sunrise": "05:38",
"sunset": "19:09",
"aqi": 13,
"fx": "南风",
"fl": "4级",
"type": "小雨",
"notice": "雨虽小,注意保暖别感冒"
},
{
"date": "08",
"high": "高温 30℃",
"low": "低温 25℃",
"ymd": "2020-06-08",
"week": "星期一",
"sunrise": "05:38",
"sunset": "19:09",
"aqi": 35,
"fx": "西南风",
"fl": "2级",
"type": "小雨",
"notice": "雨虽小,注意保暖别感冒"
},
{
"date": "09",
"high": "高温 30℃",
"low": "低温 25℃",
"ymd": "2020-06-09",
"week": "星期二",
"sunrise": "05:38",
"sunset": "19:09",
"aqi": 21,
"fx": "南风",
"fl": "2级",
"type": "中雨",
"notice": "记得随身携带雨伞哦"
},
{
"date": "10",
"high": "高温 35℃",
"low": "低温 28℃",
"ymd": "2020-06-10",
"week": "星期三",
"sunrise": "05:38",
"sunset": "19:10",
"aqi": 24,
"fx": "南风",
"fl": "3级",
"type": "小雨",
"notice": "雨虽小,注意保暖别感冒"
},
{
"date": "11",
"high": "高温 33℃",
"low": "低温 27℃",
"ymd": "2020-06-11",
"week": "星期四",
"sunrise": "05:38",
"sunset": "19:10",
"aqi": 17,
"fx": "西南风",
"fl": "4级",
"type": "阴",
"notice": "不要被阴云遮挡住好心情"
},
{
"date": "12",
"high": "高温 31℃",
"low": "低温 24℃",
"ymd": "2020-06-12",
"week": "星期五",
"sunrise": "05:38",
"sunset": "19:10",
"aqi": 42,
"fx": "南风",
"fl": "3级",
"type": "中雨",
"notice": "记得随身携带雨伞哦"
},
{
"date": "13",
"high": "高温 33℃",
"low": "低温 29℃",
"ymd": "2020-06-13",
"week": "星期六",
"sunrise": "05:38",
"sunset": "19:11",
"aqi": 24,
"fx": "南风",
"fl": "4级",
"type": "多云",
"notice": "阴晴之间,谨防紫外线侵扰"
},
{
"date": "14",
"high": "高温 30℃",
"low": "低温 26℃",
"ymd": "2020-06-14",
"week": "星期日",
"sunrise": "05:39",
"sunset": "19:12",
"aqi": 15,
"fx": "东南风",
"fl": "3级",
"type": "小雨",
"notice": "雨虽小,注意保暖别感冒"
},
{
"date": "15",
"high": "高温 34℃",
"low": "低温 29℃",
"ymd": "2020-06-15",
"week": "星期一",
"sunrise": "05:40",
"sunset": "19:12",
"aqi": 20,
"fx": "南风",
"fl": "3级",
"type": "阴",
"notice": "不要被阴云遮挡住好心情"
},
{
"date": "16",
"high": "高温 34℃",
"low": "低温 30℃",
"ymd": "2020-06-16",
"week": "星期二",
"sunrise": "05:40",
"sunset": "19:12",
"aqi": 16,
"fx": "西南风",
"fl": "4级",
"type": "小雨",
"notice": "雨虽小,注意保暖别感冒"
}
],
"yesterday": {
"date": "01",
"high": "高温 31℃",
"low": "低温 26℃",
"ymd": "2020-06-01",
"week": "星期一",
"sunrise": "05:39",
"sunset": "19:06",
"aqi": 64,
"fx": "东风",
"fl": "<3级",
"type": "小雨",
"notice": "雨虽小,注意保暖别感冒"
}
}
}