Weather.gov · JSON Structure

Weather Gov Alert Structure

An object representing a public alert message. Unless otherwise noted, the fields in this object correspond to the National Weather Service CAP v1.2 specification, which extends the OASIS Common Alerting Protocol (CAP) v1.2 specification and USA Integrated Public Alert and Warning System (IPAWS) Profile v1.0. Refer to this documentation for more complete information. http://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2-os.html http://docs.oasis-open.org/emergency/cap/v1.2/ipaws-profile/v1.0/cs01/cap-v1.2-ipaws-profile-cs01.html https://vlab.noaa.gov/web/nws-common-alerting-protocol/cap-documentation

Type: object Properties: 30
WeatherGovernmentUnited StatesForecastingAlertsOpen Data

Alert is a JSON Structure definition published by Weather.gov, describing 30 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id areaDesc geocode affectedZones references sent effective onset expires ends status messageType category severity certainty urgency event sender senderName headline description instruction note response parameters scope code language web eventCode

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/weather-gov/refs/heads/main/json-structure/weather-gov-alert-structure.json",
  "name": "Alert",
  "description": "An object representing a public alert message.\nUnless otherwise noted, the fields in this object correspond to the National Weather Service CAP v1.2 specification, which extends the OASIS Common Alerting Protocol (CAP) v1.2 specification and USA Integrated Public Alert and Warning System (IPAWS) Profile v1.0. Refer to this documentation for more complete information.\nhttp://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2-os.html http://docs.oasis-open.org/emergency/cap/v1.2/ipaws-profile/v1.0/cs01/cap-v1.2-ipaws-profile-cs01.html https://vlab.noaa.gov/web/nws-common-alerting-protocol/cap-documentation\n",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/components/schemas/AlertId"
    },
    "areaDesc": {
      "type": "string",
      "description": "A textual description of the area affected by the alert."
    },
    "geocode": {
      "type": "object",
      "properties": {
        "UGC": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/NWSZoneID"
          },
          "description": "A list of NWS public zone or county identifiers."
        },
        "SAME": {
          "type": "array",
          "items": {
            "pattern": "^\\d{6}$",
            "type": "string"
          },
          "description": "A list of SAME (Specific Area Message Encoding) codes for affected counties."
        }
      },
      "description": "Lists of codes for NWS public zones and counties affected by the alert."
    },
    "affectedZones": {
      "type": "array",
      "items": {
        "type": "uri"
      },
      "description": "An array of API links for zones affected by the alert. This is an API-specific extension field and is not part of the CAP specification.\n"
    },
    "references": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "@id": {
            "type": "uri",
            "description": "An API link to the prior alert."
          },
          "identifier": {
            "$ref": "#/components/schemas/AlertId"
          },
          "sender": {
            "type": "string",
            "description": "The sender of the prior alert."
          },
          "sent": {
            "type": "datetime",
            "description": "The time the prior alert was sent."
          }
        }
      },
      "description": "A list of prior alerts that this alert updates or replaces."
    },
    "sent": {
      "type": "datetime",
      "description": "The time of the origination of the alert message."
    },
    "effective": {
      "type": "datetime",
      "description": "The effective time of the information of the alert message."
    },
    "onset": {
      "type": [
        "string",
        "null"
      ],
      "description": "The expected time of the beginning of the subject event of the alert message.",
      "format": "date-time"
    },
    "expires": {
      "type": "datetime",
      "description": "The expiry time of the information of the alert message."
    },
    "ends": {
      "type": [
        "string",
        "null"
      ],
      "description": "The expected end time of the subject event of the alert message.",
      "format": "date-time"
    },
    "status": {
      "$ref": "#/components/schemas/AlertStatus"
    },
    "messageType": {
      "$ref": "#/components/schemas/AlertMessageType"
    },
    "category": {
      "enum": [
        "Met",
        "Geo",
        "Safety",
        "Security",
        "Rescue",
        "Fire",
        "Health",
        "Env",
        "Transport",
        "Infra",
        "CBRNE",
        "Other"
      ],
      "type": "string",
      "description": "The code denoting the category of the subject event of the alert message."
    },
    "severity": {
      "$ref": "#/components/schemas/AlertSeverity"
    },
    "certainty": {
      "$ref": "#/components/schemas/AlertCertainty"
    },
    "urgency": {
      "$ref": "#/components/schemas/AlertUrgency"
    },
    "event": {
      "type": "string",
      "description": "The text denoting the type of the subject event of the alert message."
    },
    "sender": {
      "type": "string",
      "description": "Email address of the NWS webmaster."
    },
    "senderName": {
      "type": "string",
      "description": "The text naming the originator of the alert message."
    },
    "headline": {
      "type": [
        "string",
        "null"
      ],
      "description": "The text headline of the alert message."
    },
    "description": {
      "type": "string",
      "description": "The text describing the subject event of the alert message."
    },
    "instruction": {
      "type": [
        "string",
        "null"
      ],
      "description": "The text describing the recommended action to be taken by recipients of the alert message.\n"
    },
    "note": {
      "type": [
        "string",
        "null"
      ],
      "description": "The text note accompanying the alert message. Per CAP spec, this should accompany alerts with a status of \"Test\".\n"
    },
    "response": {
      "enum": [
        "Shelter",
        "Evacuate",
        "Prepare",
        "Execute",
        "Avoid",
        "Monitor",
        "Assess",
        "AllClear",
        "None"
      ],
      "type": "string",
      "description": "The code denoting the type of action recommended for the target audience.\nThis corresponds to responseType in the CAP specification.\n"
    },
    "parameters": {
      "type": "object",
      "description": "System-specific additional parameters associated with the alert message.\nThe keys in this object correspond to parameter definitions in the NWS CAP specification.\n",
      "additionalProperties": {
        "type": "array",
        "items": {}
      }
    },
    "scope": {
      "enum": [
        "Public",
        "Restricted",
        "Private"
      ],
      "type": "string",
      "description": "The code denoting the intended distribution of the alert message."
    },
    "code": {
      "type": "string",
      "description": "The code denoting the special handling of the alert message."
    },
    "language": {
      "type": "string",
      "description": "The code denoting the language of the info sub-element of the alert message."
    },
    "web": {
      "type": "string",
      "description": "The identifier of the hyperlink associating additional information within the alert message."
    },
    "eventCode": {
      "type": "object",
      "description": "System-specific code identifiying the event type of the alert message The keys in this object correspond to eventCode definitions in the NWS CAP specification.\n",
      "additionalProperties": {
        "type": "array",
        "items": {}
      }
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/weather-gov-alert-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.