企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~[api] get:/historyWeather/weather *string:key=127ba91f8f5c8d5f57133864ab46f88c#申请的key,个人中心我的数据列表查看 *string:city_id#城市地区ID *string:weather_date#日期,格式:2017-07-15,日期不能大于等于今日日期 <<< success { "reason": "查询成功", // 返回说明(string) "result": { "city_id": "13", // 城市地区ID(string) "city_name": "繁昌", // 城市地区名称(string) "weather_date": "2018-04-03", // 天气日期(string) "day_weather": "多云", // 白天天气(string) "night_weather": "多云", // 夜间天气(string) "day_temp": "28℃", // 白天最高温度(string) "night_temp": "15℃", // 夜间最低温度(string) "day_wind": "东南风", // 白天风向(string) "day_wind_comp": "&lt;3级", // 白天分力(string) "night_wind": "北风", // 夜间风向(string) "night_wind_comp": "&lt;3级", // 夜间风力(string) "day_weather_id": "01", // 白天天气标识(string) "night_weather_id": "01" // 夜间天气标识(string) }, // 返回结果集(string) "error_code": 0 // 返回码(int) } <<< error_227702 { "reason": "城市ID格式错误", // 返回说明(string) "result": null, // 返回结果(有数据为string, 无数据为null) "error_code": 227702 // 返回码(int) } <<< error_227703 { "reason":"日期格式不正确", // 返回说明(string) "result":null, // 返回结果(有数据为string, 无数据为null) "error_code":227703 // 返回码(int) } ~~~ ## 接口说明 >[danger] 根据城市ID和日期查询历史天气信息,日期支持从2011-01-01开始