Weather.gov · Schema

Observation

Observation schema from weather.gov API

WeatherGovernmentUnited StatesForecastingAlertsOpen Data

Properties

Name Type Description
@context object
geometry object
@id string
@type string
elevation object
station string
stationId string
stationName string
timestamp string
rawMessage string
textDescription string
icon stringnull
presentWeather array
temperature object
dewpoint object
windDirection object
windSpeed object
windGust object
barometricPressure object
seaLevelPressure object
visibility object
maxTemperatureLast24Hours object
minTemperatureLast24Hours object
precipitationLastHour object
precipitationLast3Hours object
precipitationLast6Hours object
relativeHumidity object
windChill object
heatIndex object
cloudLayers arraynull
View JSON Schema on GitHub

JSON Schema

weather-gov-observation-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/weather-gov/refs/heads/main/json-schema/weather-gov-observation-schema.json",
  "title": "Observation",
  "description": "Observation schema from weather.gov API",
  "type": "object",
  "properties": {
    "@context": {
      "$ref": "#/components/schemas/JsonLdContext"
    },
    "geometry": {
      "$ref": "#/components/schemas/GeometryString"
    },
    "@id": {
      "type": "string",
      "format": "uri"
    },
    "@type": {
      "enum": [
        "wx:ObservationStation"
      ],
      "type": "string"
    },
    "elevation": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "station": {
      "type": "string",
      "format": "uri"
    },
    "stationId": {
      "type": "string"
    },
    "stationName": {
      "type": "string"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "rawMessage": {
      "type": "string"
    },
    "textDescription": {
      "type": "string"
    },
    "icon": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "deprecated": true
    },
    "presentWeather": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MetarPhenomenon"
      }
    },
    "temperature": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "dewpoint": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "windDirection": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "windSpeed": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "windGust": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "barometricPressure": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "seaLevelPressure": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "visibility": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "maxTemperatureLast24Hours": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "minTemperatureLast24Hours": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "precipitationLastHour": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "precipitationLast3Hours": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "precipitationLast6Hours": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "relativeHumidity": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "windChill": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "heatIndex": {
      "$ref": "#/components/schemas/QuantitativeValue"
    },
    "cloudLayers": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "required": [
          "base",
          "amount"
        ],
        "type": "object",
        "properties": {
          "base": {
            "$ref": "#/components/schemas/QuantitativeValue"
          },
          "amount": {
            "$ref": "#/components/schemas/MetarSkyCoverage"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}