天气三天版API
查询今明后天天气

接口地址: https://api.ahfi.cn/api/tqstb

返回格式: JSON

请求方式: GET

请求示例: https://api.ahfi.cn/api/tqstb?msg=广州

请求参数说明:

名称 必填 类型 说明
msg String 地区

返回参数说明:

名称 类型 说明
code String 返回的状态码

返回示例:

{
    "code": 200,
    "msg": "获取成功",
    "region": "中山",
    "today": {
        "date": "19日星期一",
        "high": "高温 33℃",
        "low": "低温 24℃",
        "winddirection": "西南风",
        "weather": "小雨"
    },
    "tomorrow": {
        "date": "20日星期二",
        "high": "高温 33℃",
        "low": "低温 25℃",
        "winddirection": "东南风",
        "weather": "大雨"
    },
    "Thedayaftertomorrow": {
        "date": "21日星期三",
        "high": "高温 30℃",
        "low": "低温 25℃",
        "winddirection": "东南风",
        "weather": "多云"
    },
    "prompt": "感冒低发期,天气舒适,请注意多吃蔬菜水果,多喝水哦。"
}

错误码格式说明:

名称 类型 说明

代码示例: