API简介:用于查询某城市的天气,可以根据IP查询(数据源:中国天气网)

接口问题联系相关负责人沟通修复:查看该接口开发者

接口地址:http://openapi.52vmy.cn/api/query/tian/hour

返回格式:JSON

请求方式:GET

请求参数:https://openapi.52vmy.cn/api/query/tian/hour?token=YOU_TOKEN&city=湖北武汉

注:单纯检测接口是否可调通,返回的数据请自行检查

检测接口中...(检测服务是否可用)


状态码 累计次数 最后检测时间
正常 10 2026-01-05 10:37:58
故障 0 0000-00-00 00:00:00

您好!我们的平台聚合了上千位开发者提供的免费接口,我们已尽力确保接口的稳定性,但由于无法控制其他开发者的接口,可能会出现不稳定或服务中断的情况。对此,我们深感抱歉!我们正在积极改善这一问题,感谢您的理解与支持。
1. 由于开发者可能因盈利问题导致接口失效,我为此向您道歉
2. 我们竭尽全力改进平台的接口稳定性。
3. 为便于您使用,我们提供了智能生成对接代码和在线极速测试接口的功能。
4. 我们将继续努力提供更多可靠的接口,满足您的需求。
5. 若有任何问题,欢迎通过微信与我联系:13132131321。再次感谢您的支持与信任!


接口注意:接口故障请及时反馈,修复进度将通过短信通知。

非官方接口,请联系开发者获取技术支持

Bug修复:非官方接口,Bug反馈请联系开发者

会员线路:因调用量剧增,定制独享优质线路请 参考定制方案

专属线路 成本透明 0服务费

请求参数

接口名称 是否必填 接口类型 接口说明
token string 在openapi.52vmy.cn的用户TOKEN

返回示例

