公里级网格天气预报
获取中国地区未来10天逐三小时公里级天气预报。
更新频率查看
请求地址示例
参数
参数名 | 类型 | 默认值 | 必须 | 备注 |
---|---|---|---|---|
key | String | 无 | 是 | 你的API密钥 |
location | String | 无 | 是 | 位置(格式是 纬度:经度,英文冒号分隔) |
unit | Unit | c | 否 | 单位 |
start | Int | 0 | 否 | 起始时间(0 代表今天,1 代表明天) |
days | Int | 权限允许的最多天数 | 否 | 天数 |
返回结果
{
"results": [
{
"location": {
"longitude": "116.359805",
"latitude": "39.865927"
},
"data": [
{
"time": "2018-08-06T08:00:00+08:00", // 时间
"temperature": "26.95", // 温度,单位为c摄氏度或f华氏度
"humidity": "87.16", // 相对湿度,0~100,单位为百分比
"precip": "2.01", // 上一预报时刻到该时刻之间的总降水量,单位mm
"clouds": "84.49", // 云量,单位%,范围0~100,天空被云覆盖的百分比
"wind_speed": "2.95", // 风速,单位为km/h公里每小时或mph英里每小时
"wind_scale": "1", // 风力等级
"wind_direction_degree": "232.43", // 风向角
"wind_direction": "西南", // 风向
"code": "14", // 天气现象代码
"text": "中雨" // 天气现象文字
}, {
...
}
],
"last_update": "2018-08-06T11:59:25+08:00"
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28