全国天气查询
全国24小时和30天天气查询

接口地址: http://api.skyclouds.cc/api/weather

返回格式: JSON

请求方式: GET

请求示例: http://api.skyclouds.cc/api/weather?province=省份&city=城市

请求参数说明:

名称 必填 类型 说明
province string 省份
city string 城市

返回参数说明:

名称 类型 说明

返回示例:

{"data":{"alarm":{},"forecast_1h":{"0":{"degree":"29","update_time":"20220527130000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"1":{"degree":"28","update_time":"20220527140000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"10":{"degree":"25","update_time":"20220527230000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"11":{"degree":"24","update_time":"20220528000000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"12":{"degree":"24","update_time":"20220528010000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"13":{"degree":"24","update_time":"20220528020000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"14":{"degree":"24","update_time":"20220528030000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"15":{"degree":"24","update_time":"20220528040000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"16":{"degree":"24","update_time":"20220528050000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"3"},"17":{"degree":"24","update_time":"20220528060000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"3"},"18":{"degree":"25","update_time":"20220528070000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"19":{"degree":"26","update_time":"20220528080000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"2":{"degree":"28","update_time":"20220527150000","weather":"中雨","weather_code":"08","weather_short":"中雨","wind_direction":"南风","wind_power":"3"},"20":{"degree":"26","update_time":"20220528090000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"21":{"degree":"27","update_time":"20220528100000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"22":{"degree":"27","update_time":"20220528110000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"23":{"degree":"28","update_time":"20220528120000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"24":{"degree":"28","update_time":"20220528130000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"25":{"degree":"28","update_time":"20220528140000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"26":{"degree":"28","update_time":"20220528150000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"27":{"degree":"28","update_time":"20220528160000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"南风","wind_power":"4"},"28":{"degree":"28","update_time":"20220528170000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"4"},"29":{"degree":"28","update_time":"20220528180000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"4"},"3":{"degree":"28","update_time":"20220527160000","weather":"中雨","weather_code":"08","weather_short":"中雨","wind_direction":"南风","wind_power":"3"},"30":{"degree":"27","update_time":"20220528190000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"4"},"31":{"degree":"27","update_time":"20220528200000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"4"},"32":{"degree":"26","update_time":"20220528210000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"33":{"degree":"26","update_time":"20220528220000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"34":{"degree":"26","update_time":"20220528230000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"35":{"degree":"26","update_time":"20220529000000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"36":{"degree":"26","update_time":"20220529010000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"37":{"degree":"26","update_time":"20220529020000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"38":{"degree":"25","update_time":"20220529030000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"39":{"degree":"25","update_time":"20220529040000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"4":{"degree":"28","update_time":"20220527170000","weather":"中雨","weather_code":"08","weather_short":"中雨","wind_direction":"南风","wind_power":"3"},"40":{"degree":"25","update_time":"20220529050000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"东南风","wind_power":"4"},"41":{"degree":"26","update_time":"20220529060000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"42":{"degree":"26","update_time":"20220529070000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"43":{"degree":"27","update_time":"20220529080000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"44":{"degree":"27","update_time":"20220529090000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"45":{"degree":"27","update_time":"20220529100000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"46":{"degree":"27","update_time":"20220529110000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"47":{"degree":"28","update_time":"20220529120000","weather":"雷阵雨","weather_code":"04","weather_short":"雷阵雨","wind_direction":"南风","wind_power":"4"},"5":{"degree":"27","update_time":"20220527180000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"3"},"6":{"degree":"26","update_time":"20220527190000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"3"},"7":{"degree":"25","update_time":"20220527200000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"3"},"8":{"degree":"25","update_time":"20220527210000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"3"},"9":{"degree":"25","update_time":"20220527220000","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"东南风","wind_power":"3"}},"forecast_24h":{"0":{"day_weather":"多云","day_weather_code":"01","day_weather_short":"多云","day_wind_direction":"南风","day_wind_direction_code":"4","day_wind_power":"3","day_wind_power_code":"0","max_degree":"31","min_degree":"25","night_weather":"雷阵雨","night_weather_code":"04","night_weather_short":"雷阵雨","night_wind_direction":"微风","night_wind_direction_code":"0","night_wind_power":"3","night_wind_power_code":"0","time":"2022-05-26"},"1":{"day_weather":"中雨","day_weather_code":"08","day_weather_short":"中雨","day_wind_direction":"微风","day_wind_direction_code":"0","day_wind_power":"3","day_wind_power_code":"0","max_degree":"30","min_degree":"24","night_weather":"中雨","night_weather_code":"08","night_weather_short":"中雨","night_wind_direction":"微风","night_wind_direction_code":"0","night_wind_power":"3","night_wind_power_code":"0","time":"2022-05-27"},"2":{"day_weather":"中雨","day_weather_code":"08","day_weather_short":"中雨","day_wind_direction":"南风","day_wind_direction_code":"4","day_wind_power":"4","day_wind_power_code":"1","max_degree":"29","min_degree":"25","night_weather":"雷阵雨","night_weather_code":"04","night_weather_short":"雷阵雨","night_wind_direction":"南风","night_wind_direction_code":"4","night_wind_power":"4","night_wind_power_code":"1","time":"2022-05-28"},"3":{"day_weather":"雷阵雨","day_weather_code":"04","day_weather_short":"雷阵雨","day_wind_direction":"南风","day_wind_direction_code":"4","day_wind_power":"4","day_wind_power_code":"1","max_degree":"29","min_degree":"25","night_weather":"雷阵雨","night_weather_code":"04","night_weather_short":"雷阵雨","night_wind_direction":"微风","night_wind_direction_code":"0","night_wind_power":"3","night_wind_power_code":"0","time":"2022-05-29"},"4":{"day_weather":"雷阵雨","day_weather_code":"04","day_weather_short":"雷阵雨","day_wind_direction":"微风","day_wind_direction_code":"0","day_wind_power":"3","day_wind_power_code":"0","max_degree":"30","min_degree":"25","night_weather":"雷阵雨","night_weather_code":"04","night_weather_short":"雷阵雨","night_wind_direction":"微风","night_wind_direction_code":"0","night_wind_power":"3","night_wind_power_code":"0","time":"2022-05-30"},"5":{"day_weather":"雷阵雨","day_weather_code":"04","day_weather_short":"雷阵雨","day_wind_direction":"微风","day_wind_direction_code":"0","day_wind_power":"3","day_wind_power_code":"0","max_degree":"29","min_degree":"25","night_weather":"雷阵雨","night_weather_code":"04","night_weather_short":"雷阵雨","night_wind_direction":"微风","night_wind_direction_code":"0","night_wind_power":"3","night_wind_power_code":"0","time":"2022-05-31"},"6":{"day_weather":"雷阵雨","day_weather_code":"04","day_weather_short":"雷阵雨","day_wind_direction":"微风","day_wind_direction_code":"0","day_wind_power":"3","day_wind_power_code":"0","max_degree":"30","min_degree":"25","night_weather":"雷阵雨","night_weather_code":"04","night_weather_short":"雷阵雨","night_wind_direction":"微风","night_wind_direction_code":"0","night_wind_power":"3","night_wind_power_code":"0","time":"2022-06-01"},"7":{"day_weather":"小雨","day_weather_code":"07","day_weather_short":"小雨","day_wind_direction":"微风","day_wind_direction_code":"0","day_wind_power":"3","day_wind_power_code":"0","max_degree":"34","min_degree":"27","night_weather":"小雨","night_weather_code":"07","night_weather_short":"小雨","night_wind_direction":"微风","night_wind_direction_code":"0","night_wind_power":"3","night_wind_power_code":"0","time":"2022-06-02"}},"index":{"airconditioner":{"detail":"天气热,到中午的时候您将会感到有点热,因此建议在午后较热时开启制冷空调。","info":"部分时间开启","name":"空调开启"},"allergy":{"detail":"天气条件不易诱发过敏,有降雪,体质较弱的人群应及时添加衣物,预防感冒可能引发的过敏。","info":"不易发","name":"过敏"},"carwash":{"detail":"不宜洗车,未来24小时内有雨,如果在此期间洗车,雨水和路上的泥水可能会再次弄脏您的爱车。","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":"白天有降水天气,视线较差,不需要佩戴太阳镜","info":"不需要","name":"太阳镜"},"sunscreen":{"detail":"属弱紫外辐射天气,长期在户外,建议涂擦SPF在8-12之间的防晒护肤品。","info":"弱","name":"防晒"},"time":"20220527","tourism":{"detail":"天气稍热,有微风,但较强降雨的天气将给您的出行带来很多的不便,若坚持旅行建议带上雨具。","info":"一般","name":"旅游"},"traffic":{"detail":"有较强降水,路面比较湿滑,能见度一般,交通气象条件较差,事故高发期,车辆应低速行驶。","info":"较差","name":"交通"},"ultraviolet":{"detail":"属弱紫外线辐射天气,无需特别防护。若长期在户外,建议涂擦SPF在8-12之间的防晒护肤品。","info":"最弱","name":"紫外线强度"},"umbrella":{"detail":"有较强降水,您在外出的时候一定要带雨伞,以免被雨水淋湿。","info":"带伞","name":"雨伞"}},"limit":{"tail_number":"双号限行","time":"20220527"},"observe":{"degree":"25","humidity":"99","precipitation":"0","pressure":"1000","update_time":"202205271255","weather":"小雨","weather_code":"07","weather_short":"小雨","wind_direction":"3","wind_power":"2"},"rise":{"0":{"sunrise":"05:41","sunset":"19:06","time":"20220527"},"1":{"sunrise":"05:41","sunset":"19:06","time":"20220528"},"10":{"sunrise":"05:40","sunset":"19:10","time":"20220606"},"11":{"sunrise":"05:40","sunset":"19:11","time":"20220607"},"12":{"sunrise":"05:40","sunset":"19:11","time":"20220608"},"13":{"sunrise":"05:40","sunset":"19:11","time":"20220609"},"14":{"sunrise":"05:40","sunset":"19:12","time":"20220610"},"2":{"sunrise":"05:41","sunset":"19:07","time":"20220529"},"3":{"sunrise":"05:41","sunset":"19:07","time":"20220530"},"4":{"sunrise":"05:40","sunset":"19:08","time":"20220531"},"5":{"sunrise":"05:40","sunset":"19:08","time":"20220601"},"6":{"sunrise":"05:40","sunset":"19:09","time":"20220602"},"7":{"sunrise":"05:40","sunset":"19:09","time":"20220603"},"8":{"sunrise":"05:40","sunset":"19:09","time":"20220604"},"9":{"sunrise":"05:40","sunset":"19:10","time":"20220605"}},"tips":{"observe":{"0":"下小雨了,出门记得带伞~","1":"现在的温度比较舒适~"}}},"message":"OK","status":200}

错误码格式说明:

名称 类型 说明

代码示例: