维梦API - 提供免费接口调用平台
工具 · 三日天气
用于查询某城市地区今天明天后天三天的天气

接口地址: https://api.52vmy.cn/api/query/tian/three

返回格式: JSON

请求方式: GET

请求示例: https://api.52vmy.cn/api/query/tian/three?city=北京市

接口定制: 点此联系管理员QQ 3037370935

默认QPS: 每2秒最多5次 Token可无视QPS

接口备注:点此查看当日详细天气

请求参数说明:

名称 必填 类型 说明
city string 城市
type string 返回格式默认JSON可选text

返回参数说明:

名称 类型 说明

返回示例:

{
    "code": 200,
    "msg": "成功",
    "data": {
        "city": "北京市",
        "data": [
            {
                "Time": "周四",
                "temperature": "16~29℃",
                "weather": "多云",
                "bearing": "南风-1级",
                "air_quality": "良"
            },
            {
                "Time": "周五",
                "temperature": "18~32℃",
                "weather": "晴",
                "bearing": "东南风-1级",
                "air_quality": "轻度"
            },
            {
                "Time": "周六",
                "temperature": "20~32℃",
                "weather": "晴",
                "bearing": "东南风-1级",
                "air_quality": "轻度"
            }
        ]
    }
}

请求参数设置:

参数名称 参数值



				

错误码格式说明:

名称 类型 说明

PHP代码示例:

$city = $_GET["city"];
$type = $_GET["type"];
$url = "https://api.52vmy.cn/api/query/tian/three?city=".$city."&type=".$type;
echo file_get_contents($url);