Weatherbit · Schema

HistoryObj

HistoryObj schema from Weatherbit API

WeatherForecastingHistorical DataAir QualityAlertsAgricultural Weather

Properties

Name Type Description
ts number Unix Timestamp
timestamp_local string Timestamp in local time
timestamp_utc string Timestamp UTC
revision_status string Data revision status (interim or final)
datetime string Date in format "YYYY-MM-DD:HH". All datetime is in (UTC)
slp number Sea level pressure (mb)
pres number Pressure (mb)
rh integer Relative Humidity as a percentage (%)
dewpt number Dew point (Default Celcius)
temp number Temperature (Default Celcius)
app_temp number Apparent Temperature or Wind Chill/Heat Index (Default Celcius)
wind_spd number Wind Speed (Default m/s)
wind_gust_spd number Wind Gust Speed - Default (m/s)
wind_dir integer Wind direction (Degrees)
uv number UV Index (1-11+)
solar_rad number Estimated solar radiation (W/m^2)
ghi number Global horizontal solar irradiance (W/m^2)
dhi number Diffuse normal solar irradiance (W/m^2)
dni number Direct normal solar irradiance (W/m^2)
elev_angle number Solar elevation angle (Degrees)
azimuth number Azimuth angle (Degrees)
vis number Visibility (KM)
pod string Part of the day (d = day, n = night)
weather object
clouds integer Cloud Cover 0-100 (%)
precip number Liquid equivalent precipitation - Default (mm)
snow number Snowfall - Default (mm)
View JSON Schema on GitHub

JSON Schema

weatherbit-history-obj-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weatherbit/refs/heads/main/json-schema/weatherbit-history-obj-schema.json",
  "title": "HistoryObj",
  "description": "HistoryObj schema from Weatherbit API",
  "type": "object",
  "properties": {
    "ts": {
      "type": "number",
      "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": "number",
      "description": "Sea level pressure (mb)",
      "example": 1020.1
    },
    "pres": {
      "type": "number",
      "description": "Pressure (mb)",
      "example": 845.0
    },
    "rh": {
      "type": "integer",
      "description": "Relative Humidity as a percentage (%)",
      "example": 85
    },
    "dewpt": {
      "type": "number",
      "description": "Dew point (Default Celcius)",
      "example": -1.5
    },
    "temp": {
      "type": "number",
      "description": "Temperature (Default Celcius)",
      "example": -1.2
    },
    "app_temp": {
      "type": "number",
      "description": "Apparent Temperature or Wind Chill/Heat Index (Default Celcius)",
      "example": -1.5
    },
    "wind_spd": {
      "type": "number",
      "description": "Wind Speed (Default m/s)",
      "example": 14.7
    },
    "wind_gust_spd": {
      "type": "number",
      "description": "Wind Gust Speed - Default (m/s)",
      "example": 16.85
    },
    "wind_dir": {
      "type": "integer",
      "description": "Wind direction (Degrees)",
      "example": 325
    },
    "uv": {
      "type": "number",
      "description": "UV Index (1-11+)",
      "example": 4.0
    },
    "solar_rad": {
      "type": "number",
      "description": "Estimated solar radiation (W/m^2)",
      "example": 300.0
    },
    "ghi": {
      "type": "number",
      "description": "Global horizontal solar irradiance (W/m^2)",
      "example": 1500.0
    },
    "dhi": {
      "type": "number",
      "description": "Diffuse normal solar irradiance (W/m^2)",
      "example": 200.0
    },
    "dni": {
      "type": "number",
      "description": "Direct normal solar irradiance (W/m^2)",
      "example": 400.0
    },
    "elev_angle": {
      "type": "number",
      "description": "Solar elevation angle (Degrees)",
      "example": 27.5
    },
    "azimuth": {
      "type": "number",
      "description": "Azimuth angle (Degrees)",
      "example": 50.5
    },
    "vis": {
      "type": "number",
      "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": "integer",
          "description": "Weather Condition code",
          "example": 601
        },
        "description": {
          "type": "string",
          "description": "Weather Condition description",
          "example": "Light Snow"
        }
      }
    },
    "clouds": {
      "type": "integer",
      "description": "Cloud Cover 0-100 (%)",
      "example": 50
    },
    "precip": {
      "type": "number",
      "description": "Liquid equivalent precipitation - Default (mm)",
      "example": 3.0
    },
    "snow": {
      "type": "number",
      "description": "Snowfall - Default (mm)",
      "example": 30.0
    }
  }
}