天气接口
返回天气信息

接口地址: https://api.oioweb.cn/api/qqtianqi.php

返回格式: JSON

请求方式: GET

请求示例: https://api.oioweb.cn/api/qqtianqi.php?act=local

请求参数说明:

名称 必填 类型 说明
actString返回数据方式
local可选String选择返回当前请求的地方信息 act=local
ip可选String取当前IP天气信息 act=ip&ip=114.236.138.135
custom可选String选择省市查询 act=custom&province=河南省&city=郑州市

返回参数说明:

名称 类型 说明
JSONString信息过多不再展示

返回示例:

{
    "data": {
        "alarm": [
            
        ],
        "forecast_1h": {
            "0": {
                "degree": "32",
                "update_time": "20190810190000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "1": {
                "degree": "31",
                "update_time": "20190810200000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "2": {
                "degree": "30",
                "update_time": "20190810210000",
                "weather": "阴",
                "weather_code": "02",
                "weather_short": "阴",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "3": {
                "degree": "29",
                "update_time": "20190810220000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "4": {
                "degree": "29",
                "update_time": "20190810230000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "5": {
                "degree": "29",
                "update_time": "20190811000000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "6": {
                "degree": "28",
                "update_time": "20190811010000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "7": {
                "degree": "28",
                "update_time": "20190811020000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "8": {
                "degree": "28",
                "update_time": "20190811030000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "9": {
                "degree": "28",
                "update_time": "20190811040000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "10": {
                "degree": "28",
                "update_time": "20190811050000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "11": {
                "degree": "28",
                "update_time": "20190811060000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "南风",
                "wind_power": "3"
            },
            "12": {
                "degree": "28",
                "update_time": "20190811070000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "西南风",
                "wind_power": "3"
            },
            "13": {
                "degree": "29",
                "update_time": "20190811080000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "14": {
                "degree": "30",
                "update_time": "20190811090000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "西风",
                "wind_power": "3"
            },
            "15": {
                "degree": "32",
                "update_time": "20190811100000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "西风",
                "wind_power": "3"
            },
            "16": {
                "degree": "33",
                "update_time": "20190811110000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "17": {
                "degree": "34",
                "update_time": "20190811120000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "西风",
                "wind_power": "3"
            },
            "18": {
                "degree": "34",
                "update_time": "20190811130000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "西风",
                "wind_power": "3"
            },
            "19": {
                "degree": "34",
                "update_time": "20190811140000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "20": {
                "degree": "33",
                "update_time": "20190811150000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "西风",
                "wind_power": "3"
            },
            "21": {
                "degree": "33",
                "update_time": "20190811160000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西风",
                "wind_power": "3"
            },
            "22": {
                "degree": "32",
                "update_time": "20190811170000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "23": {
                "degree": "31",
                "update_time": "20190811180000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "西北风",
                "wind_power": "3"
            },
            "24": {
                "degree": "30",
                "update_time": "20190811190000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "25": {
                "degree": "29",
                "update_time": "20190811200000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "26": {
                "degree": "28",
                "update_time": "20190811210000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "南风",
                "wind_power": "3"
            },
            "27": {
                "degree": "28",
                "update_time": "20190811220000",
                "weather": "多云",
                "weather_code": "01",
                "weather_short": "多云",
                "wind_direction": "东南风",
                "wind_power": "3"
            },
            "28": {
                "degree": "28",
                "update_time": "20190811230000",
                "weather": "晴",
                "weather_code": "00",
                "weather_short": "晴",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "29": {
                "degree": "28",
                "update_time": "20190812000000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西北风",
                "wind_power": "3"
            },
            "30": {
                "degree": "27",
                "update_time": "20190812010000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西北风",
                "wind_power": "3"
            },
            "31": {
                "degree": "27",
                "update_time": "20190812020000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "32": {
                "degree": "27",
                "update_time": "20190812030000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西风",
                "wind_power": "3"
            },
            "33": {
                "degree": "27",
                "update_time": "20190812040000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西北风",
                "wind_power": "3"
            },
            "34": {
                "degree": "27",
                "update_time": "20190812050000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "35": {
                "degree": "27",
                "update_time": "20190812060000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西北风",
                "wind_power": "3"
            },
            "36": {
                "degree": "27",
                "update_time": "20190812070000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西北风",
                "wind_power": "3"
            },
            "37": {
                "degree": "28",
                "update_time": "20190812080000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "38": {
                "degree": "29",
                "update_time": "20190812090000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西南风",
                "wind_power": "3"
            },
            "39": {
                "degree": "30",
                "update_time": "20190812100000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西南风",
                "wind_power": "4"
            },
            "40": {
                "degree": "31",
                "update_time": "20190812110000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "41": {
                "degree": "31",
                "update_time": "20190812120000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西南风",
                "wind_power": "3"
            },
            "42": {
                "degree": "32",
                "update_time": "20190812130000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西南风",
                "wind_power": "3"
            },
            "43": {
                "degree": "32",
                "update_time": "20190812140000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "44": {
                "degree": "32",
                "update_time": "20190812150000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西南风",
                "wind_power": "3"
            },
            "45": {
                "degree": "32",
                "update_time": "20190812160000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西南风",
                "wind_power": "3"
            },
            "46": {
                "degree": "32",
                "update_time": "20190812170000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "微风",
                "wind_power": "3"
            },
            "47": {
                "degree": "30",
                "update_time": "20190812180000",
                "weather": "雷阵雨",
                "weather_code": "04",
                "weather_short": "雷阵雨",
                "wind_direction": "西南风",
                "wind_power": "3"
            }
        },
        "forecast_24h": [
            {
                "day_weather": "多云",
                "day_weather_code": "01",
                "day_weather_short": "多云",
                "day_wind_direction": "东北风",
                "day_wind_direction_code": "1",
                "day_wind_power": "4",
                "day_wind_power_code": "1",
                "max_degree": "37",
                "min_degree": "28",
                "night_weather": "多云",
                "night_weather_code": "01",
                "night_weather_short": "多云",
                "night_wind_direction": "微风",
                "night_wind_direction_code": "0",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-08-09"
            },
            {
                "day_weather": "阴",
                "day_weather_code": "02",
                "day_weather_short": "阴",
                "day_wind_direction": "西风",
                "day_wind_direction_code": "6",
                "day_wind_power": "4",
                "day_wind_power_code": "1",
                "max_degree": "36",
                "min_degree": "28",
                "night_weather": "多云",
                "night_weather_code": "01",
                "night_weather_short": "多云",
                "night_wind_direction": "微风",
                "night_wind_direction_code": "0",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-08-10"
            },
            {
                "day_weather": "雷阵雨",
                "day_weather_code": "04",
                "day_weather_short": "雷阵雨",
                "day_wind_direction": "微风",
                "day_wind_direction_code": "0",
                "day_wind_power": "3",
                "day_wind_power_code": "0",
                "max_degree": "36",
                "min_degree": "27",
                "night_weather": "雷阵雨",
                "night_weather_code": "04",
                "night_weather_short": "雷阵雨",
                "night_wind_direction": "微风",
                "night_wind_direction_code": "0",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-08-11"
            },
            {
                "day_weather": "雷阵雨",
                "day_weather_code": "04",
                "day_weather_short": "雷阵雨",
                "day_wind_direction": "微风",
                "day_wind_direction_code": "0",
                "day_wind_power": "3",
                "day_wind_power_code": "0",
                "max_degree": "34",
                "min_degree": "26",
                "night_weather": "雷阵雨",
                "night_weather_code": "04",
                "night_weather_short": "雷阵雨",
                "night_wind_direction": "微风",
                "night_wind_direction_code": "0",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-08-12"
            },
            {
                "day_weather": "雷阵雨",
                "day_weather_code": "04",
                "day_weather_short": "雷阵雨",
                "day_wind_direction": "微风",
                "day_wind_direction_code": "0",
                "day_wind_power": "3",
                "day_wind_power_code": "0",
                "max_degree": "34",
                "min_degree": "26",
                "night_weather": "雷阵雨",
                "night_weather_code": "04",
                "night_weather_short": "雷阵雨",
                "night_wind_direction": "微风",
                "night_wind_direction_code": "0",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-08-13"
            },
            {
                "day_weather": "雷阵雨",
                "day_weather_code": "04",
                "day_weather_short": "雷阵雨",
                "day_wind_direction": "微风",
                "day_wind_direction_code": "0",
                "day_wind_power": "3",
                "day_wind_power_code": "0",
                "max_degree": "34",
                "min_degree": "26",
                "night_weather": "雷阵雨",
                "night_weather_code": "04",
                "night_weather_short": "雷阵雨",
                "night_wind_direction": "微风",
                "night_wind_direction_code": "0",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-08-14"
            },
            {
                "day_weather": "雷阵雨",
                "day_weather_code": "04",
                "day_weather_short": "雷阵雨",
                "day_wind_direction": "微风",
                "day_wind_direction_code": "0",
                "day_wind_power": "3",
                "day_wind_power_code": "0",
                "max_degree": "33",
                "min_degree": "26",
                "night_weather": "中雨",
                "night_weather_code": "08",
                "night_weather_short": "中雨",
                "night_wind_direction": "微风",
                "night_wind_direction_code": "0",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-08-15"
            },
            {
                "day_weather": "中雨",
                "day_weather_code": "08",
                "day_weather_short": "中雨",
                "day_wind_direction": "微风",
                "day_wind_direction_code": "0",
                "day_wind_power": "3",
                "day_wind_power_code": "0",
                "max_degree": "33",
                "min_degree": "25",
                "night_weather": "中雨",
                "night_weather_code": "08",
                "night_weather_short": "中雨",
                "night_wind_direction": "微风",
                "night_wind_direction_code": "0",
                "night_wind_power": "3",
                "night_wind_power_code": "0",
                "time": "2019-08-16"
            }
        ],
        "index": {
            "airconditioner": {
                "detail": "您会感到非常热,长时间开启制冷空调可能会帮您找回舒适的感觉。",
                "info": "长时间开启",
                "name": "空调开启"
            },
            "allergy": {
                "detail": "天气条件易诱发过敏,有降水,易过敏人群应减少外出,如需外出最好穿长衣长裤,预防感冒可能引发的过敏。",
                "info": "易发",
                "name": "过敏"
            },
            "carwash": {
                "detail": "不宜洗车,未来24小时内有雨,如果在此期间洗车,雨水和路上的泥水可能会再次弄脏您的爱车。",
                "info": "不宜",
                "name": "洗车"
            },
            "chill": {
                "detail": "温度未达到风寒所需的低温,稍作防寒准备即可。",
                "info": "无",
                "name": "风寒"
            },
            "clothes": {
                "detail": "天气炎热,建议着短衫、短裙、短裤、薄型T恤衫等清凉夏季服装。",
                "info": "炎热",
                "name": "穿衣"
            },
            "cold": {
                "detail": "各项气象条件适宜,发生感冒机率较低。但请避免长期处于空调房间中,以防感冒。",
                "info": "少发",
                "name": "感冒"
            },
            "comfort": {
                "detail": "白天虽然有雨,但仍无法削弱较高气温带来的暑意,同时降雨造成湿度加大会您感到有些闷热,不很舒适。",
                "info": "较不舒适",
                "name": "舒适度"
            },
            "diffusion": {
                "detail": "气象条件有利于空气污染物稀释、扩散和清除。",
                "info": "良",
                "name": "空气污染扩散条件"
            },
            "dry": {
                "detail": "有降水,路面潮湿,车辆易打滑,请小心驾驶,同时路面温度较高,应注意停车休息。",
                "info": "潮湿",
                "name": "路况"
            },
            "drying": {
                "detail": "有降水,不适宜晾晒。若需要晾晒,请在室内准备出充足的空间。",
                "info": "不宜",
                "name": "晾晒"
            },
            "fish": {
                "detail": "天气不好,有风,不适合垂钓。",
                "info": "不宜",
                "name": "钓鱼"
            },
            "heatstroke": {
                "detail": "炎炎夏日里人体消耗大,抵抗力下降会导致中暑,注意保证合理作息时间。",
                "info": "较易中暑",
                "name": "中暑"
            },
            "makeup": {
                "detail": "天气较热,易出汗,建议使用防脱水化妆品,少用粉底和胭脂,经常补粉。",
                "info": "防脱水",
                "name": "化妆"
            },
            "mood": {
                "detail": "有降水,气温很高,闷热潮湿的空气会让人感到胸闷,心情糟糕,注意消夏降温,将热浪带来的危害减少到最低限度。",
                "info": "差",
                "name": "心情"
            },
            "morning": {
                "detail": "有降水,且风力稍大,请尽量避免户外晨练,若坚持晨练请带上雨具。",
                "info": "不宜",
                "name": "晨练"
            },
            "sports": {
                "detail": "有降水,推荐您在室内进行低强度运动;若坚持户外运动,请选择合适的运动,并携带雨具。",
                "info": "较不宜",
                "name": "运动"
            },
            "sunglasses": {
                "detail": "白天有降水天气,视线较差,不需要佩戴太阳镜",
                "info": "不需要",
                "name": "太阳镜"
            },
            "sunscreen": {
                "detail": "属中等强度紫外辐射天气,外出时应注意防护,建议涂擦SPF指数高于15,PA+的防晒护肤品。",
                "info": "中等",
                "name": "防晒"
            },
            "time": "20190810",
            "tourism": {
                "detail": "有降水,请尽量不要外出,若外出,请注意防雷。微风,天气很热,请注意防暑降温,并注意防晒。",
                "info": "较不宜",
                "name": "旅游"
            },
            "traffic": {
                "detail": "有降水,路面潮湿,不适宜高速行驶,司机应更加集中注意力,保持车距,坚持中速或低速行驶。",
                "info": "较好",
                "name": "交通"
            },
            "ultraviolet": {
                "detail": "属中等强度紫外线辐射天气,外出时建议涂擦SPF高于15、PA+的防晒护肤品,戴帽子、太阳镜。",
                "info": "中等",
                "name": "紫外线强度"
            },
            "umbrella": {
                "detail": "有降水,如果您要短时间外出的话可不必带雨伞。",
                "info": "带伞",
                "name": "雨伞"
            }
        },
        "limit": {
            "tail_number": "",
            "time": ""
        },
        "observe": {
            "degree": "28",
            "humidity": "79",
            "precipitation": "0.0",
            "pressure": "993",
            "update_time": "201908101905",
            "weather": "多云",
            "weather_code": "01",
            "weather_short": "多云",
            "wind_direction": "1",
            "wind_power": "0"
        },
        "rise": [
            {
                "sunrise": "06:01",
                "sunset": "19:03",
                "time": "20190810"
            },
            {
                "sunrise": "06:01",
                "sunset": "19:02",
                "time": "20190811"
            },
            {
                "sunrise": "06:01",
                "sunset": "19:02",
                "time": "20190812"
            },
            {
                "sunrise": "06:02",
                "sunset": "19:01",
                "time": "20190813"
            },
            {
                "sunrise": "06:02",
                "sunset": "19:00",
                "time": "20190814"
            },
            {
                "sunrise": "06:03",
                "sunset": "18:59",
                "time": "20190815"
            },
            {
                "sunrise": "06:03",
                "sunset": "18:59",
                "time": "20190816"
            }
        ],
        "tips": {
            "observe": [
                "光芒透过云缝,洒向大地~",
                "现在的温度比较舒适~"
            ]
        }
    },
    "message": "OK",
    "status": 200,
    "province": "广东省",
    "city": "广州市",
    "author": "教书先生"
}

错误码格式说明:

名称 类型 说明
codeString返回的状态码 -1/1 失败/成功
msgString返回结果提示信息!

代码示例:

暂无示例,有问题或者不懂请加站长交流群:165107560 获取调用方法。