恰饭广告 感谢支持
立即入驻

API介绍

接口地址:https://www.vxras.com/api/v1/weather

请求方式:GET

参数名类型必填位置默认值示例说明
citystring自动Shanghai城市
daysstring自动天数
latstring自动维度
lonstring自动经度

返回字段

字段名类型说明

返回示例

{
    "code": 200,
    "message": "success",
    "data": {
        "location": {
            "name": "上海",
            "country": "中国",
            "latitude": 31.22222,
            "longitude": 121.45806
        },
        "current": {
            "temperature": 12.4,
            "humidity": 91,
            "weather_code": 1,
            "time": "2025-11-16T01:15"
        },
        "daily": [
            {
                "date": "2025-11-16",
                "temp_max": 22.1,
                "temp_min": 12,
                "weather_code": 3
            },
            {
                "date": "2025-11-17",
                "temp_max": 16.2,
                "temp_min": 6.5,
                "weather_code": 61
            },
            {
                "date": "2025-11-18",
                "temp_max": 8.5,
                "temp_min": 1.9,
                "weather_code": 3
            },
            {
                "date": "2025-11-19",
                "temp_max": 10.4,
                "temp_min": -0.1,
                "weather_code": 0
            },
            {
                "date": "2025-11-20",
                "temp_max": 13,
                "temp_min": 1,
                "weather_code": 2
            }
        ]
    }
}
响应码说明
响应码说明
500缺少必要参数/服务器错误
评论 抢沙发

请登录后发表评论

    暂无评论内容