admin 管理员组文章数量: 1184232
腾讯天气
-
- 官方网站
- 城市接口
- 天气接口
官方网站
https://tianqi.qq/
城市接口
https://wis.qq/city/like
| 参数名称 | 含义 |
|---|---|
| source | 请求类型: pc/wx |
| city | 城市名:深圳 |
实例:
https://wis.qq.com/city/like?source=pc&city=深圳
{
"data":{
"101280601":"广东, 深圳"
},
"message":"OK",
"status":200
}
天气接口
https://wis.qq/weather/common
| 参数名称 | 含义 |
|---|---|
| source | 请求类型: pc/wx |
| province | 省份:广东 |
| city | 城市:深圳 |
| county | 县区:龙岗区 |
| callback | 回调函数 不传直接返回json |
| weather_type | observe 当前天气 |
| weather_type | forecast_1h |
| weather_type | forecast_24h |
| weather_type | index 穿衣,舒适度等 |
| weather_type | alarm 预警 |
| weather_type | tips 天气介绍 |
| weather_type | air 空气质量 |
| weather_type | rise 日出 |
| weather_type | 查询类型,多个|分隔 |
{
"data": {
"forecast_24h": {
"0": {
"day_weather": "多云",
"day_weather_code": "01",
"day_weather_short": "多云",
"day_wind_direction": "东风",
"day_wind_direction_code": "2",
"day_wind_power": "3",
"day_wind_power_code": "0",
"max_degree": "7",
"min_degree": "-2",
"night_weather": "晴",
"night_weather_code": "00",
"night_weather_short": "晴",
"night_wind_direction": "南风",
"night_wind_direction_code": "4",
"night_wind_power": "3",
"night_wind_power_code": "0"
版权声明:本文标题:腾讯天气接口 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1755010769a3059873.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论