Skip to content

实况

bash
curl "https://api.caiyunapp.com/v2.2/TAkhjf8d1nlSlspN/101.6656,39.2072/realtime"
json
{
  "status": "ok",
  "api_version": "v2.2",
  "api_status": "active",
  "server_time": 1640782767,
  "location": [39.2072, 101.6656],
  "tzshift": 28800,
  "lang": "zh_CN",
  "unit": "metric",
  "result": {
    "status": "ok",
    "temperature": -9,
    "humidity": 0.6,
    "cloudrate": 0,
    "skycon": "CLEAR_NIGHT",
    "visibility": 12.3,
    "dswrf": 151,
    "wind": {
      "speed": 2.52,
      "direction": 62
    },
    "pres": 85663.36,
    "apparent_temperature": -12.1,
    "precipitation": {
      "local": {
        "status": "ok",
        "datasource": "gfs",
        "intensity": 0
      }
    },
    "aqi": 73,
    "pm25": 47,
    "pm10": 95,
    "o3": 35,
    "so2": 8,
    "no2": 51,
    "co": 1,
    "ultraviolet": {
      "index": 0,
      "desc": "无"
    },
    "comfort": {
      "index": 12,
      "desc": "湿冷"
    }
  }
}
JSONPath $.result.说明
temperature地表 2 米气温
apparent_temperature体感温度
pressure地面气压
humidity地表 2 米湿度相对湿度(%)
wind.direction地表 10 米风向
wind.speed地表 10 米风速
precipitation.local.intensity本地降水强度
cloudrate总云量(0.0-1.0)
dswrf向下短波辐射通量(W/M2)
visibility地表水平能见度
skycon天气现象
comfort.desc参见 生活指数
ultraviolet.desc参见 生活指数
pm25PM25 浓度(μg/m3)
pm10PM10 浓度(μg/m3)
o3臭氧浓度(μg/m3)
no2二氧化氮浓度(μg/m3)
so2二氧化硫浓度(μg/m3)
co一氧化碳浓度(mg/m3)
aqi.chn国标 AQI