实时未来十五日天气
接口地址 https://apis.kit9.cn/api/fifteen_days_weather/api.php
请求方式 GET/POST
返回格式 JSON
HTTP/HTTPS 支持
请求示例 https://apis.kit9.cn/api/fifteen_days_weather/api.php?city=上海
参数说明
参数 | 必填 | 类型 | 说明 |
---|---|---|---|
city | 是 | String | 市/县 |
返回参数
名称 | 类型 | 说明 | ||
---|---|---|---|---|
code | number | 状态码 200为正常,其它为异常 | ||
msg | string | 状态说明 | ||
data | array | 数组 | ||
date | string | 当日日期 | ||
weather | string | 当日天气 | ||
high_temperature | string | 当日高温 | ||
low_temperature | string | 当日低温 | ||
wind_direction | string | 当日风向 | ||
wind_scale | string | 当日风级 |
返回示例
{ "code": 200, "msg": "success", "data": [ { "date": "2023-07-18", "weather": "多云", "high_temperature": "33", "low_temperature": "26", "wind_direction": "东风", "wind_scale": "2" }, { "date": "2023-07-19", "weather": "中雨", "high_temperature": "32", "low_temperature": "26", "wind_direction": "东风", "wind_scale": "2" }, { "date": "2023-07-20", "weather": "中雨转小雨", "high_temperature": "30", "low_temperature": "26", "wind_direction": "东南风", "wind_scale": "2" }, { "date": "2023-07-21", "weather": "中雨转小雨", "high_temperature": "32", "low_temperature": "28", "wind_direction": "南风", "wind_scale": "1" }, { "date": "2023-07-22", "weather": "中雨转阴", "high_temperature": "34", "low_temperature": "28", "wind_direction": "南风", "wind_scale": "2" }, { "date": "2023-07-23", "weather": "小雨转多云", "high_temperature": "34", "low_temperature": "28", "wind_direction": "南风", "wind_scale": "2" }, { "date": "2023-07-24", "weather": "小雨转晴", "high_temperature": "35", "low_temperature": "28", "wind_direction": "东南风", "wind_scale": "2" }, { "date": "2023-07-25", "weather": "多云", "high_temperature": "34", "low_temperature": "28", "wind_direction": "南风", "wind_scale": "2" }, { "date": "2023-07-26", "weather": "小雨转多云", "high_temperature": "36", "low_temperature": "27", "wind_direction": "南风", "wind_scale": "1" }, { "date": "2023-07-27", "weather": "晴转多云", "high_temperature": "32", "low_temperature": "27", "wind_direction": "东南风", "wind_scale": "4-5" }, { "date": "2023-07-28", "weather": "晴转多云", "high_temperature": "35", "low_temperature": "28", "wind_direction": "东南风", "wind_scale": "2" }, { "date": "2023-07-29", "weather": "多云转阴", "high_temperature": "33", "low_temperature": "29", "wind_direction": "东南风", "wind_scale": "3-4" }, { "date": "2023-07-30", "weather": "阴转小雨", "high_temperature": "33", "low_temperature": "29", "wind_direction": "东南风", "wind_scale": "4-5" }, { "date": "2023-07-31", "weather": "小雨", "high_temperature": "33", "low_temperature": "28", "wind_direction": "东南风", "wind_scale": "4-5" }, { "date": "2023-08-01", "weather": "小雨转多云", "high_temperature": "33", "low_temperature": "29", "wind_direction": "东南风", "wind_scale": "4-5" }, { "date": "2023-08-02", "weather": "晴", "high_temperature": "33", "low_temperature": "28", "wind_direction": "东南风", "wind_scale": "3-4" } ] }