v1

latestOpenAPI 3.0.22026-07-26114338.4 KB
Current Conditions & Observations

Station

<hr></hr>
get/observations/stn/{station_id}

Path parameters

station_idinteger required

ID of the station to retrieve.

Query parameters

time_startinteger

Time range start in epoch seconds UTC.

time_endinteger

Time range end in epoch seconds UTC.

bucket1 | 5 | 30 | 180

Time resolution of observations. The max range for time_start and time_end depends on the bucket parameter sent in.

ob_fieldsstring

A comma separated list of data fields that are returned in the response. Index field order in the response will be the same as the request.

units_temp'c' | 'f'

Temperature units

units_wind'mph' | 'kph' | 'kts' | 'mps' | 'bft' | 'lfm'

Wind units

units_pressure'mb' | 'inhg' | 'mmhg' | 'hpa'

Pressure units

units_precip'mm' | 'cm' | 'in'

Precipitation units

units_distance'km' | 'mi'

Distance units

Response

Successful operation

station_idinteger
typestring
ob_fieldsstring[]

list of the order of values in each obs array.

obsnumber[]

array of observation arrays.

sourcestring

Example response

{
  "station_id": 12799,
  "type": "obs_station",
  "status": {
    "status_message": "Success"
  },
  "source": "db",
  "units": {
    "units_wind": "mph",
    "units_precip": "in",
    "units_pressure": "mb",
    "units_brightness": "lux",
    "units_solar_radiation": "W/m2",
    "units_other": "metric",
    "units_air_density": "kg/m3"
  }
}