API简介:自定义地区天气信息查询

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

接口地址:https://api.oioweb.cn/api/weather/weather

返回格式:JSON

请求方式:GET

请求参数:https://api.oioweb.cn/api/weather/weather?city_name=郑州市

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

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


状态码 累计次数 最后检测时间
正常 0 0000-00-00 00:00:00
故障 467 2024-04-27 12:33:15

您好!我们的平台聚合了 上千位开发者提供的免费接口 ,尽管我们已经付出了很大的努力来确保接口的稳定性。
1. 然而,由于我们 无法控制 其他【开发者】的 接口,不稳定或者他可能跑路了,因为不赚钱。。。我替他向您道歉!!!!!
2. 但请放心,我们正在竭尽所能来改进这个情况。
3. 为了方便您使用,我们还推出了智能生成对接代码和在线极速测试接口是否可用的功能。
4. 我们真诚希望您 理解并谅解 这一挑战,同时我们将继续 努力提供更多可靠的接口 ,以满足您的需求。
5. 最后,如果您需要与我取得联系,我的微信:13132131321,再次感谢您对我们的支持与信任!!!


接口注意:接口故障请立即 点我反馈,修复进度会通过短信通知!

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

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

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

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

请求参数

接口名称 是否必填 接口类型 接口说明
city_name string 城市名字

返回示例

{
    "code": 200,
    "result": {
        "alert": null,
        "aqi": 60,
        "city_name": "郑州",
        "current_condition": "小雨",
        "current_temperature": 20,
        "current_time": 1696395161,
        "dat_condition": "阴",
        "dat_high_temperature": 17,
        "dat_low_temperature": 12,
        "dat_weather_icon_id": "2",
        "day_condition": "小雨",
        "download_icon": 1,
        "forecast_list": [
            {
                "condition": "多云转阴",
                "date": "2023-10-03",
                "high_temperature": "25",
                "low_temperature": "16",
                "weather_icon_id": "1",
                "wind_direction": "西南风",
                "wind_level": "1"
            },
            {
                "condition": "阴",
                "hour": "10",
                "temperature": "17",
                "weather_icon_id": "2",
                "wind_direction": "NE",
                "wind_level": "16.70"
            },
            {
                "condition": "阴",
                "hour": "11",
                "temperature": "18",
                "weather_icon_id": "2",
                "wind_direction": "NE",
                "wind_level": "16.70"
            },
            {
                "condition": "阴",
                "hour": "12",
                "temperature": "18",
                "weather_icon_id": "2",
                "wind_direction": "NE",
                "wind_level": "16.70"
            }
        ],
        "low_temperature": 16,
        "moji_city_id": 379,
        "night_condition": "阴",
        "origin_data": [],
        "quality_level": "良",
        "tips": "略微偏凉,还是蛮舒适的。",
        "tomorrow_aqi": 60,
        "tomorrow_condition": "阴",
        "tomorrow_high_temperature": 19,
        "tomorrow_low_temperature": 14,
        "tomorrow_quality_level": "良",
        "tomorrow_weather_icon_id": "2",
        "update_time": "2023-10-04 12:25:03",
        "weather_icon_id": "7",
        "wind_direction": "北风",
        "wind_level": 1
    },
    "msg": "success"
}

返回参数

接口名称 接口类型 接口说明
city_name string 地区
current_condition string 当前天气
current_temperature number 当前天气气温
current_time number 数据更新时间
tips string 天气温馨提示
forecast_list object 未来16天气预报

支持多层级可视化显示返回json示例,直观展示接口对应的键值对的代表含义!


{
    "forecast_list": "未来16天气预报",
    "tips": "天气温馨提示",
    "current_time": "数据更新时间",
    "current_temperature": "当前天气气温",
    "current_condition": "当前天气",
    "city_name": "地区"
}

小白教程

本教程帮助用户快速对接天气查询-自定义地区接口,现已支持智能生成代码

生成代码

支持生成对接天气查询-自定义地区接口代码,多语言选择,助力学生对接!

注意,AI·BOT自动生成对接「天气查询-自定义地区」简易代码,方便您调试对接,实时生成!

点击生成代码,自动生成对接代码,您可以自行测试,如有疑问请联系夏柔QQ:1501904!
自动生成JAVA对接「天气查询-自定义地区」代码,如有疑问请联系夏柔QQ:1501904!
自动生成PHP对接「天气查询-自定义地区」代码,如有疑问请联系夏柔QQ:1501904!
自动生成NodeJS对接「天气查询-自定义地区」代码,如有疑问请联系夏柔QQ:1501904!
自动生成C语言对接「天气查询-自定义地区」代码,如有疑问请联系夏柔QQ:1501904!
                                                        

实时调试

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

在线调试

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

参数名称 参数值(修改后测试)
{
    "code":200,
    "result":{
        "alert":null,
        "aqi":60,
        "city_name":"郑州",
        "current_condition":"小雨",
        "current_temperature":20,
        "current_time":1696395161,
        "dat_condition":"阴",
        "dat_high_temperature":17,
        "dat_low_temperature":12,
        "dat_weather_icon_id":"2",
        "day_condition":"小雨",
        "download_icon":1,
        "forecast_list":[
            {
                "condition":"多云转阴",
                "date":"2023-10-03",
                "high_temperature":"25",
                "low_temperature":"16",
                "weather_icon_id":"1",
                "wind_direction":"西南风",
                "wind_level":"1"
            },
            {
                "condition":"阴",
                "hour":"10",
                "temperature":"17",
                "weather_icon_id":"2",
                "wind_direction":"NE",
                "wind_level":"16.70"
            },
            {
                "condition":"阴",
                "hour":"11",
                "temperature":"18",
                "weather_icon_id":"2",
                "wind_direction":"NE",
                "wind_level":"16.70"
            },
            {
                "condition":"阴",
                "hour":"12",
                "temperature":"18",
                "weather_icon_id":"2",
                "wind_direction":"NE",
                "wind_level":"16.70"
            }
        ],
        "low_temperature":16,
        "moji_city_id":379,
        "night_condition":"阴",
        "origin_data":[
        ],
        "quality_level":"良",
        "tips":"略微偏凉,还是蛮舒适的。",
        "tomorrow_aqi":60,
        "tomorrow_condition":"阴",
        "tomorrow_high_temperature":19,
        "tomorrow_low_temperature":14,
        "tomorrow_quality_level":"良",
        "tomorrow_weather_icon_id":"2",
        "update_time":"2023-10-04 12:25:03",
        "weather_icon_id":"7",
        "wind_direction":"北风",
        "wind_level":1
    },
    "msg":"success"
}