
历史天气
全国3000多个省市的历史天气查询,包括最高最低温度、风级、湿度、气压等指数,最低最高温度、日出日落时间、空气质量指数、首要污染物等信息。
价格: ¥0
交付方式:API
付费模式:
按量付费
套餐规格:
0元/5次(免费试用)
30元/1000次(≈0.03元/次)
199元/1万次(≈0.02元/次)
298元/2万次(≈0.015元/次)
500元/5万次(≈0.01元/次)
使用年限:
1年
接口地址 : https://openapi.chinaz.net/v1/1014/weather2
返回格式 : JSON
请求方式 : GET
请求参数:
名称 | 类型 | 必填 | 说明 |
---|---|---|---|
date | string | 是 | 日期 默认为昨天 格式为:2022-11-11 |
city | string | 否 | 城市 |
cityid | string | 否 | 城市ID |
APIKey | string | 是 | 申请接口时获取的APIKey值 |
ChinazVer | string | 是 | 接口版本号,取值:1.0 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
status | string | 状态码 |
msg | string | 状态码说明 |
result | string | 具体返回内容 |
result.cityid | string | 城市ID |
result.date | string | 日期 |
result.weather | string | 天气 |
result.temphigh | string | 最高气温 |
result.templow | string | 最低气温 |
result.img | string | 图片数字 |
result.humidity | string | 湿度 |
result.pressure | string | 气压 |
result.windspeed | string | 风速 |
result.winddirect | string | 风向 |
result.windpower | string | 风级 |
result.sunrise | string | 日出时间 |
result.sunset | string | 日落时间 |
result.aqi | string | AQI指数 |
result.primarypollutant | string | 首要污染物 |
result.cityname | string | 城市 |
正确的返回示例:
错误的返回示例: