Get a single NWS alert by id.
Returns the full alert detail (geometry, spatial metadata, affected population, etc.) for a single NWS alert. Use the id of an alert in alerts[] from GET /v1/alerts. Accepts either a group_id (the alert's canonical id, stable across its updates) or a message_id (one NWS message in that alert); callers do not need to disambiguate.
Caching
A successful response carries Cache-Control: max-age=60, so an updated or cancelled alert can be served from a cache for up to 60 seconds. Partner keys get private, max-age=60: your own client may reuse the response for the full max-age, but shared caches (CDNs, proxies) must not store it, since each request on a partner key is metered and rate-limited individually.
Geometry
geometry is a GeoJSON object embedded in the response. Clients should treat it as opaque GeoJSON: forward-compat fields the upstream pipeline adds without a sw-api release pass through unchanged.
Auth
Standard sw-api Bearer auth applies.
Request
- Base URL: https://api.smarterweather.com
- URL: https://api.smarterweather.com/v1/alerts/{id}
- Auth: HTTP bearer
Path parameters
Alert identifier: the id of an alert in alerts[] from GET /v1/alerts, or an alert's group_id or message_id. URL-encode embedded colons and slashes.
Query parameters
Comma-separated tokens. impact opts in to civic POI and building-count estimates (pois, buildings). Unknown tokens are ignored. Omitted on the default response so the lookup stays a primary-key read.
Response
Alert detail for the requested id.
Example response
{
"group_id": "urn:oid:2.49.0.1.840.0.d1e1a911ed0a8ca7b56a9e6a3c5d6ba0035c88fb.001.1",
"message_id": "urn:oid:2.49.0.1.840.0.d1e1a911ed0a8ca7b56a9e6a3c5d6ba0035c88fb.001.1",
"event": "Severe Thunderstorm Warning"
}Changes
No recorded changes to this operation across all 1 revision of this API.