HistoryObj is a JSON Structure definition published by Weatherbit, describing 27 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/weatherbit/refs/heads/main/json-structure/weatherbit-history-obj-structure.json",
"name": "HistoryObj",
"description": "HistoryObj schema from Weatherbit API",
"type": "object",
"properties": {
"ts": {
"type": "double",
"description": "Unix Timestamp",
"example": 1551718800
},
"timestamp_local": {
"type": "string",
"description": "Timestamp in local time",
"example": "2019-03-04 12:00:00"
},
"timestamp_utc": {
"type": "string",
"description": "Timestamp UTC",
"example": "2019-03-04 17:00:00"
},
"revision_status": {
"type": "string",
"description": "Data revision status (interim or final)",
"example": "final"
},
"datetime": {
"type": "string",
"description": "Date in format \"YYYY-MM-DD:HH\". All datetime is in (UTC)",
"example": "2019-03-04:17"
},
"slp": {
"type": "double",
"description": "Sea level pressure (mb)",
"example": 1020.1
},
"pres": {
"type": "double",
"description": "Pressure (mb)",
"example": 845.0
},
"rh": {
"type": "int32",
"description": "Relative Humidity as a percentage (%)",
"example": 85
},
"dewpt": {
"type": "double",
"description": "Dew point (Default Celcius)",
"example": -1.5
},
"temp": {
"type": "double",
"description": "Temperature (Default Celcius)",
"example": -1.2
},
"app_temp": {
"type": "double",
"description": "Apparent Temperature or Wind Chill/Heat Index (Default Celcius)",
"example": -1.5
},
"wind_spd": {
"type": "double",
"description": "Wind Speed (Default m/s)",
"example": 14.7
},
"wind_gust_spd": {
"type": "double",
"description": "Wind Gust Speed - Default (m/s)",
"example": 16.85
},
"wind_dir": {
"type": "int32",
"description": "Wind direction (Degrees)",
"example": 325
},
"uv": {
"type": "double",
"description": "UV Index (1-11+)",
"example": 4.0
},
"solar_rad": {
"type": "double",
"description": "Estimated solar radiation (W/m^2)",
"example": 300.0
},
"ghi": {
"type": "double",
"description": "Global horizontal solar irradiance (W/m^2)",
"example": 1500.0
},
"dhi": {
"type": "double",
"description": "Diffuse normal solar irradiance (W/m^2)",
"example": 200.0
},
"dni": {
"type": "double",
"description": "Direct normal solar irradiance (W/m^2)",
"example": 400.0
},
"elev_angle": {
"type": "double",
"description": "Solar elevation angle (Degrees)",
"example": 27.5
},
"azimuth": {
"type": "double",
"description": "Azimuth angle (Degrees)",
"example": 50.5
},
"vis": {
"type": "double",
"description": "Visibility (KM)",
"example": 10.0
},
"pod": {
"type": "string",
"description": "Part of the day (d = day, n = night)",
"example": "n"
},
"weather": {
"type": "object",
"properties": {
"icon": {
"type": "string",
"description": "Icon code for forecast image display",
"example": "s01n"
},
"code": {
"type": "int32",
"description": "Weather Condition code",
"example": 601
},
"description": {
"type": "string",
"description": "Weather Condition description",
"example": "Light Snow"
}
}
},
"clouds": {
"type": "int32",
"description": "Cloud Cover 0-100 (%)",
"example": 50
},
"precip": {
"type": "double",
"description": "Liquid equivalent precipitation - Default (mm)",
"example": 3.0
},
"snow": {
"type": "double",
"description": "Snowfall - Default (mm)",
"example": 30.0
}
}
}