标签搜索

天气查询v2 API文档

冷言
2022-04-19 / - 评论 / - 阅读

接口地址:

https://qqlykm.cn/api/weatherv2/get

返回格式:json

请求示例:

https://qqlykm.cn/api/weatherv2/get?key=你申请的Key值&city=济南

请求参数说明:

名称
类型必填说明
keystring你申请的Key值
citystring要查询的城市名称

返回参数说明:自己调用看看吧我就不写了,麻烦

返回示例:

{
    "success": "200",
    "data": {
        "province": "山东省",
        "city": "济南市",
        "areaId": "54823",
        "areaName": "济南市",
        "realtime": {
            "temp": "18",
            "weather": "晴",
            "RainDescribe": "未来两小时不会有雨。还在加班么?注意休息哦",
            "aqi": "52",
            "aqiLevelInfo": "良"
        },
        "hourlyweather": [
            {
                "timeText": "现在",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "00:00",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "01:00",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "02:00",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "03:00",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "04:00",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "05:00",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "05:31",
                "temp": "0°",
                "Weather": ""
            },
            {
                "timeText": "06:00",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "07:00",
                "temp": "18°",
                "Weather": "晴"
            },
            {
                "timeText": "08:00",
                "temp": "19°",
                "Weather": "晴"
            },
            {
                "timeText": "09:00",
                "temp": "21°",
                "Weather": "晴"
            },
            {
                "timeText": "10:00",
                "temp": "22°",
                "Weather": "晴"
            },
            {
                "timeText": "11:00",
                "temp": "24°",
                "Weather": "晴"
            },
            {
                "timeText": "12:00",
                "temp": "25°",
                "Weather": "晴"
            },
            {
                "timeText": "13:00",
                "temp": "26°",
                "Weather": "晴"
            },
            {
                "timeText": "14:00",
                "temp": "26°",
                "Weather": "晴"
            },
            {
                "timeText": "15:00",
                "temp": "26°",
                "Weather": ""
            },
            {
                "timeText": "16:00",
                "temp": "26°",
                "Weather": "晴"
            },
            {
                "timeText": "17:00",
                "temp": "25°",
                "Weather": "晴"
            },
            {
                "timeText": "18:00",
                "temp": "24°",
                "Weather": "晴"
            },
            {
                "timeText": "18:50",
                "temp": "0°",
                "Weather": ""
            },
            {
                "timeText": "19:00",
                "temp": "23°",
                "Weather": "晴"
            },
            {
                "timeText": "20:00",
                "temp": "22°",
                "Weather": "晴"
            },
            {
                "timeText": "21:00",
                "temp": "21°",
                "Weather": "晴"
            },
            {
                "timeText": "22:00",
                "temp": "21°",
                "Weather": "晴"
            },
            {
                "timeText": "23:00",
                "temp": "21°",
                "Weather": "晴"
            }
        ],
        "15dayweather": [
            {
                "date": "04/18",
                "timeText": "昨天",
                "dayWeather": "多云",
                "nightWeather": "多云",
                "wholeWeather": "多云",
                "dayTemp": "21",
                "nightTemp": "11",
                "wholeTemp": "11~21",
                "dayWindDirection": "东南风",
                "nightWindDirection": "",
                "dayWindLevel": "2",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/19",
                "timeText": "今天",
                "dayWeather": "晴",
                "nightWeather": "晴",
                "wholeWeather": "晴",
                "dayTemp": "25",
                "nightTemp": "17",
                "wholeTemp": "17~25",
                "dayWindDirection": "西南风",
                "nightWindDirection": "",
                "dayWindLevel": "2",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/20",
                "timeText": "明天",
                "dayWeather": "晴",
                "nightWeather": "晴",
                "wholeWeather": "晴",
                "dayTemp": "27",
                "nightTemp": "18",
                "wholeTemp": "18~27",
                "dayWindDirection": "西南风",
                "nightWindDirection": "",
                "dayWindLevel": "4",
                "nightWindLevel": "",
                "aqiLevelInfo": "优"
            },
            {
                "date": "04/21",
                "timeText": "后天",
                "dayWeather": "多云",
                "nightWeather": "阴",
                "wholeWeather": "多云转阴",
                "dayTemp": "28",
                "nightTemp": "15",
                "wholeTemp": "15~28",
                "dayWindDirection": "西南风",
                "nightWindDirection": "",
                "dayWindLevel": "4",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/22",
                "timeText": "周五",
                "dayWeather": "阴",
                "nightWeather": "多云",
                "wholeWeather": "阴转多云",
                "dayTemp": "24",
                "nightTemp": "15",
                "wholeTemp": "15~24",
                "dayWindDirection": "东风",
                "nightWindDirection": "",
                "dayWindLevel": "2",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/23",
                "timeText": "周六",
                "dayWeather": "晴",
                "nightWeather": "多云",
                "wholeWeather": "晴转多云",
                "dayTemp": "30",
                "nightTemp": "21",
                "wholeTemp": "21~30",
                "dayWindDirection": "西南风",
                "nightWindDirection": "",
                "dayWindLevel": "3",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/24",
                "timeText": "周日",
                "dayWeather": "阴",
                "nightWeather": "阴",
                "wholeWeather": "阴",
                "dayTemp": "32",
                "nightTemp": "20",
                "wholeTemp": "20~32",
                "dayWindDirection": "西南风",
                "nightWindDirection": "",
                "dayWindLevel": "3",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/25",
                "timeText": "周一",
                "dayWeather": "阴",
                "nightWeather": "晴",
                "wholeWeather": "阴转晴",
                "dayTemp": "25",
                "nightTemp": "16",
                "wholeTemp": "16~25",
                "dayWindDirection": "东北风",
                "nightWindDirection": "",
                "dayWindLevel": "3",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/26",
                "timeText": "周二",
                "dayWeather": "晴",
                "nightWeather": "晴",
                "wholeWeather": "晴",
                "dayTemp": "24",
                "nightTemp": "16",
                "wholeTemp": "16~24",
                "dayWindDirection": "东北风",
                "nightWindDirection": "",
                "dayWindLevel": "1",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/27",
                "timeText": "周三",
                "dayWeather": "晴",
                "nightWeather": "晴",
                "wholeWeather": "晴",
                "dayTemp": "29",
                "nightTemp": "16",
                "wholeTemp": "16~29",
                "dayWindDirection": "东南风",
                "nightWindDirection": "",
                "dayWindLevel": "2",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/28",
                "timeText": "周四",
                "dayWeather": "阴",
                "nightWeather": "晴",
                "wholeWeather": "阴转晴",
                "dayTemp": "27",
                "nightTemp": "15",
                "wholeTemp": "15~27",
                "dayWindDirection": "西北风",
                "nightWindDirection": "",
                "dayWindLevel": "2",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "04/29",
                "timeText": "周五",
                "dayWeather": "晴",
                "nightWeather": "阴",
                "wholeWeather": "晴转阴",
                "dayTemp": "28",
                "nightTemp": "16",
                "wholeTemp": "16~28",
                "dayWindDirection": "东风",
                "nightWindDirection": "",
                "dayWindLevel": "2",
                "nightWindLevel": "",
                "aqiLevelInfo": "优"
            },
            {
                "date": "04/30",
                "timeText": "周六",
                "dayWeather": "阴",
                "nightWeather": "阴",
                "wholeWeather": "阴",
                "dayTemp": "28",
                "nightTemp": "14",
                "wholeTemp": "14~28",
                "dayWindDirection": "东南风",
                "nightWindDirection": "",
                "dayWindLevel": "3",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            },
            {
                "date": "05/01",
                "timeText": "周日",
                "dayWeather": "阴",
                "nightWeather": "阴",
                "wholeWeather": "阴",
                "dayTemp": "22",
                "nightTemp": "10",
                "wholeTemp": "10~22",
                "dayWindDirection": "东北风",
                "nightWindDirection": "",
                "dayWindLevel": "3",
                "nightWindLevel": "",
                "aqiLevelInfo": "优"
            },
            {
                "date": "05/02",
                "timeText": "周一",
                "dayWeather": "阴",
                "nightWeather": "多云",
                "wholeWeather": "阴转多云",
                "dayTemp": "21",
                "nightTemp": "11",
                "wholeTemp": "11~21",
                "dayWindDirection": "西南风",
                "nightWindDirection": "",
                "dayWindLevel": "3",
                "nightWindLevel": "",
                "aqiLevelInfo": "优"
            },
            {
                "date": "05/03",
                "timeText": "周二",
                "dayWeather": "多云",
                "nightWeather": "阴",
                "wholeWeather": "多云转阴",
                "dayTemp": "29",
                "nightTemp": "15",
                "wholeTemp": "15~29",
                "dayWindDirection": "西南风",
                "nightWindDirection": "",
                "dayWindLevel": "4",
                "nightWindLevel": "",
                "aqiLevelInfo": "良"
            }
        ],
        "40dayweatherTrend": {
            "temperatureTrend": "3天降温/3天升温",
            "rainTrend": "17天有雨"
        },
        "Lifeindex": [
            {
                "title": "穿衣指数",
                "level": "天气较舒适",
                "text": "建议着薄外套、开衫牛仔衫裤等服装。年老体弱者应适当添加衣物,宜着夹克衫、薄毛衣等。"
            },
            {
                "title": "紫外线指数",
                "level": "紫外线很强",
                "text": "紫外线辐射极强,建议涂擦SPF20以上、PA++的防晒护肤品,尽量避免暴露于日光下。"
            },
            {
                "title": "晾晒指数",
                "level": "适宜晾晒",
                "text": "天气不错,适宜晾晒。赶紧把久未见阳光的衣物搬出来吸收一下太阳的味道吧!"
            },
            {
                "title": "感冒指数",
                "level": "少发感冒",
                "text": "各项气象条件适宜,无明显降温过程,发生感冒机率较低。"
            },
            {
                "title": "雨伞指数",
                "level": "无需带伞",
                "text": "天气较好,您在出门的时候无须带雨伞。"
            },
            {
                "title": "晨练指数",
                "level": "较适宜晨练",
                "text": "早晨气象条件较适宜晨练,但风力稍大,晨练时请注意选择避风的地点,避免迎风锻炼。"
            },
            {
                "title": "钓鱼指数",
                "level": "较适宜钓鱼",
                "text": "较适合垂钓,但风力稍大,会对垂钓产生一定的影响。"
            }
        ]
    }
}

4

评论

博主关闭了本网站的评论