未来四十日天气
接口地址 https://apis.kit9.cn/api/forty_days_weather/api.php
请求方式 GET/POST
返回格式 JSON
HTTP/HTTPS 支持
请求示例 https://apis.kit9.cn/api/forty_days_weather/api.php?city=上海
参数说明
参数 | 必填 | 类型 | 说明 |
---|---|---|---|
city | 是 | String | 市/县 |
返回参数
名称 | 类型 | 说明 | ||
---|---|---|---|---|
code | number | 状态码 200为正常,其它为异常 | ||
msg | string | 状态说明 | ||
data | array | 数组 | ||
date | string | 今天日期 | ||
sunrise | string | 当天日出 | ||
sunset | string | 当天日落 | ||
weather | string | 当日天气 | ||
high | string | 当日高温 | ||
low | string | 当日低温 | ||
wind_scale | string | 当日风级 | ||
wind_direction | string | 当日风向 | ||
air | string | 空气质量 | ||
air_level | string | 空气质量等级 | ||
air_level_name | string | 空气质量名称 |
返回示例
{ "code": 200, "msg": "success", "data": [ { "date": "20240207", "sunrise": "06:42", "sunset": "17:34", "weather": "晴", "high": 6, "low": 0, "wind_scale": "3级", "wind_direction": "北风", "air": 57, "air_level": 2, "air_level_name": "良" }, { "date": "20240208", "sunrise": "06:41", "sunset": "17:35", "weather": "晴", "high": 7, "low": -2, "wind_scale": "2级", "wind_direction": "北风", "air": 37, "air_level": 1, "air_level_name": "优" }, { "date": "20240209", "sunrise": "06:40", "sunset": "17:35", "weather": "晴", "high": 9, "low": -3, "wind_scale": "2级", "wind_direction": "西北风", "air": 29, "air_level": 1, "air_level_name": "优" }, { "date": "20240210", "sunrise": "06:39", "sunset": "17:36", "weather": "晴", "high": 14, "low": -1, "wind_scale": "2级", "wind_direction": "西风", "air": 44, "air_level": 1, "air_level_name": "优" }, { "date": "20240211", "sunrise": "06:39", "sunset": "17:37", "weather": "晴", "high": 12, "low": 1, "wind_scale": "2级", "wind_direction": "西北风", "air": 45, "air_level": 1, "air_level_name": "优" }, { "date": "20240212", "sunrise": "06:38", "sunset": "17:38", "weather": "多云", "high": 12, "low": -1, "wind_scale": "3级", "wind_direction": "东南风", "air": 46, "air_level": 1, "air_level_name": "优" }, { "date": "20240213", "sunrise": "06:37", "sunset": "17:39", "weather": "阴", "high": 19, "low": 6, "wind_scale": "3级", "wind_direction": "南风", "air": 29, "air_level": 1, "air_level_name": "优" }, { "date": "20240214", "sunrise": "06:36", "sunset": "17:40", "weather": "多云", "high": 21, "low": 11, "wind_scale": "2级", "wind_direction": "西南风", "air": 41, "air_level": 1, "air_level_name": "优" }, { "date": "20240215", "sunrise": "06:35", "sunset": "17:41", "weather": "阴", "high": 13, "low": 6, "wind_scale": "3级", "wind_direction": "西北风", "air": 46, "air_level": 1, "air_level_name": "优" }, { "date": "20240216", "sunrise": "06:34", "sunset": "17:41", "weather": "阴", "high": 10, "low": 6, "wind_scale": "3级", "wind_direction": "东南风", "air": 46, "air_level": 1, "air_level_name": "优" }, { "date": "20240217", "sunrise": "06:33", "sunset": "17:42", "weather": "多云", "high": 17, "low": 9, "wind_scale": "3级", "wind_direction": "南风", "air": 51, "air_level": 2, "air_level_name": "良" }, { "date": "20240218", "sunrise": "06:32", "sunset": "17:43", "weather": "小雨", "high": 16, "low": 6, "wind_scale": "2级", "wind_direction": "北风", "air": 46, "air_level": 1, "air_level_name": "优" }, { "date": "20240219", "sunrise": "06:31", "sunset": "17:44", "weather": "阴", "high": 12, "low": 6, "wind_scale": "3级", "wind_direction": "东北风", "air": 35, "air_level": 1, "air_level_name": "优" }, { "date": "20240220", "sunrise": "06:30", "sunset": "17:45", "weather": "小雨", "high": 10, "low": 3, "wind_scale": "3级", "wind_direction": "北风", "air": 29, "air_level": 1, "air_level_name": "优" }, { "date": "20240221", "sunrise": "06:29", "sunset": "17:45", "weather": "霾", "high": 7, "low": 1, "wind_scale": "3级", "wind_direction": "北风", "air": 67, "air_level": 2, "air_level_name": "良" }, { "date": "20240222", "sunrise": null, "sunset": null, "weather": "霾", "high": 8, "low": 2, "wind_scale": "3级", "wind_direction": "北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240223", "sunrise": null, "sunset": null, "weather": "小雨", "high": 11, "low": 4, "wind_scale": "3级", "wind_direction": "北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240224", "sunrise": null, "sunset": null, "weather": "阴", "high": 13, "low": 7, "wind_scale": "3级", "wind_direction": "东北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240225", "sunrise": null, "sunset": null, "weather": "小雨", "high": 17, "low": 7, "wind_scale": "2级", "wind_direction": "北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240226", "sunrise": null, "sunset": null, "weather": "多云", "high": 18, "low": 10, "wind_scale": "3级", "wind_direction": "南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240227", "sunrise": null, "sunset": null, "weather": "阴", "high": 11, "low": 7, "wind_scale": "3级", "wind_direction": "东南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240228", "sunrise": null, "sunset": null, "weather": "阴", "high": 14, "low": 7, "wind_scale": "3级", "wind_direction": "西北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240229", "sunrise": null, "sunset": null, "weather": "多云", "high": 22, "low": 12, "wind_scale": "2级", "wind_direction": "西南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240301", "sunrise": null, "sunset": null, "weather": "阴", "high": 20, "low": 7, "wind_scale": "3级", "wind_direction": "南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240302", "sunrise": null, "sunset": null, "weather": "多云", "high": 13, "low": 0, "wind_scale": "3级", "wind_direction": "东南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240303", "sunrise": null, "sunset": null, "weather": "晴", "high": 13, "low": 2, "wind_scale": "2级", "wind_direction": "西北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240304", "sunrise": null, "sunset": null, "weather": "晴", "high": 15, "low": 0, "wind_scale": "2级", "wind_direction": "西风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240305", "sunrise": null, "sunset": null, "weather": "晴", "high": 10, "low": -2, "wind_scale": "2级", "wind_direction": "西北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240306", "sunrise": null, "sunset": null, "weather": "晴", "high": 8, "low": -1, "wind_scale": "2级", "wind_direction": "北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240307", "sunrise": null, "sunset": null, "weather": "晴", "high": 7, "low": 1, "wind_scale": "3级", "wind_direction": "北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240308", "sunrise": null, "sunset": null, "weather": "多云", "high": 6, "low": 2, "wind_scale": "2级", "wind_direction": "北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240309", "sunrise": null, "sunset": null, "weather": "晴", "high": 10, "low": -2, "wind_scale": "2级", "wind_direction": "西北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240310", "sunrise": null, "sunset": null, "weather": "晴", "high": 15, "low": 0, "wind_scale": "2级", "wind_direction": "西风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240311", "sunrise": null, "sunset": null, "weather": "晴", "high": 13, "low": 2, "wind_scale": "2级", "wind_direction": "西北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240312", "sunrise": null, "sunset": null, "weather": "多云", "high": 13, "low": 0, "wind_scale": "3级", "wind_direction": "东南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240313", "sunrise": null, "sunset": null, "weather": "阴", "high": 20, "low": 7, "wind_scale": "3级", "wind_direction": "南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240314", "sunrise": null, "sunset": null, "weather": "多云", "high": 22, "low": 12, "wind_scale": "2级", "wind_direction": "西南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240315", "sunrise": null, "sunset": null, "weather": "阴", "high": 14, "low": 7, "wind_scale": "3级", "wind_direction": "西北风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240316", "sunrise": null, "sunset": null, "weather": "阴", "high": 11, "low": 7, "wind_scale": "3级", "wind_direction": "东南风", "air": null, "air_level": null, "air_level_name": "" }, { "date": "20240317", "sunrise": null, "sunset": null, "weather": "多云", "high": 18, "low": 10, "wind_scale": "3级", "wind_direction": "南风", "air": null, "air_level": null, "air_level_name": "" } ] }