Skip to content

Minutely Precipitation Forecast

Returns minute-by-minute precipitation forecasts for the next two hours at a given location.

Update Frequency and Spatial Resolution

Minute-level precipitation data uses minute-by-minute sliding updates (publish cycle ~5 min), keeps 1-minute temporal resolution (starting from the current minute), has ~1 km spatial scale, and covers the next two hours by the minute. For details, see Variable Coverage.

Request

GET https://api.caiyunapp.com/v2.6/{token}/{longitude},{latitude}/minutely

Path Parameters

ParameterDescription
tokenAPI token
longitudeLongitude of the target location
latitudeLatitude of the target location

Note: in the URL path, longitude comes first, latitude second (e.g. -74,40.7); the location field in the response is in [latitude, longitude] order (e.g. [40.7, -74.0]).

Query Parameters

NameRequiredDefaultValuesDescription
langNozh_CNzh_CN, zh_TW, en_US, en_GB, jaResponse language; falls back to zh_CN when unmatched. See Language
unitNometricmetric, metric:v1, metric:v2, SI, imperialUnit system; any other value returns 422. See Unit System
alertNofalsetrue, falseWith alert=true and an alert-enabled token, the response includes a result.alert block. See Alert
callbackNoJSONP wrapper

Request Example

bash
curl "https://api.caiyunapp.com/v2.6/TAkhjf8d1nlSlspN/-74,40.7/minutely.json?lang=en_US&unit=imperial"
json
{
  "status": "ok", // response status
  "api_version": "v2.6", // API version
  "api_status": "active", // API service status
  "lang": "en_US", // response language
  "unit": "imperial", // unit system
  "tzshift": -14400, // timezone offset
  "timezone": "America/New_York", // timezone
  "server_time": 1712644911, // server time
  "location": [40.7, -74.0], // [latitude, longitude]
  "result": {
    "minutely": {
      "status": "ok", // minutely forecast status
      "datasource": "radar", // data source ("radar" within radar coverage)
      "precipitation_2h": [
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
      ], // radar precipitation intensity for each minute of the next 2 hours (120 values)
      "precipitation": [
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
        0.0, 0.0, 0.0, 0.0
      ], // radar precipitation intensity for each minute of the next 1 hour (first 60 values)
      "probability": [0.0, 0.0, 0.0, 0.0], // precipitation probability (0~1) for the next [0-30, 30-60, 60-90, 90-120] minutes
      "description": "The nearest area experiencing rain is to the north, 55 mi away" // natural-language precipitation description for the next 2 hours
    },
    "primary": 0,
    "forecast_keypoint": "The nearest area experiencing rain is to the north, 55 mi away" // forecast keypoint, identical to minutely.description
  }
}

Response Fields

JSONPath $.result.minutely.Description
datasourceData source: radar within radar coverage
precipitation_2hRadar precipitation intensity for each minute of the next 2 hours (120 values); radar precipitation intensity (0~1) with unit=metric, mm/h with unit=metric:v2. See Precipitation Intensity
precipitationRadar precipitation intensity for each minute of the next 1 hour (the first 60 values of precipitation_2h), same units as above
probability4 values: precipitation probability (0~1) for the next [0-30, 30-60, 60-90, 90-120] minutes respectively; conditionally present
descriptionNatural-language precipitation description for the next 2 hours; conditionally present
JSONPath $.result.Description
forecast_keypointIdentical to minutely.description

description & forecast_keypoint

For the minutely endpoint, description and forecast_keypoint (at $.result.forecast_keypoint, result level) are identical: both describe precipitation/weather over the next ~2 hours, suitable for short-term precipitation or weather copy.

Notes

  • If the token has no minutely permission, the entire minutely block is not returned.

Errors

Error responses have the following structure. See Error Messages for HTTP status codes and their meanings.

{
  "status": "failed",
  "error": "token is invalid",
  "api_version": "2.6"
}