天气预报免费API接口,实时天气和未来15天天气状况实时掌握

天气预报免费API接口,实时天气和未来15天天气状况实时掌握开发文档参考来源 https console docs apipost cn preview 8cafe72ecd5d 7f1676f5f3ea 发现一个可以免费查询天气情况的 api 温度 湿度 AQI 天气 风向等

大家好,欢迎来到IT知识分享网。

发现一个可以免费查询天气情况的api:温度、湿度、AQI、天气、风向等。

{ "code": 200, "msg": "ok", "list": [ { "id": 2001, "cityname": "北京" }, { "id": 2002, "cityname": "海淀" }, { "id": 2003, "cityname": "朝阳" }, { "id": 2004, "cityname": "顺义" }, { "id": 2005, "cityname": "怀柔" }, . . . . ] } 

2、查询当天天气:

Body 请求参数 参数名 参数值 是否必填 参数类型 描述说明 cityid 4840 是 String 城市id 
{ "status": 200, "msg": "ok", "list": { "cityname": "北京", "today": "06月27日(星期四)", "max_temp": "35℃", "min_temp": "24℃", "now_temp": "32.6℃", "weather": "多云", "weathercode": "https://i.i8tq.com/e_index/todayweather/01_d.png", "aqi": "56", "wind": "西南风3级", "humidity": "30%", "air": "1002", "visibility": "24km", "shzhishu": [ { "title": "穿衣", "des": "短袖" }, { "title": "跑步", "des": "较适宜" }, { "title": "钓鱼", "des": "较适宜" }, { "title": "洗车", "des": "适宜" }, { "title": "晾晒", "des": "适宜" }, { "title": "污染", "des": "中" } ] } } 
Body 请求参数 参数名 参数值 是否必填 参数类型 描述说明 cityid 4840 是 String 城市id 
{ "status": 200, "msg": "ok", "list": { "1": { "date": "6/27", "week": "今天", "max_temp": "35℃", "min_temp": "29℃", "weather": "雷阵雨", "day_icon": "https://i.i8tq.com/e_index/blueTemperature/04.png", "night_icon": "https://i.i8tq.com/e_index/blueTemperature/04.png" }, "2": { "date": "6/28", "week": "星期五", "max_temp": "35℃", "min_temp": "28℃", "weather": "雷阵雨", "day_icon": "https://i.i8tq.com/e_index/blueTemperature/04.png", "night_icon": "https://i.i8tq.com/e_index/blueTemperature/01_n.png" }, ... ... ... "15": { "date": "7/11", "week": "星期四", "max_temp": "34℃", "min_temp": "28℃", "weather": "雨", "day_icon": "https://i.i8tq.com/e_index/blueTemperature/301.png", "night_icon": "https://i.i8tq.com/e_index/blueTemperature/301.png" } } } 

开发文档参考来源:https://console-docs.apipost.cn/preview/8cafe72ecd5ddecc/7f1676f5f3ea5fa1?target_id=34bc097c-0bdf-4385-bfe6-afede9

技术来源:

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/130159.html

(0)
上一篇 2025-08-18 22:45
下一篇 2025-08-19 07:10

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注微信