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"

本文标签: 腾讯 接口 天气