过去24小时历史天气
获取指定城市过去24小时逐小时的历史天气。
更新频率查看
请求地址示例
参数
参数名 | 类型 | 默认值 | 必须 | 备注 |
---|---|---|---|---|
key | String | 无 | 是 | 你的API密钥 |
location | Location | 无 | 是 | 所查询的位置 |
language | Language | zh-Hans | 否 | 语言 |
unit | Unit | c | 否 | 单位 |
返回结果
{
"results": [{
"location": {
"id": "C23NB62W20TF",
"name": "西雅图",
"country": "US",
"path": "西雅图,华盛顿州,美国",
"timezone": "America/Los_Angeles",
"timezone_offset": "-08:00"
},
"hourly_history": [{ //最近24小时天气历史记录数组
"text": "多云",
"code": "4",
"temperature": "6",
"feels_like": "4",
"pressure": "1018",
"humidity": "86",
"visibility": "16.09",
"wind_direction": "南",
"wind_direction_degree": "170",
"wind_speed": "8.05",
"wind_scale": "2",
"clouds": "90",
"dew_point": "-16",
"last_update": "2015-12-02T22:45:00+08:00"
}, {
"text": "多云",
"code": "4",
"temperature": "6",
"feels_like": "4",
"pressure": "1018",
"humidity": "87",
"visibility": "16.09",
"wind_direction": "东南",
"wind_direction_degree": "170",
"wind_speed": "9.66",
"wind_scale": "2",
"clouds": "90",
"dew_point": "-16",
"last_update": "2015-12-02T21:45:00+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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45