apyhub
Back
▣ VERIFICATION KIT

US and Germany Weather Alerts API

What it does

The Severe Weather Alerts API returns the official weather warnings that are active right now in the United States and Germany. Ask for a whole country, some states, or specific map points. Each warning comes back with its event, severity, headline, description, safety instructions, start and end times, and the affected area.

Use mode: area to list every active warning in country US or DE. Add states to narrow it, for example TX, Texas or BY. Use mode: point to check up to 25 places by lat,lon. A place with no warning still returns a row with activeAlerts: 0. Filter with events (words like flood or frost) and minSeverity, and set limit from 1 to 100 rows. Add includeGeometry to get the warning's map polygon.

US warnings come from the National Weather Service. German warnings come from the Deutscher Wetterdienst and arrive in German. The most severe warnings come first, and every row names its source.

Delivery and fleet apps use this weather alerts API to reroute vehicles around storms. Insurers use it to warn customers before damage happens. Event and safety teams use it to decide if outdoor plans can go ahead.

To check a street address, first turn it into coordinates with the Geocode Addresses API. To read warnings aloud in an app, pair it with the Convert Text to Speech API.

POST
Weather Alerts API - NWS & DWD Severe Weather Warnings
https://api.eu.apyhub.com/martin10291/us-germany-weather-alerts

QUICKSTART

GUIDE

Quickstart

Get the most severe weather warnings active in the US right now.

curl -X POST "https://api.eu.apyhub.com/martin10291/us-germany-weather-alerts" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode": "area", "country": "US", "minSeverity": "Severe", "limit": 2}'

What you'll get back

Returns a JSON object with count and an items array of warnings, most severe first. The example below is trimmed to 1 of the 2 rows.

