Get Space Weather Alerts
noaa_spaceweather_get_alertsActive SWPC alerts, watches, and warnings — parsed into structured records with product type, NOAA scale and level, issue time, validity window, and plain text. Covers geomagnetic storms, radio blackouts, and radiation storms. With active_only=false, also returns informational summaries, expired notices, and cancellations. max_age_hours controls how far back to look (default 48 h); the SWPC feed keeps all historical records and has no built-in expiry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active_only | No | When true (default), return only in-force Warnings, Watches, and Alerts; exclude Summaries, Other, expired products, and cancellation notices. Set false to return all products, including cancellations (flagged by the cancelled field). | |
| max_age_hours | No | Maximum age of alerts to return, in hours (default 48). The SWPC feed retains all historical records — this window prevents returning weeks of historical notices as "active." |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| alerts | No | Matching SWPC alert/watch/warning records. | |
| notice | No | Status notice when no alerts are active. | |
| fetchedAt | No | ISO 8601 timestamp of when this data was fetched. | |
| totalCount | No | Count of records in the alerts array. |