免费的天气接口api(腾讯)
请求URL:
https://wis.qq.com/weather/common
请求方式:
GET
参数:
参数名 必选 类型 说明
source 是 string pc
weather_type 是 string observe
province 是 string 省
city 是 string 市
county 是 string 县
请求示例
https://wis.qq.com/weather/common?source=pc&weather_type=observe&province=四川&city=成都&county=成华区
返回示例
{ "data": { "observe": { "degree": "30", "humidity": "43", "precipitation": "0", "pressure": "957", "update_time": "202405161055", "weather": "多云", "weather_bg_pag": "", "weather_code": "01", "weather_color": null, "weather_first": "", "weather_pag": "", "weather_short": "多云", "weather_url": "", "wind_direction": "3", "wind_direction_name": "东南风", "wind_power": "3-4" } }, "message": "OK", "status": 200 }
如果想要更多的返回信息
请求示例:https://wis.qq.com/weather/common?source=pc&weather_type=observe|forecast_1h|forecast_24h|index|alarm|limit|tips|rise&province=四川&city=成都&county=双流区
{ "data": { "alarm": { }, "forecast_1h": { "0": { "degree": "25", "update_time": "20240517100000", "weather": "多云", "weather_code": "01", "weather_short": "多云", "weather_url": "", "wind_direction": "东南风", "wind_power": "1-3" }, "1": { "degree": "26", "update_time": "20240517110000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "2": { "degree": "26", "update_time": "20240517120000", "weather": "阴", "weather_code": "02", "weather_short": "阴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "3": { "degree": "27", "update_time": "20240517130000", "weather": "阴", "weather_code": "02", "weather_short": "阴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "4": { "degree": "27", "update_time": "20240517140000", "weather": "阴", "weather_code": "02", "weather_short": "阴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "5": { "degree": "28", "update_time": "20240517150000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "6": { "degree": "29", "update_time": "20240517160000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "7": { "degree": "29", "update_time": "20240517170000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "8": { "degree": "28", "update_time": "20240517180000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "9": { "degree": "27", "update_time": "20240517190000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "10": { "degree": "26", "update_time": "20240517200000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "11": { "degree": "25", "update_time": "20240517210000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "12": { "degree": "25", "update_time": "20240517220000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "13": { "degree": "24", "update_time": "20240517230000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "14": { "degree": "22", "update_time": "20240518000000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "15": { "degree": "21", "update_time": "20240518010000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "16": { "degree": "19", "update_time": "20240518020000", "weather": "多云", "weather_code": "01", "weather_short": "多云", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "17": { "degree": "19", "update_time": "20240518030000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "18": { "degree": "19", "update_time": "20240518040000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "19": { "degree": "19", "update_time": "20240518050000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "20": { "degree": "20", "update_time": "20240518060000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "21": { "degree": "20", "update_time": "20240518070000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "22": { "degree": "21", "update_time": "20240518080000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "23": { "degree": "22", "update_time": "20240518090000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "24": { "degree": "24", "update_time": "20240518100000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "25": { "degree": "25", "update_time": "20240518110000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "26": { "degree": "26", "update_time": "20240518120000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "27": { "degree": "27", "update_time": "20240518130000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "28": { "degree": "28", "update_time": "20240518140000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "29": { "degree": "27", "update_time": "20240518150000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "30": { "degree": "27", "update_time": "20240518160000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "31": { "degree": "26", "update_time": "20240518170000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "32": { "degree": "25", "update_time": "20240518180000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "33": { "degree": "25", "update_time": "20240518190000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "34": { "degree": "24", "update_time": "20240518200000", "weather": "小雨", "weather_code": "07", "weather_short": "小雨", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "35": { "degree": "23", "update_time": "20240518210000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "36": { "degree": "23", "update_time": "20240518220000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "37": { "degree": "22", "update_time": "20240518230000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "38": { "degree": "21", "update_time": "20240519000000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "39": { "degree": "21", "update_time": "20240519010000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "40": { "degree": "20", "update_time": "20240519020000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "41": { "degree": "20", "update_time": "20240519030000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "42": { "degree": "20", "update_time": "20240519040000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "43": { "degree": "20", "update_time": "20240519050000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "北风", "wind_power": "1-3" }, "44": { "degree": "20", "update_time": "20240519060000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "东北风", "wind_power": "1-3" }, "45": { "degree": "20", "update_time": "20240519070000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "东南风", "wind_power": "1-3" }, "46": { "degree": "20", "update_time": "20240519080000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "南风", "wind_power": "1-3" }, "47": { "degree": "21", "update_time": "20240519090000", "weather": "晴", "weather_code": "00", "weather_short": "晴", "weather_url": "", "wind_direction": "南风", "wind_power": "1-3" } }, "forecast_24h": { "0": { "aqi_level": 0, "aqi_name": "", "aqi_url": "", "day_weather": "阴", "day_weather_code": "02", "day_weather_short": "阴", "day_weather_url": "", "day_wind_direction": "西南风", "day_wind_direction_code": "5", "day_wind_power": "1-3", "day_wind_power_code": "0", "max_degree": "31", "min_degree": "20", "night_weather": "阴", "night_weather_code": "02", "night_weather_short": "阴", "night_weather_url": "", "night_wind_direction": "北风", "night_wind_direction_code": "8", "night_wind_power": "1-3", "night_wind_power_code": "0", "time": "2024-05-16" }, "1": { "aqi_level": 0, "aqi_name": "", "aqi_url": "", "day_weather": "阴", "day_weather_code": "02", "day_weather_short": "阴", "day_weather_url": "", "day_wind_direction": "北风", "day_wind_direction_code": "8", "day_wind_power": "1-3", "day_wind_power_code": "0", "max_degree": "30", "min_degree": "19", "night_weather": "多云", "night_weather_code": "01", "night_weather_short": "多云", "night_weather_url": "", "night_wind_direction": "北风", "night_wind_direction_code": "8", "night_wind_power": "1-3", "night_wind_power_code": "0", "time": "2024-05-17" }, "2": { "aqi_level": 0, "aqi_name": "", "aqi_url": "", "day_weather": "小雨", "day_weather_code": "07", "day_weather_short": "小雨", "day_weather_url": "", "day_wind_direction": "北风", "day_wind_direction_code": "8", "day_wind_power": "1-3", "day_wind_power_code": "0", "max_degree": "29", "min_degree": "19", "night_weather": "多云", "night_weather_code": "01", "night_weather_short": "多云", "night_weather_url": "", "night_wind_direction": "南风", "night_wind_direction_code": "4", "night_wind_power": "1-3", "night_wind_power_code": "0", "time": "2024-05-18" }, "3": { "aqi_level": 0, "aqi_name": "", "aqi_url": "", "day_weather": "小雨", "day_weather_code": "07", "day_weather_short": "小雨", "day_weather_url": "", "day_wind_direction": "南风", "day_wind_direction_code": "4", "day_wind_power": "1-3", "day_wind_power_code": "0", "max_degree": "30", "min_degree": "19", "night_weather": "多云", "night_weather_code": "01", "night_weather_short": "多云", "night_weather_url": "", "night_wind_direction": "南风", "night_wind_direction_code": "4", "night_wind_power": "1-3", "night_wind_power_code": "0", "time": "2024-05-19" }, "4": { "aqi_level": 0, "aqi_name": "", "aqi_url": "", "day_weather": "多云", "day_weather_code": "01", "day_weather_short": "多云", "day_weather_url": "", "day_wind_direction": "微风", "day_wind_direction_code": "0", "day_wind_power": "1-3", "day_wind_power_code": "0", "max_degree": "31", "min_degree": "20", "night_weather": "多云", "night_weather_code": "01", "night_weather_short": "多云", "night_weather_url": "", "night_wind_direction": "微风", "night_wind_direction_code": "0", "night_wind_power": "1-3", "night_wind_power_code": "0", "time": "2024-05-20" }, "5": { "aqi_level": 0, "aqi_name": "", "aqi_url": "", "day_weather": "多云", "day_weather_code": "01", "day_weather_short": "多云", "day_weather_url": "", "day_wind_direction": "微风", "day_wind_direction_code": "0", "day_wind_power": "1-3", "day_wind_power_code": "0", "max_degree": "31", "min_degree": "20", "night_weather": "多云", "night_weather_code": "01", "night_weather_short": "多云", "night_weather_url": "", "night_wind_direction": "微风", "night_wind_direction_code": "0", "night_wind_power": "1-3", "night_wind_power_code": "0", "time": "2024-05-21" }, "6": { "aqi_level": 0, "aqi_name": "", "aqi_url": "", "day_weather": "多云", "day_weather_code": "01", "day_weather_short": "多云", "day_weather_url": "", "day_wind_direction": "微风", "day_wind_direction_code": "0", "day_wind_power": "1-3", "day_wind_power_code": "0", "max_degree": "32", "min_degree": "21", "night_weather": "多云", "night_weather_code": "01", "night_weather_short": "多云", "night_weather_url": "", "night_wind_direction": "微风", "night_wind_direction_code": "0", "night_wind_power": "1-3", "night_wind_power_code": "0", "time": "2024-05-22" }, "7": { "aqi_level": 0, "aqi_name": "", "aqi_url": "", "day_weather": "多云", "day_weather_code": "01", "day_weather_short": "多云", "day_weather_url": "", "day_wind_direction": "微风", "day_wind_direction_code": "0", "day_wind_power": "1-3", "day_wind_power_code": "0", "max_degree": "33", "min_degree": "22", "night_weather": "多云", "night_weather_code": "01", "night_weather_short": "多云", "night_weather_url": "", "night_wind_direction": "微风", "night_wind_direction_code": "0", "night_wind_power": "1-3", "night_wind_power_code": "0", "time": "2024-05-23" } }, "index": { "airconditioner": { "detail": "天气热,到中午的时候您将会感到有点热,因此建议在午后较热时开启制冷空调。", "info": "部分时间开启", "name": "空调开启" }, "allergy": { "detail": "天气条件不易诱发过敏,除特殊体质外,无需担心过敏问题。", "info": "不易发", "name": "过敏" }, "carwash": { "detail": "较适宜洗车,未来一天无雨,风力较小,擦洗一新的汽车至少能保持一天。", "info": "较适宜", "name": "洗车" }, "chill": { "detail": "温度未达到风寒所需的低温,稍作防寒准备即可。", "info": "无", "name": "风寒" }, "clothes": { "detail": "天气热,建议着短裙、短裤、短薄外套、T恤等夏季服装。", "info": "热", "name": "穿衣" }, "cold": { "detail": "各项气象条件适宜,发生感冒机率较低。但请避免长期处于空调房间中,以防感冒。", "info": "少发", "name": "感冒" }, "comfort": { "detail": "白天天气以多云到阴为主,日照虽然不强,但仍会使您感到有些热,不很舒适。", "info": "较不舒适", "name": "舒适度" }, "diffusion": { "detail": "气象条件较不利于空气污染物稀释、扩散和清除。", "info": "较差", "name": "空气污染扩散条件" }, "dry": { "detail": "阴天,路面比较干燥,路况较好。", "info": "干燥", "name": "路况" }, "drying": { "detail": "天气阴沉,不利于水分的迅速蒸发,不太适宜晾晒。若需要晾晒,请尽量选择通风的地点。", "info": "不太适宜", "name": "晾晒" }, "fish": { "detail": "天气不好,有风,不适合垂钓。", "info": "不宜", "name": "钓鱼" }, "heatstroke": { "detail": "天气不热,在炎炎夏日中十分难得,可以告别暑气漫漫啦~", "info": "无中暑风险", "name": "中暑" }, "makeup": { "detail": "天气较热,建议用露质面霜打底,水质无油粉底霜,透明粉饼,粉质胭脂。", "info": "去油", "name": "化妆" }, "mood": { "detail": "天气阴沉,会感觉莫名的压抑,情绪低落,此时将所有的悲喜都静静地沉到心底,在喧嚣的尘世里,感受片刻恬淡的宁静。", "info": "较差", "name": "心情" }, "morning": { "detail": "早晨气象条件较适宜晨练,但天气阴沉,风力稍大,请选择合适的地点晨练。", "info": "较适宜", "name": "晨练" }, "sports": { "detail": "天气较好,较适宜进行各种运动,但因天气热,请适当减少运动时间,降低运动强度。", "info": "较适宜", "name": "运动" }, "sunglasses": { "detail": "白天天空阴沉,但太阳辐射很强,建议佩戴透射比2级且标注UV400的浅色太阳镜", "info": "很必要", "name": "太阳镜" }, "sunscreen": { "detail": "属弱紫外辐射天气,长期在户外,建议涂擦SPF在8-12之间的防晒护肤品。", "info": "弱", "name": "防晒" }, "time": "20240517", "tourism": { "detail": "天气较好,感觉有些热,总体来说还是好天气哦。适宜旅游,可不要错过机会呦", "info": "适宜", "name": "旅游" }, "traffic": { "detail": "阴天,路面干燥,交通气象条件良好,车辆可以正常行驶。", "info": "良好", "name": "交通" }, "ultraviolet": { "detail": "属弱紫外线辐射天气,无需特别防护。若长期在户外,建议涂擦SPF在8-12之间的防晒护肤品。", "info": "最弱", "name": "紫外线强度" }, "umbrella": { "detail": "阴天,但降水概率很低,因此您在出门的时候无须带雨伞。", "info": "不带伞", "name": "雨伞" } }, "limit": { "tail_number": "5和0", "time": "20240517" }, "observe": { "degree": "26", "humidity": "61", "precipitation": "0", "pressure": "953", "update_time": "202405171015", "weather": "阴", "weather_bg_pag": "", "weather_code": "02", "weather_color": null, "weather_first": "", "weather_pag": "", "weather_short": "阴", "weather_url": "", "wind_direction": "5", "wind_direction_name": "西南风", "wind_power": "3-4" }, "rise": { "0": { "sunrise": "06:08", "sunset": "19:53", "time": "20240517" }, "1": { "sunrise": "06:07", "sunset": "19:53", "time": "20240518" }, "2": { "sunrise": "06:07", "sunset": "19:54", "time": "20240519" }, "3": { "sunrise": "06:06", "sunset": "19:55", "time": "20240520" }, "4": { "sunrise": "06:06", "sunset": "19:55", "time": "20240521" }, "5": { "sunrise": "06:05", "sunset": "19:56", "time": "20240522" }, "6": { "sunrise": "06:05", "sunset": "19:56", "time": "20240523" }, "7": { "sunrise": "06:04", "sunset": "19:57", "time": "20240524" }, "8": { "sunrise": "06:04", "sunset": "19:58", "time": "20240525" }, "9": { "sunrise": "06:04", "sunset": "19:58", "time": "20240526" }, "10": { "sunrise": "06:03", "sunset": "19:59", "time": "20240527" }, "11": { "sunrise": "06:03", "sunset": "19:59", "time": "20240528" }, "12": { "sunrise": "06:03", "sunset": "20:00", "time": "20240529" }, "13": { "sunrise": "06:02", "sunset": "20:01", "time": "20240530" }, "14": { "sunrise": "06:02", "sunset": "20:01", "time": "20240531" } }, "tips": { "forecast_24h": null, "observe": { "0": "天有点冷,注意保暖~", "1": "现在的温度比较舒适~" } } }, "message": "OK", "status": 200 }
目前找到免费且稳定的就是这个api,如果后续找出来会继续更新!