{
  "count": 2,
  "items": [
    {
      "areaDesc": "Yuma, AZ",
      "certainty": "Likely",
      "country": "US",
      "description": "* WHAT...Flooding caused by an upstream dam release is expected.\n\n* WHERE...Central Yuma County in southwestern Arizona...\n\n* WHEN...Until 300 PM MST Monday Nov 30.",
      "ends": "2026-11-30T22:00:00Z",
      "event": "Flood Warning",
      "expires": "2026-11-30T22:00:00Z",
      "fetchedAt": "2026-11-25T08:25:09Z",
      "hasPolygon": true,
      "headline": "Flood Warning issued November 23 at 1:10PM MST until November 30 at 3:00PM MST by NWS Phoenix AZ",
      "id": "urn:oid:2.49.0.1.840.0.d3fb5f5064b53816a174c33db46aa9ccdbff1a91.001.1",
      "instruction": "Turn around, don't drown when encountering flooded roads. Most flood\ndeaths occur in vehicles.\n\nBe aware of your surroundings and do not drive on flooded roads.",
      "language": "en-US",
      "messageType": "Update",
      "onset": "2026-11-23T20:10:00Z",
      "senderName": "NWS Phoenix AZ",
      "sent": "2026-11-23T20:10:00Z",
      "severity": "Severe",
      "source": "U.S. National Weather Service (api.weather.gov), public domain",
      "states": ["AZ"],
      "status": "Actual",
      "urgency": "Expected",
      "url": "https://api.weather.gov/alerts/urn:oid:2.49.0.1.840.0.d3fb5f5064b53816a174c33db46aa9ccdbff1a91.001.1",
      "zones": ["AZC027"]
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
For point: latitude of one place. Use with lon, or send locations instead.
For point: longitude of one place. Use with lat, or send locations instead.
area = every active warning in a country, optionally only some states; point = warnings that cover specific lat,lon places.

About this endpoint

What it does

Returns the official severe weather warnings active right now in the United States (National Weather Service) or Germany (Deutscher Wetterdienst), either for a whole country or states, or for specific map points. Rows are sorted with the most severe warnings first.

Request Body

ParameterTypeDescription
modeENUMAllowed values: area, point. Default: area. area: every active warning in a country, optionally only some states. point: warnings that cover specific map points.
countryENUMFor area. Allowed values: US, DE. Default: US. US covers states, territories and coastal waters.
statesString ArrayFor area. US state codes or names (TX, Texas) or German state codes or names (BY, Bavaria). Empty means the whole country. An unknown state returns 400. Max 100 items.
latNumberFor point: latitude of one place, for example 39.7392. Required with lon unless locations is sent.
lonNumberFor point: longitude of one place, for example -104.9903. Required with lat unless locations is sent.
locationsString ArrayFor point: places as "lat,lon", for example "29.7604,-95.3698". Max 25 items. Every place must be in the US or Germany, otherwise the request returns 400.
eventsString ArrayOnly warnings whose event or headline contains one of these words, for example tornado, flood, wind, Frost. Max 100 items.
minSeverityENUMOnly warnings at this level or higher. Allowed values: Minor, Moderate, Severe, Extreme.
limitIntegerMaximum rows returned. Default: 20. Range: 1 to 100. Also applies to point mode, so set it at least as high as the number of places.
includeGeometryBooleanAdd the warning polygon (GeoJSON) in geometry when the source has one. Default: false.
includeTestsBooleanAlso return US test messages, which are normally hidden.

Response

Returns a JSON object with count and an items array. Warning rows share the same core fields; fields a source does not provide are null or left out. In point mode, a place with no warning returns a short row with activeAlerts: 0.

ParameterTypeDescription
countIntegerNumber of rows in items.
itemsObject ArrayWarnings, most severe first.
items[].idStringWarning id from the source.
items[].eventStringWarning type, for example Flood Warning (US) or FROST (Germany).
items[].severityENUMAllowed values: Minor, Moderate, Severe, Extreme.
items[].urgencyStringHow soon to act, for example Immediate, Expected. null for German warnings.
items[].certaintyStringHow likely the event is, for example Observed, Likely. null for German warnings.
items[].headlineStringShort headline.
items[].descriptionStringFull warning text.
items[].instructionStringWhat people should do. null when the source gives none.
items[].areaDescStringAffected area in words.
items[].statesString ArrayCodes of the states affected. Empty for offshore US areas.
items[].zonesString ArrayUS only: NWS forecast zones.
items[].countryStringUS or DE.
items[].languageStringen-US or de-DE.
items[].sentStringTime the warning was issued, ISO 8601 UTC.
items[].onsetStringTime the event starts.
items[].endsStringTime the event ends.
items[].expiresStringTime this warning message expires; a newer update may replace it before ends.
items[].statusStringFor example Actual, or Test with includeTests.
items[].messageTypeStringFor example Alert, Update.
items[].senderNameStringIssuing office, for example NWS Phoenix AZ.
items[].hasPolygonBooleanUS only: true when a map polygon exists.
items[].geometryObjectGeoJSON polygon. Only with includeGeometry: true; null when the warning has no polygon.
items[].dwdLevelIntegerGermany only: DWD warning level.
items[].eventTypeStringGermany only: event type in plain words, for example Frost.
items[].stateNameStringGermany only: state name, for example Hessen.
items[].warnCellIdStringGermany only: DWD warning cell id.
items[].activeAlertsIntegerpoint mode: number of warnings at that place.
items[].locationStringpoint mode: the place as sent.
items[].noteStringpoint mode rows with no warning: for example no active official warning for this point right now.
items[].urlStringLink to the warning at the source.
items[].sourceStringData source and licence, for example Deutscher Wetterdienst (dwd.de), CC BY 4.0. Keep it for attribution.
items[].fetchedAtStringTime the data was fetched, ISO 8601 UTC.

Notes

  • With an empty body, the API returns US warnings (mode: area, country: US).
  • mode: point without lat/lon or locations returns 400. More than 25 locations returns 400.
  • German warning text is in German.
  • Errors use one shape: {"code": "invalid_input", "error": "...", "message": "..."}.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.