Weatherbit · JSON Structure

Weatherbit Forecast Hourly Structure

ForecastHourly schema from Weatherbit API

Type: object Properties: 7
WeatherForecastingHistorical DataAir QualityAlertsAgricultural Weather

ForecastHourly is a JSON Structure definition published by Weatherbit, describing 7 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

city_name state_code country_code lat lon timezone data

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weatherbit/refs/heads/main/json-structure/weatherbit-forecast-hourly-structure.json",
  "name": "ForecastHourly",
  "description": "ForecastHourly schema from Weatherbit API",
  "type": "object",
  "properties": {
    "city_name": {
      "type": "string",
      "description": "City Name",
      "example": "Raleigh"
    },
    "state_code": {
      "type": "string",
      "description": "State Abbreviation",
      "example": "NC"
    },
    "country_code": {
      "type": "string",
      "description": "Country Abbreviation",
      "example": "US"
    },
    "lat": {
      "type": "double",
      "description": "Latitude",
      "example": 38.25
    },
    "lon": {
      "type": "double",
      "description": "Longitude",
      "example": -78.0
    },
    "timezone": {
      "type": "string",
      "description": "Local IANA time zone",
      "example": "America/New_York"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ForecastHour"
      }
    }
  }
}