{
    "code": 200,
    "msg": "成功",
    "data": {
        "20251225": {
            "20:00": {
                "weather": "晴",
                "temp": "2",
                "somatosensory": "8",
                "humidity": "40",
                "visibility": "11",
                "pressure": "1023",
                "cloud": "6",
                "content": "12月25日 周四 20:00,天气:晴,气温:2°,体感温度:8°,湿度:40%,气压:1023hPa,云量:6%,能见度:11km"
            },
            "21:00": {
                "weather": "晴",
                "temp": "1",
                "somatosensory": "8",
                "humidity": "57",
                "visibility": "11",
                "pressure": "1024",
                "cloud": "7",
                "content": "12月25日 周四 21:00,天气:晴,气温:1°,体感温度:8°,湿度:57%,气压:1024hPa,云量:7%,能见度:11km"
            },
            "22:00": {
                "weather": "晴",
                "temp": "0",
                "somatosensory": "1",
                "humidity": "57",
                "visibility": "11",
                "pressure": "1024",
                "cloud": "9",
                "content": "12月25日 周四 22:00,天气:晴,气温:0°,体感温度:1°,湿度:57%,气压:1024hPa,云量:9%,能见度:11km"
            },
            "23:00": {
                "weather": "晴",
                "temp": "0",
                "somatosensory": "1",
                "humidity": "75",
                "visibility": "11",
                "pressure": "1025",
                "cloud": "10",
                "content": "12月25日 周四 23:00,天气:晴,气温:0°,体感温度:1°,湿度:75%,气压:1025hPa,云量:10%,能见度:11km"
            }
        },
        "20251226": {
            "00:00": {
                "weather": "晴",
                "temp": "0",
                "somatosensory": "1",
                "humidity": "72",
                "visibility": "11",
                "pressure": "1025",
                "cloud": "8",
                "content": "12月26日 周五 00:00,天气:晴,气温:0°,体感温度:1°,湿度:72%,气压:1025hPa,云量:8%,能见度:11km"
            },
            "01:00": {
                "weather": "晴",
                "temp": "0",
                "somatosensory": "1",
                "humidity": "73",
                "visibility": "10",
                "pressure": "1025",
                "cloud": "6",
                "content": "12月26日 周五 01:00,天气:晴,气温:0°,体感温度:1°,湿度:73%,气压:1025hPa,云量:6%,能见度:10km"
            },
            "02:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "80",
                "visibility": "10",
                "pressure": "1025",
                "cloud": "4",
                "content": "12月26日 周五 02:00,天气:晴,气温:-1°,体感温度:2°,湿度:80%,气压:1025hPa,云量:4%,能见度:10km"
            },
            "03:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "80",
                "visibility": "10",
                "pressure": "1026",
                "cloud": "3",
                "content": "12月26日 周五 03:00,天气:晴,气温:-1°,体感温度:2°,湿度:80%,气压:1026hPa,云量:3%,能见度:10km"
            },
            "04:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "81",
                "visibility": "10",
                "pressure": "1026",
                "cloud": "2",
                "content": "12月26日 周五 04:00,天气:晴,气温:-1°,体感温度:2°,湿度:81%,气压:1026hPa,云量:2%,能见度:10km"
            },
            "05:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "82",
                "visibility": "10",
                "pressure": "1027",
                "cloud": "2",
                "content": "12月26日 周五 05:00,天气:晴,气温:-1°,体感温度:2°,湿度:82%,气压:1027hPa,云量:2%,能见度:10km"
            },
            "06:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "81",
                "visibility": "10",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 06:00,天气:晴,气温:-1°,体感温度:2°,湿度:81%,气压:1027hPa,云量:1%,能见度:10km"
            },
            "07:00": {
                "weather": "晴",
                "temp": "-2",
                "somatosensory": "2",
                "humidity": "84",
                "visibility": "10",
                "pressure": "1028",
                "cloud": "1",
                "content": "12月26日 周五 07:00,天气:晴,气温:-2°,体感温度:2°,湿度:84%,气压:1028hPa,云量:1%,能见度:10km"
            },
            "08:00": {
                "weather": "晴",
                "temp": "-2",
                "somatosensory": "2",
                "humidity": "88",
                "visibility": "11",
                "pressure": "1029",
                "cloud": "0",
                "content": "12月26日 周五 08:00,天气:晴,气温:-2°,体感温度:2°,湿度:88%,气压:1029hPa,云量:0%,能见度:11km"
            },
            "09:00": {
                "weather": "晴",
                "temp": "3",
                "somatosensory": "3",
                "humidity": "70",
                "visibility": "12",
                "pressure": "1029",
                "cloud": "0",
                "content": "12月26日 周五 09:00,天气:晴,气温:3°,体感温度:3°,湿度:70%,气压:1029hPa,云量:0%,能见度:12km"
            },
            "10:00": {
                "weather": "晴",
                "temp": "3",
                "somatosensory": "3",
                "humidity": "70",
                "visibility": "13",
                "pressure": "1030",
                "cloud": "0",
                "content": "12月26日 周五 10:00,天气:晴,气温:3°,体感温度:3°,湿度:70%,气压:1030hPa,云量:0%,能见度:13km"
            },
            "11:00": {
                "weather": "晴",
                "temp": "8",
                "somatosensory": "3",
                "humidity": "52",
                "visibility": "13",
                "pressure": "1029",
                "cloud": "0",
                "content": "12月26日 周五 11:00,天气:晴,气温:8°,体感温度:3°,湿度:52%,气压:1029hPa,云量:0%,能见度:13km"
            },
            "12:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "3",
                "humidity": "48",
                "visibility": "14",
                "pressure": "1028",
                "cloud": "0",
                "content": "12月26日 周五 12:00,天气:晴,气温:10°,体感温度:3°,湿度:48%,气压:1028hPa,云量:0%,能见度:14km"
            },
            "13:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "3",
                "humidity": "48",
                "visibility": "15",
                "pressure": "1027",
                "cloud": "0",
                "content": "12月26日 周五 13:00,天气:晴,气温:10°,体感温度:3°,湿度:48%,气压:1027hPa,云量:0%,能见度:15km"
            },
            "14:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "3",
                "humidity": "44",
                "visibility": "15",
                "pressure": "1027",
                "cloud": "0",
                "content": "12月26日 周五 14:00,天气:晴,气温:10°,体感温度:3°,湿度:44%,气压:1027hPa,云量:0%,能见度:15km"
            },
            "15:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "2",
                "humidity": "44",
                "visibility": "15",
                "pressure": "1027",
                "cloud": "0",
                "content": "12月26日 周五 15:00,天气:晴,气温:10°,体感温度:2°,湿度:44%,气压:1027hPa,云量:0%,能见度:15km"
            },
            "16:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "2",
                "humidity": "43",
                "visibility": "15",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 16:00,天气:晴,气温:10°,体感温度:2°,湿度:43%,气压:1027hPa,云量:1%,能见度:15km"
            },
            "17:00": {
                "weather": "晴",
                "temp": "9",
                "somatosensory": "2",
                "humidity": "47",
                "visibility": "14",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 17:00,天气:晴,气温:9°,体感温度:2°,湿度:47%,气压:1027hPa,云量:1%,能见度:14km"
            },
            "18:00": {
                "weather": "晴",
                "temp": "5",
                "somatosensory": "2",
                "humidity": "43",
                "visibility": "14",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 18:00,天气:晴,气温:5°,体感温度:2°,湿度:43%,气压:1027hPa,云量:1%,能见度:14km"
            },
            "19:00": {
                "weather": "晴",
                "temp": "5",
                "somatosensory": "2",
                "humidity": "40",
                "visibility": "13",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 19:00,天气:晴,气温:5°,体感温度:2°,湿度:40%,气压:1027hPa,云量:1%,能见度:13km"
            }
        }
    }
}

