天气查询API
本接口总调用:28次·今日调用:0次

接口地址: http://api.qiuyiai.top/api/weather.php

返回格式: 请看返回示例

请求方式: GET

请求示例: http://api.qiuyiai.top/api/weather.php?city=长春

请求参数说明:

名称必填说明
city需要查询的地区名
type返回格式,默认json可选text

系统级错误:

名称说明
400请求错误!
403请求被服务器拒绝!
405客户端请求的方法被禁止!
408请求时间过长!
500服务器内部出现错误!
501服务器不支持请求的功能,无法完成请求!
503系统维护中!

返回示例:

{
    "code": 1,
    "text": "获取成功",
    "data": {
        "city": "长春",
        "cityEnglish": "changchun",
        "temp": "24",
        "tempn": "22",
        "weather": "小雨",
        "wind": "西南风",
        "windSpeed": "<3级",
        "time": "2026-07-13 08:00",
        "warning": {},
        "current": {
            "city": "长春",
            "cityEnglish": "changchun",
            "humidity": "91%",
            "wind": "西南风",
            "windSpeed": "2级",
            "visibility": "15km",
            "weather": "阴",
            "weatherEnglish": "Overcast",
            "temp": "25.1",
            "fahrenheit": "77.2",
            "air": "18",
            "air_pm25": "18",
            "date": "07月13日(星期一)",
            "time": "05:40",
            "image": "http://api.qiuyiai.top/api/data/weather/image/云.png"
        },
        "living": [
            {
                "name": "路况指数",
                "index": "湿滑",
                "tips": "路面湿滑,车辆易打滑,减慢车速。"
            },
            {
                "name": "晨练指数",
                "index": "不宜",
                "tips": "有较强降水,建议在室内做适当锻炼。"
            },
            {
                "name": "空气污染扩散条件指数",
                "index": "良",
                "tips": "气象条件有利于空气污染物扩散。"
            },
            {
                "name": "逛街指数",
                "index": "较不宜",
                "tips": "有降水,出门需带雨具并防暑。"
            },
            {
                "name": "舒适度指数",
                "index": "较舒适",
                "tips": "白天有雨,闷热,早晚天气凉爽。"
            },
            {
                "name": "啤酒指数",
                "index": "适宜",
                "tips": "天气炎热,可适量饮用啤酒,不要过量。"
            },
            {
                "name": "划船指数",
                "index": "不适宜",
                "tips": "天气不好,建议选择别的娱乐方式。"
            },
            {
                "name": "太阳镜指数",
                "index": "不需要",
                "tips": "白天能见度差不需要佩戴太阳镜"
            },
            {
                "name": "紫外线强度指数",
                "index": "最弱",
                "tips": "辐射弱,涂擦SPF8-12防晒护肤品。"
            },
            {
                "name": "风寒指数",
                "index": "无",
                "tips": "温度未达到风寒所需的低温,稍作防寒准备即可。"
            },
            {
                "name": "穿衣指数",
                "index": "舒适",
                "tips": "建议穿长袖衬衫单裤等服装。"
            },
            {
                "name": "放风筝指数",
                "index": "不宜",
                "tips": "天气不好,不适宜放风筝。"
            },
            {
                "name": "空调开启指数",
                "index": "较少开启",
                "tips": "体感舒适,不需要开启空调。"
            },
            {
                "name": "钓鱼指数",
                "index": "不宜",
                "tips": "天气不好,不适宜垂钓。"
            },
            {
                "name": "晾晒指数",
                "index": "不宜",
                "tips": "降水可能会淋湿衣物,请选择在室内晾晒。"
            },
            {
                "name": "感冒指数",
                "index": "较易发",
                "tips": "天凉,湿度大,较易感冒。"
            },
            {
                "name": "洗车指数",
                "index": "不宜",
                "tips": "有雨,雨水和泥水会弄脏爱车。"
            },
            {
                "name": "旅游指数",
                "index": "适宜",
                "tips": "较弱降水和微风将伴您共赴旅程。"
            },
            {
                "name": "夜生活指数",
                "index": "较不适宜",
                "tips": "建议夜生活最好在室内进行。"
            },
            {
                "name": "心情指数",
                "index": "较差",
                "tips": "雨水可能会使心绪无端地挂上轻愁。"
            },
            {
                "name": "约会指数",
                "index": "较不适宜",
                "tips": "建议尽量不要去室外约会。"
            },
            {
                "name": "运动指数",
                "index": "较不宜",
                "tips": "有降水,推荐您在室内进行休闲运动。"
            },
            {
                "name": "过敏指数",
                "index": "不易发",
                "tips": "除特殊体质,无需担心过敏问题。"
            },
            {
                "name": "美发指数",
                "index": "极适宜",
                "tips": "好天气将为美发创造健康洁净的环境。"
            },
            {
                "name": "雨伞指数",
                "index": "带伞",
                "tips": "有降水,带雨伞,短期外出可收起雨伞。"
            },
            {
                "name": "防晒指数",
                "index": "弱",
                "tips": "涂抹8-12SPF防晒护肤品。"
            },
            {
                "name": "化妆指数",
                "index": "去油",
                "tips": "请选用露质面霜打底,水质无油粉底霜。"
            },
            {
                "name": "中暑指数",
                "index": "无中暑风险",
                "tips": "天气不热,在炎炎夏日中十分难得,可以告别暑气漫漫啦~"
            },
            {
                "name": "交通指数",
                "index": "较差",
                "tips": "有降水且路面湿滑,注意控制车速。"
            },
            {
                "name": "干燥指数",
                "index": "适宜",
                "tips": "温湿条件适宜,风速不大,皮肤无需特殊保养,只做日常护理即可。"
            }
        ]
    }
}

错误码格式说明:

名称类型说明