免费天气接口

城市接口

https://wis.qq.com/city/like

参数名称

含义

source

请求类型: pc/wx

city

城市名:深圳

实例:
https://wis.qq.com/city/like?source=pc&city=深圳

{
    "data":{
        "101280601":"广东, 深圳"
    },
    "message":"OK",
    "status":200
}

天气接口

https://wis.qq.com/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",
                "time": "2019-12-07"
            },
            "1": {
                "day_weather": "晴",
                "day_weather_code": "00",
                "day_weather_short": "晴",
                "day_wind_direction": "南风",
                "day_wind_direction_code": "4",
                "day_wind_power": "4",
                "day_wind_power_code": "1",
                "max_degree": "11",
                "min_degree": "-3",
                "night_weather": "多云",
                "night_weather_code": "01",
                "night_weather_short": "多云",
                "night_wind_direction": "南风",
                "night_wind_direction_code": "4",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-12-08"
            },
            "2": {
                "day_weather": "晴",
                "day_weather_code": "00",
                "day_weather_short": "晴",
                "day_wind_direction": "南风",
                "day_wind_direction_code": "4",
                "day_wind_power": "3",
                "day_wind_power_code": "0",
                "max_degree": "12",
                "min_degree": "-2",
                "night_weather": "多云",
                "night_weather_code": "01",
                "night_weather_short": "多云",
                "night_wind_direction": "南风",
                "night_wind_direction_code": "4",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-12-09"
            },
            "3": {
                "day_weather": "晴",
                "day_weather_code": "00",
                "day_weather_short": "晴",
                "day_wind_direction": "北风",
                "day_wind_direction_code": "8",
                "day_wind_power": "4",
                "day_wind_power_code": "1",
                "max_degree": "13",
                "min_degree": "-4",
                "night_weather": "晴",
                "night_weather_code": "00",
                "night_weather_short": "晴",
                "night_wind_direction": "北风",
                "night_wind_direction_code": "8",
                "night_wind_power": "4",
                "night_wind_power_code": "1",
                "time": "2019-12-10"
            },
            "4": {
                "day_weather": "晴",
                "day_weather_code": "00",
                "day_weather_short": "晴",
                "day_wind_direction": "北风",
                "day_wind_direction_code": "8",
                "day_wind_power": "4",
                "day_wind_power_code": "1",
                "max_degree": "11",
                "min_degree": "-6",
                "night_weather": "晴",
                "night_weather_code": "00",
                "night_weather_short": "晴",
                "night_wind_direction": "北风",
                "night_wind_direction_code": "8",
                "night_wind_power": "4",
                "night_wind_power_code": "1",
                "time": "2019-12-11"
            },
            "5": {
                "day_weather": "晴",
                "day_weather_code": "00",
                "day_weather_short": "晴",
                "day_wind_direction": "南风",
                "day_wind_direction_code": "4",
                "day_wind_power": "4",
                "day_wind_power_code": "1",
                "max_degree": "8",
                "min_degree": "-3",
                "night_weather": "多云",
                "night_weather_code": "01",
                "night_weather_short": "多云",
                "night_wind_direction": "南风",
                "night_wind_direction_code": "4",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-12-12"
            },
            "6": {
                "day_weather": "阴",
                "day_weather_code": "02",
                "day_weather_short": "阴",
                "day_wind_direction": "北风",
                "day_wind_direction_code": "8",
                "day_wind_power": "3",
                "day_wind_power_code": "0",
                "max_degree": "9",
                "min_degree": "-2",
                "night_weather": "阴",
                "night_weather_code": "02",
                "night_weather_short": "阴",
                "night_wind_direction": "南风",
                "night_wind_direction_code": "4",
                "night_wind_power": "4",
                "night_wind_power_code": "1",
                "time": "2019-12-13"
            },
            "7": {
                "day_weather": "多云",
                "day_weather_code": "01",
                "day_weather_short": "多云",
                "day_wind_direction": "南风",
                "day_wind_direction_code": "4",
                "day_wind_power": "4",
                "day_wind_power_code": "1",
                "max_degree": "10",
                "min_degree": "-1",
                "night_weather": "多云",
                "night_weather_code": "01",
                "night_weather_short": "多云",
                "night_wind_direction": "南风",
                "night_wind_direction_code": "4",
                "night_wind_power": "4",
                "night_wind_power_code": "1",
                "time": "2019-12-14"
            }
        }
    },
    "message": "OK",
    "status": 200
}

你可能感兴趣的:(免费api,oneapi)