Skip to content

Radar Images ​

Access Restriction

This API is a premium service available only to enterprise tier developers. Please contact Caiyun Sales to purchase.

Visualization ​

Create map overlays from the image bounds returned by the API.

The bounds use WGS84 coordinates in [southLat, westLng, northLat, eastLng] order. Convert the four corners to GCJ-02 before overlaying them on a GCJ-02 base map. WGS84 and Web Mercator base maps can use the bounds directly. Composite images for level=2 are generated in EPSG:3857 / Web Mercator.

Observations ​

Request ​

http
GET http://api.caiyunapp.com/v1/radar/images

Query Parameters ​

NameRequiredDefaultRangeDescription
tokenYes——API token; see Authentication
lonYes——Longitude
latYes——Latitude
levelYes—1, 21 for a station image; 2 for a composite image
world_mapNo—true, falseWith level=2, use true to select the newer composite

Request Example ​

bash
curl "http://api.caiyunapp.com/v1/radar/images?lon=116.427301&lat=39.902451&level=1&token={token}"
  • level=1: 20 recent station-observation frames at 4–6 minute intervals.
  • level=2: 20 composite frames at 5-minute intervals. Add world_map=true to use the newer composite.

Response Example ​

json
{
  "status": "ok",
  "timezone": "Asia/Shanghai",
  "tzshift": 28800,
  "station": "NMIC_AZ9010",
  "images": [
    [
      "http://cdn-s.caiyunapp.com/weather/radar/color/AZ9010_1640780414_1640780414_ab4b91d31f3f45bca005040f96f42041.png?auth_key=xxx",
      1640780414,
      [
        37.742471186275736,
        113.78227438031607,
        41.874723213724266,
        119.16149781968394
      ]
    ],
    // ...
    [
      "http://cdn-s.caiyunapp.com/weather/radar/color/AZ9010_1640787254_1640787254_20dfc4f347324034af83912a3f94346c.png?auth_key=xxx",
      1640787254,
      [
        37.742471186275736,
        113.78227438031607,
        41.874723213724266,
        119.16149781968394
      ]
    ]
  ]
}

Response Fields ​

JSONPathTypeDescription
$.statusstringRequest status
$.timezonestringTime zone name
$.tzshiftnumberUTC offset in seconds
$.stationstringRadar station or composite ID
$.imagesarray<array>Radar image entries
$.images[][0]stringImage URL
$.images[][1]numberImage timestamp
$.images[][2]array<number>Image bounds in south, west, north, east order

Forecast ​

Request ​

http
GET http://api.caiyunapp.com/v1/radar/forecast_images

Query Parameters ​

NameRequiredDefaultRangeDescription
tokenYes——API token; see Authentication
lonYes——Longitude
latYes——Latitude
levelYes—1, 21 for a station image; 2 for a composite image
world_mapNo—true, falseWith level=2, use true to select the newer composite

Request Example ​

bash
curl "http://api.caiyunapp.com/v1/radar/forecast_images?lon=116.427301&lat=39.902451&level=2&token={token}"
  • level=1: the latest station observation plus a two-hour forecast, 25 frames total at 4–6 minute intervals.
  • level=2: 25 composite frames at 5-minute intervals. Add world_map=true to use the newer composite.

Response Example ​

json
{
  "status": "ok",
  "station": "CN03",
  "images": [
    [
      "http://cdn.caiyunapp.com/weather/radar/o/cnmap_merca_202112291420_202112291420_3d6ffbaed7.png?auth_key=xxx",
      1640787600,
      [3.9079, 71.9282, 57.9079, 150.6026]
    ],
    // ...
    [
      "http://cdn.caiyunapp.com/weather/radar/o/cnmap_merca_202112291420_202112291620_3d6ffbaed7.png?auth_key=xxx",
      1640794800,
      [3.9079, 71.9282, 57.9079, 150.6026]
    ]
  ]
}

Response Fields ​

JSONPathTypeDescription
$.statusstringRequest status
$.stationstringRadar station or composite ID
$.imagesarray<array>Radar image entries
$.images[][0]stringImage URL
$.images[][1]numberImage timestamp
$.images[][2]array<number>Image bounds in south, west, north, east order

Observation Grid ​

Access Restriction

This API is a premium service available only to enterprise tier developers. Please contact Caiyun Sales to purchase.

Three files are available:

  1. precipitation intensity;
  2. availability mask;
  3. precipitation-type mask.

File names use UTC. The feed provides the 10 most recent frames (45 minutes of history plus the latest frame) and updates every 5 minutes.