API简介:未来十五日天气

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

接口地址:https://api.7trees.cn/weather

返回格式:JSON

请求方式:GET

请求参数:https://api.7trees.cn/weather/?cityname=西安市

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

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


状态码 累计次数 最后检测时间
正常 362 2024-04-29 22:38:49
故障 10 2024-04-28 21:34:55

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


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

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

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

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

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

请求参数

该开发者未填写对接信息,请联系开发者核对!

返回示例

注意:下述是经过转义过后的信息
-------
{
    "cityInfo": {
        "city": "西安市",
        "citykey": "101110101",
        "parent": "陕西",
        "updateTime": "18:46"
    },
    "data": {
        "forecast": [
            {
                "aqi": 86,
                "date": "31",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 29℃",
                "low": "低温 9℃",
                "notice": "愿你拥有比阳光明媚的心情",
                "sunrise": "06:31",
                "sunset": "19:04",
                "type": "晴",
                "week": "星期日",
                "ymd": "2024-03-31"
            },
            {
                "aqi": 59,
                "date": "01",
                "fl": "2级",
                "fx": "北风",
                "high": "高温 27℃",
                "low": "低温 16℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:30",
                "sunset": "19:05",
                "type": "阴",
                "week": "星期一",
                "ymd": "2024-04-01"
            },
            {
                "aqi": 41,
                "date": "02",
                "fl": "3级",
                "fx": "西南风",
                "high": "高温 20℃",
                "low": "低温 15℃",
                "notice": "出门最好穿雨衣,勿挡视线",
                "sunrise": "06:28",
                "sunset": "19:06",
                "type": "大雨",
                "week": "星期二",
                "ymd": "2024-04-02"
            },
            {
                "aqi": 41,
                "date": "03",
                "fl": "2级",
                "fx": "西风",
                "high": "高温 25℃",
                "low": "低温 13℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:27",
                "sunset": "19:06",
                "type": "多云",
                "week": "星期三",
                "ymd": "2024-04-03"
            },
            {
                "aqi": 42,
                "date": "04",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 24℃",
                "low": "低温 13℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:26",
                "sunset": "19:07",
                "type": "多云",
                "week": "星期四",
                "ymd": "2024-04-04"
            },
            {
                "aqi": 62,
                "date": "05",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 22℃",
                "low": "低温 13℃",
                "notice": "雨虽小,注意保暖别感冒",
                "sunrise": "06:24",
                "sunset": "19:08",
                "type": "小雨",
                "week": "星期五",
                "ymd": "2024-04-05"
            },
            {
                "aqi": 58,
                "date": "06",
                "fl": "3级",
                "fx": "西南风",
                "high": "高温 18℃",
                "low": "低温 14℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:23",
                "sunset": "19:09",
                "type": "多云",
                "week": "星期六",
                "ymd": "2024-04-06"
            },
            {
                "aqi": 76,
                "date": "07",
                "fl": "2级",
                "fx": "西南风",
                "high": "高温 23℃",
                "low": "低温 13℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:22",
                "sunset": "19:09",
                "type": "阴",
                "week": "星期日",
                "ymd": "2024-04-07"
            },
            {
                "aqi": 71,
                "date": "08",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 21℃",
                "low": "低温 12℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:20",
                "sunset": "19:10",
                "type": "阴",
                "week": "星期一",
                "ymd": "2024-04-08"
            },
            {
                "aqi": 44,
                "date": "09",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 20℃",
                "low": "低温 13℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:19",
                "sunset": "19:11",
                "type": "阴",
                "week": "星期二",
                "ymd": "2024-04-09"
            },
            {
                "aqi": 66,
                "date": "10",
                "fl": "2级",
                "fx": "东风",
                "high": "高温 27℃",
                "low": "低温 15℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:18",
                "sunset": "19:12",
                "type": "多云",
                "week": "星期三",
                "ymd": "2024-04-10"
            },
            {
                "aqi": 84,
                "date": "11",
                "fl": "1级",
                "fx": "东风",
                "high": "高温 21℃",
                "low": "低温 13℃",
                "notice": "记得随身携带雨伞哦",
                "sunrise": "06:16",
                "sunset": "19:13",
                "type": "中雨",
                "week": "星期四",
                "ymd": "2024-04-11"
            },
            {
                "aqi": 91,
                "date": "12",
                "fl": "1级",
                "fx": "东南风",
                "high": "高温 23℃",
                "low": "低温 12℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:15",
                "sunset": "19:13",
                "type": "多云",
                "week": "星期五",
                "ymd": "2024-04-12"
            },
            {
                "aqi": 85,
                "date": "13",
                "fl": "1级",
                "fx": "南风",
                "high": "高温 25℃",
                "low": "低温 15℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:14",
                "sunset": "19:14",
                "type": "阴",
                "week": "星期六",
                "ymd": "2024-04-13"
            },
            {
                "aqi": 46,
                "date": "14",
                "fl": "2级",
                "fx": "东风",
                "high": "高温 26℃",
                "low": "低温 16℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:13",
                "sunset": "19:15",
                "type": "多云",
                "week": "星期日",
                "ymd": "2024-04-14"
            }
        ],
        "ganmao": "极少数敏感人群应减少户外活动",
        "pm10": 91.0,
        "pm25": 37.0,
        "quality": "良",
        "shidu": "37%",
        "wendu": "25",
        "yesterday": {
            "aqi": 41,
            "date": "30",
            "fl": "2级",
            "fx": "东风",
            "high": "高温 25℃",
            "low": "低温 15℃",
            "notice": "不要被阴云遮挡住好心情",
            "sunrise": "06:32",
            "sunset": "19:03",
            "type": "阴",
            "week": "星期六",
            "ymd": "2024-03-30"
        }
    },
    "date": "20240331",
    "message": "success感谢又拍云(upyun.com)提供CDN赞助",
    "status": 200,
    "time": "2024-03-31 21:27:52"
}

