Skip to content

2 小时短临预报

bash
curl "https://api.caiyunapp.com/v2.5/TAkhjf8d1nlSlspN/101.6656,39.2072/minutely"
json
{
  "status": "ok",
  "api_version": "v2.5",
  "api_status": "active",
  "lang": "zh_CN",
  "unit": "metric",
  "tzshift": 28800,
  "timezone": "Asia/Shanghai",
  "server_time": 1640747476,
  "location": [39.2072, 101.6656],
  "result": {
    "minutely": {
      "status": "ok",
      "datasource": "radar",
      "precipitation_2h": [
        0,
        // ...
        0
      ],
      "precipitation": [
        0,
        // ...
        0
      ],
      "probability": [0, 0, 0, 0],
      "description": "未来两小时不会下雪,放心出门吧"
    },
    "primary": 0,
    "forecast_keypoint": "未来两小时不会下雪,放心出门吧"
  }
}
  • precipitation_2h/precipitation 表示未来 2/1 小时每一分钟的雷达降水强度,具体见 降水强度
  • probability 表示未来两小时每半小时的降水概率