How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

National Weather Service Alerts API

The Alerts API from National Weather Service — 8 operation(s) for alerts.

National Weather Service Alerts API is one of 13 APIs that National Weather Service publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Alerts. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 8 operations across 8 paths, and defines 32 schemas. It is described by OpenAPI 3.2.0, at version 3.8.1.

Requests are made against a single base URL, https://api.weather.gov.

8 operations 8 paths 32 schemas 8 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
3.8.1
Base URL
https://api.weather.gov/
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

National Weather Service Alerts API declares 2 security schemes for authenticating requests. An API key is passed in the header as User-Agent (userAgent). An API key is passed in the header as API-Key (apiKeyAuth). By default, every request must be authenticated.

  • userAgent — We require that all consumers of the API include a User-Agent header in requests. This is due to a high number of scripts exhibiting abusive behavior (intentio…
  • apiKeyAuth — We are testing including a more traditional API Key system on certain endpoints. This is due to a large change in the weather.gov site. The API remains open an…

Paths & Operations 8

Across 8 paths, the API surfaces 8 operations — 8 GET. Each is listed below with its method, path, parameters, and response codes.

Alerts 8
GET
/alerts
Returns all alerts
alerts_query 17 params → 200301default
GET
/alerts/active
Returns all currently active alerts
alerts_active 12 params → 200301default
GET
/alerts/active/count
Returns info on the number of active alerts
alerts_active_count → 200default
GET
/alerts/active/zone/{zoneId}
Returns active alerts for the given NWS public zone or county
alerts_active_zone 1 param → 200default
GET
/alerts/active/area/{area}
Returns active alerts for the given area (state or marine area)
alerts_active_area 1 param → 200default
GET
/alerts/active/region/{region}
Returns active alerts for the given marine region
alerts_active_region 1 param → 200default
GET
/alerts/types
Returns a list of alert types
alerts_types → 200default
GET
/alerts/{id}
Returns a specific alert
alerts_single 1 param → 200default

Schemas 32

The contract defines 32 schemas that model the data the API accepts and returns. The most detailed are Alert (30 properties), AlertAtomEntry (19 properties), AlertAtomFeed (6 properties), ProblemDetail (6 properties). Each schema is shown below with its type and property counts.

StateTerritoryCode
string
GeoJsonCoordinate
array
A GeoJSON coordinate. Please refer to IETF RFC 7946 for information on the GeoJSON format.
AreaCode
State/territory codes and marine area codes
AlertId
string
The identifier of the alert message.
MarineRegionCode
string
Marine region code. These are groups of marine areas combined. AL: Alaska waters (PK) AT: Atlantic Ocean (AM, AN) GL: Great Lakes (LC, LE, LH, LM, LO, LS, SL)…
AlertCollection
object
3 properties
AlertUrgency
string
AlertJsonLd
object
1 property
AlertMessageType
string
Alert
object
An object representing a public alert message. Unless otherwise noted, the fields in this object correspond to the National Weather Service CAP v1.2 specificat…
30 properties
PaginationInfo
object
Links for retrieving more data from paged data sets
1 property 1 required
GeoJsonFeature
object
A GeoJSON feature. Please refer to IETF RFC 7946 for information on the GeoJSON format.
5 properties 3 required
AlertStatus
string
AlertCollectionJsonLd
AlertCertainty
string
ProblemDetail
object
Detail about an error. This document conforms to RFC 7807 (Problem Details for HTTP APIs).
6 properties 6 required
AlertCollectionGeoJson
AlertAtomFeed
object
An alert feed in Atom format
6 properties
GeoJsonPolygon
array
A GeoJSON polygon. Please refer to IETF RFC 7946 for information on the GeoJSON format.
GeoJsonBoundingBox
array
A GeoJSON bounding box. Please refer to IETF RFC 7946 for information on the GeoJSON format.
AlertCap
object
AlertAtomEntry
object
An alert entry in an Atom feed
19 properties
GeoJsonLineString
array
A GeoJSON line string. Please refer to IETF RFC 7946 for information on the GeoJSON format.
AlertGeoJson
AlertXMLParameter
object
2 properties
AlertSeverity
string
JsonLdContext
PointString
string
GeoJsonFeatureCollection
object
A GeoJSON feature collection. Please refer to IETF RFC 7946 for information on the GeoJSON format.
3 properties 2 required
MarineAreaCode
string
Marine area code as defined in NWS Directive 10-302: AM: Western North Atlantic Ocean and along U.S. East Coast south of Currituck Beach Light NC following the…
GeoJsonGeometry
A GeoJSON geometry object. Please refer to IETF RFC 7946 for information on the GeoJSON format.
NWSZoneID
string
UGC identifier for a NWS forecast zone or county. The first two letters will correspond to either a state code or marine area code (see /components/schemas/Sta…

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

national-weather-service-alerts-api-openapi.yml Raw ↑

Other APIs National Weather Service publishes across the network.

National Weather Service Aviation API
National Weather Service Glossary API
National Weather Service Gridpoints API
National Weather Service Icons API
National Weather Service Offices API
National Weather Service Points API
National Weather Service Products API
National Weather Service Radar API
National Weather Service Radio API
National Weather Service Stations API
National Weather Service Thumbnails API
National Weather Service Zones API
Where this information came from

This is an independent, third-party profile of National Weather Service Alerts API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.