menu 铭沐API 文章列表
dvr
QQ类
keyboard_arrow_down
desktop_mac
fiber_dvr
location_on
desktop_mac
desktop_mac
brightness_7
border_color
fiber_dvr

城市天气获取

使用教程


请求地址 https://api.tabgo.cn/api/wether

返回数据 { "data":{ "yesterday":{ "date":"5日星期日", "high":"高温 30℃", "fx":"北风", "low":"低温 23℃", "fl":"<![CDATA[2级]]>", "type":"雷阵雨" }, "city":"北京", "forecast":[ { "date":"6日星期一", "high":"高温 30℃", "fengli":"<![CDATA[1级]]>", "low":"低温 22℃", "fengxiang":"东风", "type":"多云" }, { "date":"7日星期二", "high":"高温 33℃", "fengli":"<![CDATA[2级]]>", "low":"低温 22℃", "fengxiang":"东风", "type":"多云" }, { "date":"8日星期三", "high":"高温 33℃", "fengli":"<![CDATA[2级]]>", "low":"低温 22℃", "fengxiang":"南风", "type":"多云" }, { "date":"9日星期四", "high":"高温 24℃", "fengli":"<![CDATA[2级]]>", "low":"低温 21℃", "fengxiang":"东南风", "type":"中雨" }, { "date":"10日星期五", "high":"高温 27℃", "fengli":"<![CDATA[2级]]>", "low":"低温 21℃", "fengxiang":"东南风", "type":"雷阵雨" } ], "ganmao":"感冒低发期,天气舒适,请注意多吃蔬菜水果,多喝水哦。", "wendu":"23" }, "status":1000, "desc":"OK" }

请求参数

参数名称 类型 参数值 描述
city 必填 city 即需要查询天气的城市名称