返回参数

接口名称 接口类型 接口说明

开发者未填写此数据,无法生成 JSON 示例,请参考小白对接

小白教程

本教程帮助用户快速对接天气查询(小时级)接口,现已支持智能生成代码

实时调试

部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口

在线调试

温馨提示:请修改请求参数,未修改可能返回报错

参数名称 参数值(修改后测试)
{
    "code": 200,
    "msg": "成功",
    "data": {
        "20251225": {
            "20:00": {
                "weather": "晴",
                "temp": "2",
                "somatosensory": "8",
                "humidity": "40",
                "visibility": "11",
                "pressure": "1023",
                "cloud": "6",
                "content": "12月25日 周四 20:00,天气:晴,气温:2°,体感温度:8°,湿度:40%,气压:1023hPa,云量:6%,能见度:11km"
            },
            "21:00": {
                "weather": "晴",
                "temp": "1",
                "somatosensory": "8",
                "humidity": "57",
                "visibility": "11",
                "pressure": "1024",
                "cloud": "7",
                "content": "12月25日 周四 21:00,天气:晴,气温:1°,体感温度:8°,湿度:57%,气压:1024hPa,云量:7%,能见度:11km"
            },
            "22:00": {
                "weather": "晴",
                "temp": "0",
                "somatosensory": "1",
                "humidity": "57",
                "visibility": "11",
                "pressure": "1024",
                "cloud": "9",
                "content": "12月25日 周四 22:00,天气:晴,气温:0°,体感温度:1°,湿度:57%,气压:1024hPa,云量:9%,能见度:11km"
            },
            "23:00": {
                "weather": "晴",
                "temp": "0",
                "somatosensory": "1",
                "humidity": "75",
                "visibility": "11",
                "pressure": "1025",
                "cloud": "10",
                "content": "12月25日 周四 23:00,天气:晴,气温:0°,体感温度:1°,湿度:75%,气压:1025hPa,云量:10%,能见度:11km"
            }
        },
        "20251226": {
            "00:00": {
                "weather": "晴",
                "temp": "0",
                "somatosensory": "1",
                "humidity": "72",
                "visibility": "11",
                "pressure": "1025",
                "cloud": "8",
                "content": "12月26日 周五 00:00,天气:晴,气温:0°,体感温度:1°,湿度:72%,气压:1025hPa,云量:8%,能见度:11km"
            },
            "01:00": {
                "weather": "晴",
                "temp": "0",
                "somatosensory": "1",
                "humidity": "73",
                "visibility": "10",
                "pressure": "1025",
                "cloud": "6",
                "content": "12月26日 周五 01:00,天气:晴,气温:0°,体感温度:1°,湿度:73%,气压:1025hPa,云量:6%,能见度:10km"
            },
            "02:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "80",
                "visibility": "10",
                "pressure": "1025",
                "cloud": "4",
                "content": "12月26日 周五 02:00,天气:晴,气温:-1°,体感温度:2°,湿度:80%,气压:1025hPa,云量:4%,能见度:10km"
            },
            "03:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "80",
                "visibility": "10",
                "pressure": "1026",
                "cloud": "3",
                "content": "12月26日 周五 03:00,天气:晴,气温:-1°,体感温度:2°,湿度:80%,气压:1026hPa,云量:3%,能见度:10km"
            },
            "04:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "81",
                "visibility": "10",
                "pressure": "1026",
                "cloud": "2",
                "content": "12月26日 周五 04:00,天气:晴,气温:-1°,体感温度:2°,湿度:81%,气压:1026hPa,云量:2%,能见度:10km"
            },
            "05:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "82",
                "visibility": "10",
                "pressure": "1027",
                "cloud": "2",
                "content": "12月26日 周五 05:00,天气:晴,气温:-1°,体感温度:2°,湿度:82%,气压:1027hPa,云量:2%,能见度:10km"
            },
            "06:00": {
                "weather": "晴",
                "temp": "-1",
                "somatosensory": "2",
                "humidity": "81",
                "visibility": "10",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 06:00,天气:晴,气温:-1°,体感温度:2°,湿度:81%,气压:1027hPa,云量:1%,能见度:10km"
            },
            "07:00": {
                "weather": "晴",
                "temp": "-2",
                "somatosensory": "2",
                "humidity": "84",
                "visibility": "10",
                "pressure": "1028",
                "cloud": "1",
                "content": "12月26日 周五 07:00,天气:晴,气温:-2°,体感温度:2°,湿度:84%,气压:1028hPa,云量:1%,能见度:10km"
            },
            "08:00": {
                "weather": "晴",
                "temp": "-2",
                "somatosensory": "2",
                "humidity": "88",
                "visibility": "11",
                "pressure": "1029",
                "cloud": "0",
                "content": "12月26日 周五 08:00,天气:晴,气温:-2°,体感温度:2°,湿度:88%,气压:1029hPa,云量:0%,能见度:11km"
            },
            "09:00": {
                "weather": "晴",
                "temp": "3",
                "somatosensory": "3",
                "humidity": "70",
                "visibility": "12",
                "pressure": "1029",
                "cloud": "0",
                "content": "12月26日 周五 09:00,天气:晴,气温:3°,体感温度:3°,湿度:70%,气压:1029hPa,云量:0%,能见度:12km"
            },
            "10:00": {
                "weather": "晴",
                "temp": "3",
                "somatosensory": "3",
                "humidity": "70",
                "visibility": "13",
                "pressure": "1030",
                "cloud": "0",
                "content": "12月26日 周五 10:00,天气:晴,气温:3°,体感温度:3°,湿度:70%,气压:1030hPa,云量:0%,能见度:13km"
            },
            "11:00": {
                "weather": "晴",
                "temp": "8",
                "somatosensory": "3",
                "humidity": "52",
                "visibility": "13",
                "pressure": "1029",
                "cloud": "0",
                "content": "12月26日 周五 11:00,天气:晴,气温:8°,体感温度:3°,湿度:52%,气压:1029hPa,云量:0%,能见度:13km"
            },
            "12:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "3",
                "humidity": "48",
                "visibility": "14",
                "pressure": "1028",
                "cloud": "0",
                "content": "12月26日 周五 12:00,天气:晴,气温:10°,体感温度:3°,湿度:48%,气压:1028hPa,云量:0%,能见度:14km"
            },
            "13:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "3",
                "humidity": "48",
                "visibility": "15",
                "pressure": "1027",
                "cloud": "0",
                "content": "12月26日 周五 13:00,天气:晴,气温:10°,体感温度:3°,湿度:48%,气压:1027hPa,云量:0%,能见度:15km"
            },
            "14:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "3",
                "humidity": "44",
                "visibility": "15",
                "pressure": "1027",
                "cloud": "0",
                "content": "12月26日 周五 14:00,天气:晴,气温:10°,体感温度:3°,湿度:44%,气压:1027hPa,云量:0%,能见度:15km"
            },
            "15:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "2",
                "humidity": "44",
                "visibility": "15",
                "pressure": "1027",
                "cloud": "0",
                "content": "12月26日 周五 15:00,天气:晴,气温:10°,体感温度:2°,湿度:44%,气压:1027hPa,云量:0%,能见度:15km"
            },
            "16:00": {
                "weather": "晴",
                "temp": "10",
                "somatosensory": "2",
                "humidity": "43",
                "visibility": "15",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 16:00,天气:晴,气温:10°,体感温度:2°,湿度:43%,气压:1027hPa,云量:1%,能见度:15km"
            },
            "17:00": {
                "weather": "晴",
                "temp": "9",
                "somatosensory": "2",
                "humidity": "47",
                "visibility": "14",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 17:00,天气:晴,气温:9°,体感温度:2°,湿度:47%,气压:1027hPa,云量:1%,能见度:14km"
            },
            "18:00": {
                "weather": "晴",
                "temp": "5",
                "somatosensory": "2",
                "humidity": "43",
                "visibility": "14",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 18:00,天气:晴,气温:5°,体感温度:2°,湿度:43%,气压:1027hPa,云量:1%,能见度:14km"
            },
            "19:00": {
                "weather": "晴",
                "temp": "5",
                "somatosensory": "2",
                "humidity": "40",
                "visibility": "13",
                "pressure": "1027",
                "cloud": "1",
                "content": "12月26日 周五 19:00,天气:晴,气温:5°,体感温度:2°,湿度:40%,气压:1027hPa,云量:1%,能见度:13km"
            }
        }
    }
}