跳到主要内容
版本:v2.6

小时级别预报

curl "https://api.caiyunapp.com/v2.6/TAkhjf8d1nlSlspN/101.6656,39.2072/hourly?hourlysteps=1"
  • hourlysteps: 控制返回多少小时的数据,[1, 360]
hourly.json
{  "status": "ok",  "api_version": "v2.6",  "api_status": "alpha",  "lang": "zh_CN",  "unit": "metric",  "tzshift": 28800,  "timezone": "Asia/Shanghai",  "server_time": 1653552908,  "location": [39.2072, 101.6656],  "result": {    "hourly": {      "status": "ok",      "description": "未来24小时阴",      "precipitation": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": 0,          "probability": 0        }      ],      "temperature": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": 27        }      ],      "apparent_temperature": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": 24.6        }      ],      "wind": [        {          "datetime": "2022-05-26T16:00+08:00",          "speed": 9,          "direction": 104        }      ],      "humidity": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": 0.12        }      ],      "cloudrate": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": 0        }      ],      "skycon": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": "CLEAR_DAY"        }      ],      "pressure": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": 84020.8379904        }      ],      "visibility": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": 25        }      ],      "dswrf": [        {          "datetime": "2022-05-26T16:00+08:00",          "value": 736.87204608        }      ],      "air_quality": {        "aqi": [          {            "datetime": "2022-05-26T16:00+08:00",            "value": {              "chn": 78,              "usa": 54            }          }        ],        "pm25": [          {            "datetime": "2022-05-26T16:00+08:00",            "value": 14          }        ]      }    },    "primary": 0,    "forecast_keypoint": "未来24小时阴"  }}
JSONPath $.result.hourly.说明
temperature.value地表 2 米气温
apparent_temperature.value体感温度
pressure.value地面气压
humidity.value地表 2 米相对湿度(%)
wind.direction.value地表 10 米风向
wind.speed.value地表 10 米风速
precipitation.probability降水概率(%)
precipitation.value降水数据
cloudrate.value云量(0.0-1.0)
dswrf.value向下短波辐射通量(W/M2)
visibility.value地表水平能见度
skycon.value天气现象
description自然语言描述
forecast_keypoint自然语言描述
pm25.valuePM2.5 浓度(μg/m3)
aqi.value国标 AQI