API简介:用于查询某城市的40天天气,可以根据IP查询(数据源:中国天气网) 接口问题联系相关负责人沟通修复:查看该接口开发者 接口地址:http://openapi.52vmy.cn/api/query/tian/40day 返回格式:JSON 请求方式:GET 请求参数:https://openapi.52vmy.cn/api/query/tian/40day?token=YOU_TOKEN&city=湖北武汉 极速测试(自动) 历史统计 历史列表 注:单纯检测接口是否可调通,返回的数据请自行检查 再次检测 检测接口中...(检测服务是否可用) 状态码 累计次数 最后检测时间 正常 5 2026-01-06 09:26:32 故障 0 0000-00-00 00:00:00 注意事项 Bug修复 专属线路 您好!我们的平台聚合了上千位开发者提供的免费接口,我们已尽力确保接口的稳定性,但由于无法控制其他开发者的接口,可能会出现不稳定或服务中断的情况。对此,我们深感抱歉!我们正在积极改善这一问题,感谢您的理解与支持。 1. 由于开发者可能因盈利问题导致接口失效,我为此向您道歉。 2. 我们竭尽全力改进平台的接口稳定性。 3. 为便于您使用,我们提供了智能生成对接代码和在线极速测试接口的功能。 4. 我们将继续努力提供更多可靠的接口,满足您的需求。 5. 若有任何问题,欢迎通过微信与我联系:13132131321。再次感谢您的支持与信任! 接口注意:接口故障请及时反馈,修复进度将通过短信通知。 非官方接口,请联系开发者获取技术支持 新 Bug修复:非官方接口,Bug反馈请联系开发者 新 会员线路:因调用量剧增,定制独享优质线路请 参考定制方案 专属线路 成本透明 0服务费 请求参数 接口名称 是否必填 接口类型 接口说明 token 是 string 在openapi.52vmy.cn的用户TOKEN 返回示例 { "code": 200, "msg": "成功", "data": { "city": "武汉", "time": "2025年12月25日-2026年02月02日", "msg": "预计未来40天白天平均气温为10℃", "data": [ { "date": "20251225", "week": "星期四", "weather": "雾转晴", "max": "10", "min": "-2" }, { "date": "20251226", "week": "星期五", "weather": "晴", "max": "10", "min": "-1" }, { "date": "20251227", "week": "星期六", "weather": "晴转多云", "max": "13", "min": "-1" }, { "date": "20251228", "week": "星期日", "weather": "多云转晴", "max": "17", "min": "0" }, { "date": "20251229", "week": "星期一", "weather": "多云转阴", "max": "16", "min": "1" }, { "date": "20251230", "week": "星期二", "weather": "晴转多云", "max": "16", "min": "4" }, { "date": "20251231", "week": "星期三", "weather": "多云转小雨", "max": "11", "min": "5", "label": "12月31日降温5℃" }, { "date": "20260101", "week": "星期四", "weather": "阴转雨", "max": "9", "min": "5" }, { "date": "20260102", "week": "星期五", "weather": "雨转阴", "max": "7", "min": "2" }, { "date": "20260103", "week": "星期六", "weather": "阴", "max": "9", "min": "1" }, { "date": "20260104", "week": "星期日", "weather": "多云转晴", "max": "7", "min": "-4" }, { "date": "20260105", "week": "星期一", "weather": "晴", "max": "6", "min": "-3" }, { "date": "20260106", "week": "星期二", "weather": "晴", "max": "9", "min": "0" }, { "date": "20260107", "week": "星期三", "weather": "晴", "max": "11", "min": "0" }, { "date": "20260108", "week": "星期四", "weather": "多云转阴", "max": "11", "min": "1" }, { "date": "20260109", "week": "星期五", "weather": "雨夹雪", "max": "9", "min": "0" }, { "date": "20260110", "week": "星期六", "weather": "雨夹雪", "max": "10", "min": "0" }, { "date": "20260111", "week": "星期日", "weather": "多云", "max": "10", "min": "0" }, { "date": "20260112", "week": "星期一", "weather": "多云", "max": "10", "min": "1" }, { "date": "20260113", "week": "星期二", "weather": "多云", "max": "10", "min": "1" }, { "date": "20260114", "week": "星期三", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260115", "week": "星期四", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260116", "week": "星期五", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260117", "week": "星期六", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260118", "week": "星期日", "weather": "多云", "max": "10", "min": "0" }, { "date": "20260119", "week": "星期一", "weather": "多云", "max": "10", "min": "0" }, { "date": "20260120", "week": "星期二", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260121", "week": "星期三", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260122", "week": "星期四", "weather": "多云", "max": "9", "min": "-1" }, { "date": "20260123", "week": "星期五", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260124", "week": "星期六", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260125", "week": "星期日", "weather": "雨夹雪", "max": "10", "min": "0" }, { "date": "20260126", "week": "星期一", "weather": "雨夹雪", "max": "9", "min": "0" }, { "date": "20260127", "week": "星期二", "weather": "雨夹雪", "max": "9", "min": "0" }, { "date": "20260128", "week": "星期三", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260129", "week": "星期四", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260130", "week": "星期五", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260131", "week": "星期六", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260201", "week": "星期日", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260202", "week": "星期一", "weather": "多云", "max": "9", "min": "0" } ] } } 返回参数 接口名称 接口类型 接口说明 开发者未填写此数据,无法生成 JSON 示例,请参考小白对接 小白教程 本教程帮助用户快速对接天气查询(40天)接口,现已支持智能生成代码 为照顾小白,特意编写此对接文档教程,若有不懂请及时联系接口维护者。 天气查询(40天) 小白快速对接「天气查询(40天)」简易教程 实时调试 部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口 调试工具支持的请求类型有: GETPOSTPUTHEADTRACEDELETECONNECTOPTIONS GET 请求 POST 请求 PUT 请求 HEAD 请求 TRACE 请求 DELETE 请求 CONNECT 请求 OPTIONS 请求 在线调试 温馨提示:请修改请求参数,未修改可能返回报错; 参数名称 参数值(修改后测试) 添加参数 参数支持JSON格式,以及GET参数请求方式 返回键值对添加请求参数 { "code": 200, "msg": "成功", "data": { "city": "武汉", "time": "2025年12月25日-2026年02月02日", "msg": "预计未来40天白天平均气温为10℃", "data": [ { "date": "20251225", "week": "星期四", "weather": "雾转晴", "max": "10", "min": "-2" }, { "date": "20251226", "week": "星期五", "weather": "晴", "max": "10", "min": "-1" }, { "date": "20251227", "week": "星期六", "weather": "晴转多云", "max": "13", "min": "-1" }, { "date": "20251228", "week": "星期日", "weather": "多云转晴", "max": "17", "min": "0" }, { "date": "20251229", "week": "星期一", "weather": "多云转阴", "max": "16", "min": "1" }, { "date": "20251230", "week": "星期二", "weather": "晴转多云", "max": "16", "min": "4" }, { "date": "20251231", "week": "星期三", "weather": "多云转小雨", "max": "11", "min": "5", "label": "12月31日降温5℃" }, { "date": "20260101", "week": "星期四", "weather": "阴转雨", "max": "9", "min": "5" }, { "date": "20260102", "week": "星期五", "weather": "雨转阴", "max": "7", "min": "2" }, { "date": "20260103", "week": "星期六", "weather": "阴", "max": "9", "min": "1" }, { "date": "20260104", "week": "星期日", "weather": "多云转晴", "max": "7", "min": "-4" }, { "date": "20260105", "week": "星期一", "weather": "晴", "max": "6", "min": "-3" }, { "date": "20260106", "week": "星期二", "weather": "晴", "max": "9", "min": "0" }, { "date": "20260107", "week": "星期三", "weather": "晴", "max": "11", "min": "0" }, { "date": "20260108", "week": "星期四", "weather": "多云转阴", "max": "11", "min": "1" }, { "date": "20260109", "week": "星期五", "weather": "雨夹雪", "max": "9", "min": "0" }, { "date": "20260110", "week": "星期六", "weather": "雨夹雪", "max": "10", "min": "0" }, { "date": "20260111", "week": "星期日", "weather": "多云", "max": "10", "min": "0" }, { "date": "20260112", "week": "星期一", "weather": "多云", "max": "10", "min": "1" }, { "date": "20260113", "week": "星期二", "weather": "多云", "max": "10", "min": "1" }, { "date": "20260114", "week": "星期三", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260115", "week": "星期四", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260116", "week": "星期五", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260117", "week": "星期六", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260118", "week": "星期日", "weather": "多云", "max": "10", "min": "0" }, { "date": "20260119", "week": "星期一", "weather": "多云", "max": "10", "min": "0" }, { "date": "20260120", "week": "星期二", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260121", "week": "星期三", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260122", "week": "星期四", "weather": "多云", "max": "9", "min": "-1" }, { "date": "20260123", "week": "星期五", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260124", "week": "星期六", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260125", "week": "星期日", "weather": "雨夹雪", "max": "10", "min": "0" }, { "date": "20260126", "week": "星期一", "weather": "雨夹雪", "max": "9", "min": "0" }, { "date": "20260127", "week": "星期二", "weather": "雨夹雪", "max": "9", "min": "0" }, { "date": "20260128", "week": "星期三", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260129", "week": "星期四", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260130", "week": "星期五", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260131", "week": "星期六", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260201", "week": "星期日", "weather": "多云", "max": "9", "min": "0" }, { "date": "20260202", "week": "星期一", "weather": "多云", "max": "9", "min": "0" } ] } }