天气信息查询
查询当地天气信息以及未来天气

接口地址: https://api.oioweb.cn/api/weather/GetWeather

返回格式: JSON

请求方式: GET

请求示例: https://api.oioweb.cn/api/weather/GetWeather

请求参数说明:

名称 必填 类型 说明

返回参数说明:

名称 类型 说明
city.Country string 国家
city.Province string 省份
city.City string 城市
city.Carrier string 运营商
city.UserIp string IP
condition.day_weather string 当天天气
condition.day_weather_short string 当前天气
condition.day_wind_direction string 风向
condition.day_wind_power string 风力等级
condition.max_degree number 最高温度
condition.min_degree number 最低温度
condition.aqi object 空气质量

返回示例:

{"code":200,"result":{"city":{"Country":"中国","Province":"河南","City":"郑州","Carrier":"联通","UserIp":"182.119.12.87"},"condition":{"day_weather":"多云","day_weather_short":"多云","day_wind_direction":"南风","day_wind_power":"1","max_degree":"11","min_degree":"-2","night_weather":"多云","night_weather_short":"多云","night_wind_direction":"东南风","night_wind_power":"1","aqi":{"aqi":95,"aqi_level":2,"aqi_name":"良","co":"8","no2":"34","o3":"12","pm10":"81","pm2.5":"95","so2":"4","update_time":"202401282300"}},"forecast":[]},"msg":"success"}

错误码格式说明:

名称 说明
200 解析成功
400 输入参数错误导致失败
500 服务器端出错导致失败

代码示例:

暂无示例,有问题或者不懂请加站长交流群:611987360  获取调用方法。