返回参数

该开发者未填写返回信息,请联系开发者核对!

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


小白教程

本教程帮助用户快速对接15日天气接口,现已支持智能生成代码

生成代码

支持生成对接15日天气接口代码,多语言选择,助力学生对接!

注意,AI·BOT自动生成对接「15日天气」简易代码,方便您调试对接,实时生成!

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

实时调试

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

在线调试

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

参数名称 参数值(修改后测试)
注意:下述是经过转义过后的信息
-------
{
    "cityInfo": {
        "city": "西安市",
        "citykey": "101110101",
        "parent": "陕西",
        "updateTime": "18:46"
    },
    "data": {
        "forecast": [
            {
                "aqi": 86,
                "date": "31",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 29℃",
                "low": "低温 9℃",
                "notice": "愿你拥有比阳光明媚的心情",
                "sunrise": "06:31",
                "sunset": "19:04",
                "type": "晴",
                "week": "星期日",
                "ymd": "2024-03-31"
            },
            {
                "aqi": 59,
                "date": "01",
                "fl": "2级",
                "fx": "北风",
                "high": "高温 27℃",
                "low": "低温 16℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:30",
                "sunset": "19:05",
                "type": "阴",
                "week": "星期一",
                "ymd": "2024-04-01"
            },
            {
                "aqi": 41,
                "date": "02",
                "fl": "3级",
                "fx": "西南风",
                "high": "高温 20℃",
                "low": "低温 15℃",
                "notice": "出门最好穿雨衣,勿挡视线",
                "sunrise": "06:28",
                "sunset": "19:06",
                "type": "大雨",
                "week": "星期二",
                "ymd": "2024-04-02"
            },
            {
                "aqi": 41,
                "date": "03",
                "fl": "2级",
                "fx": "西风",
                "high": "高温 25℃",
                "low": "低温 13℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:27",
                "sunset": "19:06",
                "type": "多云",
                "week": "星期三",
                "ymd": "2024-04-03"
            },
            {
                "aqi": 42,
                "date": "04",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 24℃",
                "low": "低温 13℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:26",
                "sunset": "19:07",
                "type": "多云",
                "week": "星期四",
                "ymd": "2024-04-04"
            },
            {
                "aqi": 62,
                "date": "05",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 22℃",
                "low": "低温 13℃",
                "notice": "雨虽小,注意保暖别感冒",
                "sunrise": "06:24",
                "sunset": "19:08",
                "type": "小雨",
                "week": "星期五",
                "ymd": "2024-04-05"
            },
            {
                "aqi": 58,
                "date": "06",
                "fl": "3级",
                "fx": "西南风",
                "high": "高温 18℃",
                "low": "低温 14℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:23",
                "sunset": "19:09",
                "type": "多云",
                "week": "星期六",
                "ymd": "2024-04-06"
            },
            {
                "aqi": 76,
                "date": "07",
                "fl": "2级",
                "fx": "西南风",
                "high": "高温 23℃",
                "low": "低温 13℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:22",
                "sunset": "19:09",
                "type": "阴",
                "week": "星期日",
                "ymd": "2024-04-07"
            },
            {
                "aqi": 71,
                "date": "08",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 21℃",
                "low": "低温 12℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:20",
                "sunset": "19:10",
                "type": "阴",
                "week": "星期一",
                "ymd": "2024-04-08"
            },
            {
                "aqi": 44,
                "date": "09",
                "fl": "2级",
                "fx": "东北风",
                "high": "高温 20℃",
                "low": "低温 13℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:19",
                "sunset": "19:11",
                "type": "阴",
                "week": "星期二",
                "ymd": "2024-04-09"
            },
            {
                "aqi": 66,
                "date": "10",
                "fl": "2级",
                "fx": "东风",
                "high": "高温 27℃",
                "low": "低温 15℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:18",
                "sunset": "19:12",
                "type": "多云",
                "week": "星期三",
                "ymd": "2024-04-10"
            },
            {
                "aqi": 84,
                "date": "11",
                "fl": "1级",
                "fx": "东风",
                "high": "高温 21℃",
                "low": "低温 13℃",
                "notice": "记得随身携带雨伞哦",
                "sunrise": "06:16",
                "sunset": "19:13",
                "type": "中雨",
                "week": "星期四",
                "ymd": "2024-04-11"
            },
            {
                "aqi": 91,
                "date": "12",
                "fl": "1级",
                "fx": "东南风",
                "high": "高温 23℃",
                "low": "低温 12℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:15",
                "sunset": "19:13",
                "type": "多云",
                "week": "星期五",
                "ymd": "2024-04-12"
            },
            {
                "aqi": 85,
                "date": "13",
                "fl": "1级",
                "fx": "南风",
                "high": "高温 25℃",
                "low": "低温 15℃",
                "notice": "不要被阴云遮挡住好心情",
                "sunrise": "06:14",
                "sunset": "19:14",
                "type": "阴",
                "week": "星期六",
                "ymd": "2024-04-13"
            },
            {
                "aqi": 46,
                "date": "14",
                "fl": "2级",
                "fx": "东风",
                "high": "高温 26℃",
                "low": "低温 16℃",
                "notice": "阴晴之间,谨防紫外线侵扰",
                "sunrise": "06:13",
                "sunset": "19:15",
                "type": "多云",
                "week": "星期日",
                "ymd": "2024-04-14"
            }
        ],
        "ganmao": "极少数敏感人群应减少户外活动",
        "pm10": 91.0,
        "pm25": 37.0,
        "quality": "良",
        "shidu": "37%",
        "wendu": "25",
        "yesterday": {
            "aqi": 41,
            "date": "30",
            "fl": "2级",
            "fx": "东风",
            "high": "高温 25℃",
            "low": "低温 15℃",
            "notice": "不要被阴云遮挡住好心情",
            "sunrise": "06:32",
            "sunset": "19:03",
            "type": "阴",
            "week": "星期六",
            "ymd": "2024-03-30"
        }
    },
    "date": "20240331",
    "message": "success感谢又拍云(upyun.com)提供CDN赞助",
    "status": 200,
    "time": "2024-03-31 21:27:52"
}