Base URL: https://api.wxalerts.org
Plain HTTPS and JSON. There is no supported OpenAPI document and no interactive console:
every route is described in these pages. Many routes are public and need no
key, because this site is built static and calls the same endpoints from the
browser. The weather data routes are also served under /v1 with an
API key, and a few are served only there.
The routes behind sign-in take a session or an app token. Browsers block calls
from other websites (CORS allows only wxalerts.org), so call the API from a
server, script or app. None of it is exempt from the
Terms of Service; the clauses that decide what you may build are in
Terms for builders.
Start with Conventions: base URLs, bare paths versus
/v1, auth methods, scopes, the error format, rate limits, units and
timestamps, pagination and versioning. To make a first call, follow
Make your first API call. For alerts and
lightning for your own places as they happen, MQTT
pushes them to your account instead of you polling. WxAlerts is not a
life-safety source; the developer overview says what that
means for what you build.
Bare path or /v1
| bare path | /v1 path |
|
|---|---|---|
| example | /alerts/at |
/v1/alerts/at |
| auth | none, or a key to move the request onto the key’s budget | a key with the route’s scope |
| who is counted | your address | your key |
| caching | shared caches may cache | Cache-Control: private |
| key-only routes | answer 401 api_key_required |
work |
Conventions has the full rules.
Routes behind sign-in (accounts, notifications, spotters and the rest) have no
/v1 form.
Every route
Every route a client can call is listed below with the page that describes it.
Each route has its own section on its page, headed with the method and path.
Where a weather route is also served under /v1, its section says so.
Weather data
| page | routes |
|---|---|
| Alerts | GET /alerts/active, GET /alerts/active/geojson, GET /alerts/at, GET /alerts/ended-in-bounds, GET /alerts/focus, GET /alerts/highest-severity, GET /alerts/{identifier}, GET /alerts/in-bounds, GET /alerts/pages, GET /alerts/page/{short_id}, GET /alerts/page/{short_id}/rundown |
| Statistics | GET /stats/latency, GET /stats/lightning/daily, GET /stats/summary |
| SPC outlooks | GET /outlooks, GET /outlooks/{product}/geojson |
| Weather API | GET /weather |
| Forecast API | GET /forecast |
| Point soundings | GET /forecast/sounding |
| Raw model data | GET /v1/forecast/raw |
| Observations | GET /conditions, GET /stations, GET /stations/{station_id}, GET /stations/{station_id}/history |
| Sunrise and sunset outlook | GET /sky/outlook |
| Low visibility | GET /visibility, GET /visibility/point, POST /visibility/reports |
| Storm cells | GET /storms/active, GET /storms/active/geojson, GET /storms/couplets/{couplet_id}/cone, GET /storms/{storm_id}/cone, GET /storms/{storm_id}, GET /storms/{storm_id}/forecast-track, GET /storms/{storm_id}/track |
| Lightning | GET /lightning/flashes |
| Local storm reports | GET /lsr/reports, GET /placefile/lsr-icons.png, GET /placefile/lsr.txt |
| Tropical cyclones | GET /tropical/for-place, GET /tropical/outlook, GET /tropical/storms, GET /tropical/storms/{storm_id}, GET /tropical/storms/{storm_id}/models |
| Winter weather | GET /winter/at, GET /winter/hazards, GET /winter/odds, GET /winter/wssi |
| Locations | GET /locations/popular, GET /locations/search |
| Status | GET /health/deep, GET /health |
Account, keys and integrations
| page | routes |
|---|---|
| Sign-in and session | DELETE /auth/connections/{slug}, GET /auth/callback, GET /auth/connections, GET /auth/connections/{slug}/connect, GET /auth/entitlements, GET /auth/l2-token, GET /auth/login, GET /auth/me/delete, GET /auth/me, GET /auth/reauth, GET /auth/step-up, POST /auth/logout, POST /auth/me/delete |
| Account, type and requests | DELETE /account/placefile-keys/{key_id}, GET /account/eoc/request, GET /account/eoc/verify, GET /account/meteorologist/request, GET /account/meteorologist/verify, GET /account/placefile-keys, GET /account/preferences, GET /account/type, PATCH /account/preferences, POST /account/eoc/request/submit, POST /account/eoc/request/withdraw, POST /account/eoc/verify-email, POST /account/meteorologist/request/submit, POST /account/meteorologist/request/withdraw, POST /account/meteorologist/verify-email, POST /account/placefile-keys, PUT /account/eoc/request, PUT /account/meteorologist/request |
| API keys | DELETE /account/api-keys/{key_id}, GET /account/api-keys, GET /account/api-keys/{key_id}/usage, PATCH /account/api-keys/{key_id}, POST /account/api-keys |
| MQTT credentials and offices | DELETE /account/mqtt-credentials/{credential_id}, DELETE /account/mqtt-wfos/{wfo}, GET /account/mqtt-credentials, GET /account/mqtt-wfos, POST /account/mqtt-credentials/{credential_id}/rotate, POST /account/mqtt-credentials, POST /account/mqtt-wfos |
| Home Assistant instances | DELETE /integrations/home-assistant/credentials, DELETE /integrations/home-assistant/instances/{instance_id}, GET /integrations/home-assistant/credentials, GET /integrations/home-assistant/instances, POST /integrations/home-assistant/credentials, POST /integrations/home-assistant/instances, POST /integrations/home-assistant/instances/{instance_id}/heartbeat, POST /integrations/home-assistant/instances/{instance_id}/rotate |
| Billing and donations | GET /billing/store/eligibility, GET /donations/stats, POST /billing/checkout, POST /billing/store/sync, POST /donations/checkout |
Notifications
| page | routes |
|---|---|
| Saved places | DELETE /notifications/places/{place_id}, GET /notifications/places, PATCH /notifications/places/{place_id}, POST /notifications/places |
| Text message enrollment | DELETE /notifications/sms, GET /notifications/sms, POST /notifications/sms, POST /notifications/sms/verify |
| Contacts and people | DELETE /notifications/contacts/{contact_id}, DELETE /notifications/people/{person_id}, DELETE /notifications/places/{place_id}/contacts/{contact_id}, GET /notifications/contacts/confirm, GET /notifications/contacts, GET /notifications/contacts/unsubscribe, GET /notifications/people, GET /notifications/places/{place_id}/contacts, PATCH /notifications/people/{person_id}, POST /notifications/contacts/{contact_id}/invite, POST /notifications/contacts/{contact_id}/test, POST /notifications/contacts, POST /notifications/contacts/unsubscribe, POST /notifications/people, POST /notifications/voice/subscribe, PUT /notifications/contacts/{contact_id}/person, PUT /notifications/places/{place_id}/contacts/{contact_id} |
| Guardian Line enrollment | DELETE /notifications/contacts/{contact_id}/assisted, GET /notifications/contacts/assisted/terms, POST /notifications/contacts/{contact_id}/assisted/approve, PUT /notifications/contacts/{contact_id}/assisted, PUT /notifications/contacts/{contact_id}/number |
| Push devices | DELETE /notifications/anonymous/devices/{device_id}, DELETE /notifications/anonymous/devices/{device_id}/position, DELETE /notifications/devices/{device_id}, DELETE /notifications/devices/{device_id}/position, GET /notifications/devices, GET /notifications/web-push/key, POST /notifications/anonymous/devices/{device_id}/position, POST /notifications/devices/{device_id}/position, PUT /notifications/anonymous/devices/{device_id}, PUT /notifications/devices/{device_id}, PUT /notifications/web-push/devices/{device_id} |
| Notification history | GET /notifications/history |
| SPC outlook notifications | GET /notifications/outlook/notices/{notice_id}, GET /notifications/outlook/places/{place_id}, GET /notifications/outlook/status, GET /notifications/outlook/unsubscribe, POST /notifications/outlook/unsubscribe |
| Sunrise and sunset notifications | GET /notifications/sky/evaluations/{evaluation_id}, GET /notifications/sky/places/{place_id}/preview, GET /notifications/sky/status, GET /notifications/sky/unsubscribe, POST /notifications/sky/evaluations/{evaluation_id}/feedback, POST /notifications/sky/unsubscribe |
Spotters, vetting, stations and training
| page | routes |
|---|---|
| Spotter reports | GET /spotter/directory, GET /spotter/event-types/popularity, GET /spotter/orgs/{org_id}/roster, GET /spotter/reports, GET /spotter/reports/{ref}, POST /spotter/reports/batch, POST /spotter/reports, POST /spotter/reports/{ref}/dispute, POST /spotter/reports/{ref}/retract |
| Report photographs | DELETE /spotter/reports/{ref}/photos/{photo_ref}, GET /spotter/reports/{ref}/photos, POST /spotter/reports/{ref}/photos |
| Spotter profile and standing | DELETE /spotter/profile/photo, GET /spotter/invitations, GET /spotter/me, GET /spotter/me/record, GET /spotter/profile, POST /spotter/callsign/verify, POST /spotter/orgs/{org_id}/invitation/accept, POST /spotter/orgs/{org_id}/invitation/decline, PUT /spotter/profile, PUT /spotter/profile/photo |
| Spotter live map and placefile | DELETE /spotter/position, GET /placefile/spotter-icons.png, GET /placefile/spotter-reports.txt, GET /spotter/positions, POST /spotter/position |
| Public spotter profiles | GET /spotters/counties, GET /spotters/{handle}, GET /spotters/{handle}/reports |
| Spotter inbox and conversations | GET /spotter/inbox, GET /spotter/reports/{ref}/thread, POST /spotter/reports/{ref}/thread/mute, POST /spotter/reports/{ref}/thread/read, POST /spotter/reports/{ref}/thread/replies, POST /spotter/reports/{ref}/thread/unmute, POST /threads/messages/{message_id}/flag |
| Meteorologist vetting | DELETE /vet/reports/{ref}/mark, GET /vet/board, GET /vet/reports/{ref}/mark, GET /vet/reports/{ref}/thread, GET /vet/threads, POST /vet/reports/{ref}/remarks, POST /vet/reports/{ref}/thread/close, POST /vet/reports/{ref}/thread/leave, POST /vet/reports/{ref}/thread/questions, POST /vet/reports/{ref}/thread/questions/{question_id}/withdraw, POST /vet/reports/{ref}/thread/read, POST /vet/reports/{ref}/thread/replies/{reply_id}/promote, PUT /vet/reports/{ref}/mark |
| Weather station gateways | DELETE /pws/gateways/{device_id}, GET /pws/composite/current, GET /pws/composite, GET /pws/composite/history, GET /pws/device/identity, GET /pws/gateways/{device_id}/commands/{command_id}, GET /pws/gateways/{device_id}, GET /pws/gateways, GET /pws/stations, GET /pws/stations/{station_id}/current, GET /pws/stations/{station_id}/history, PATCH /pws/gateways/{device_id}, POST /pws/claim/approve, POST /pws/claim/poll, POST /pws/claim/start, POST /pws/gateways/{device_id}/commands, PUT /pws/composite, PUT /pws/stations/{station_id} |
| Spotter training and exam | DELETE /training/progress/lessons/{module_slug}/{lesson_slug}, GET /training/exam/attempts/{public_id}, GET /training/exam/media/{item_token}, GET /training/exam/status, GET /training/progress, PATCH /training/exam/attempts/{public_id}/responses, POST /training/exam/attempts, POST /training/exam/attempts/{public_id}/submit, POST /training/progress/lessons |
| Spotter certificates | GET /training/certificate, GET /training/certificate-name, GET /training/certificate.pdf, GET /training/nws-certificate, GET /training/verify/{credential_no}, POST /training/certificate-name/preview, POST /training/nws-certificate, POST /training/self-attestation, PUT /training/certificate-name |
Not in this reference
The Admin panel routes, the broker hooks the MQTT service calls, the inbound webhooks from payment, store, phone and learning providers, and routes that exist only in a development build serve the WxAlerts staff and services, not clients. They are not part of the public API and are not described here.
Limits, errors, keys and terms
- Rate limits: the limits for clients without a key, and the tighter per-route ones.
- Errors: the error shape, the status codes, and the errors each resource adds.
- Authentication: header forms, scopes and per-key limits.
- Make, send and revoke an API key.
- Terms for builders: the clauses that decide what you may build.