历史天气

历史天气

全国3000多个省市的历史天气查询,包括最高最低温度、风级、湿度、气压等指数,最低最高温度、日出日落时间、空气质量指数、首要污染物等信息。
价格: ¥0
交付方式:API
付费模式:
按量付费
套餐规格:
0元/5次(免费试用)
30元/1000次(≈0.03元/次)
199元/1万次(≈0.02元/次)
298元/2万次(≈0.015元/次)
500元/5万次(≈0.01元/次)
使用年限:
1年
01 优质数据 详尽文档
02 专业测试 保证品质
03 在线客服 及时支持
业务级错误码:
错误代码
说明
201城市和城市ID都为空
202城市不存在
203查询日期为空
204日期格式不正确
210没有信息
系统级错误码:
错误代码
说明
431http响应状态码:APIKey缺失,请附带APIKey参数
432http响应状态码:错误的APIkey长度
433http响应状态码:错误的请求key(或者返回状态码10001)
434http响应状态码:错误的APIkey类型
436http响应状态码:额度不足,或者APIKey不存在
437http响应状态码:该IP未在白名单内
531http响应状态码:请求过于频繁
532http响应状态码:未知错误,请联系管理员(或者返回533)
104服务商资源不足
接口地址 : https://openapi.chinaz.net/v1/1014/weather2
返回格式 : JSON
请求方式 : GET
请求参数:
名称
类型
必填
说明
datestring日期 默认为昨天 格式为:2022-11-11
citystring城市
cityidstring城市ID
APIKeystring申请接口时获取的APIKey值
ChinazVerstring接口版本号,取值:1.0
返回参数说明:
名称
类型
说明
statusstring状态码
msgstring状态码说明
resultstring具体返回内容
result.cityidstring城市ID
result.datestring日期
result.weatherstring天气
result.temphighstring最高气温
result.templowstring最低气温
result.imgstring图片数字
result.humiditystring湿度
result.pressurestring气压
result.windspeedstring风速
result.winddirectstring风向
result.windpowerstring风级
result.sunrisestring日出时间
result.sunsetstring日落时间
result.aqistringAQI指数
result.primarypollutantstring首要污染物
result.citynamestring城市
正确的返回示例:
copy 复制
错误的返回示例:
copy 复制
关于我们
开放平台简介
广告服务
人才招聘
版权声明
用户指南
买家中心
帮助文档
常见问题
账户充值
合作伙伴
供应商中心
申请入驻
入驻说明
服务支持
联系客服
© CopyRight 2002-2025, CHINAZ.NET, Inc.All Rights Reserved. 闽ICP备08105208-2号 增值电信业务经营许可证闽B2-20120007号