Community. Driven. Weather. Data.Always Ad-FreeDeveloper FriendlyChecking statusDiscord
Become a supporter
Sign in

Status

The two health routes, one that says the API is up and one that says whether the alert feed behind it is fresh.


Base URL: https://api.wxalerts.org

Two routes for a monitor or a script that wants to know whether the API is alive and whether alerts are still arriving. Neither takes a key or a parameter. They are not under /v1, and they sit outside the per-address limit that the data routes share, so a monitor can poll them freely. Be reasonable: /health/deep runs a few database queries on every call, so once a minute is plenty.

GET /health

Access. Anonymous. No key, no limit.

Liveness. Answers 200 whenever the API process is up. It never touches the database, so a database outage does not show here; use /health/deep for that.

Parameters

None.

Response

{ "status": "ok" }
Field Type Description
status string Always ok

Errors

None of its own. If the process is down you get no answer or a gateway error from the edge, not a body from the API.

Caching and limits

No Cache-Control is set and there is no ETag.

GET /health/deep

Access. Anonymous. No key, no limit.

Readiness. It exercises the dependencies and asserts them, so the status code and the status field agree: 200 with ok, or 503 with degraded and the same body shape, with the failing check marked ok: false. status is ok only when the database answers, the spatial extension answers, the newest alert product is younger than the ingest threshold (900 seconds), and the read-only check on the ingest tables passes. Feed freshness under checks.feeds is reported for information and never turns the status to degraded on its own.

Parameters

None.

Response

Field Type Description
status string ok or degraded
checks.postgres object ok, and version (the server version) or error (an exception class name)
checks.postgis object ok, and version or error
checks.ingest.ok boolean True when product_age_seconds is under threshold_seconds
checks.ingest.last_product_at string or null When the newest alert product arrived, ISO 8601 with a +00:00 offset
checks.ingest.product_age_seconds number or null Seconds since then. null when no product has ever arrived
checks.ingest.threshold_seconds integer The freshness limit, 900
checks.ingest.active_alerts integer How many alerts are active right now
checks.ingest.last_alert_update string or null When any alert row last changed, +00:00 offset
checks.ingest.alert_staleness_seconds number or null Seconds since last_alert_update. A quiet night makes this large without anything being wrong, which is why it is not what decides ok
checks.ingest.staleness_seconds number or null Deprecated alias of alert_staleness_seconds
checks.ingest.detail string Present only when the check failed: how long since the last product, or that none has ever arrived
checks.feeds.ok boolean Always true when the query ran; informational
checks.feeds.covers string Which feeds the check covers: the text product feeds, NWWS and EMWIN
checks.feeds.note string The decoded CAP feed from api.weather.gov records no receipt and is not listed
checks.feeds.threshold_seconds integer The per-feed freshness limit, 1800
checks.feeds.up, checks.feeds.total integer Feeds fresher than the limit, and feeds seen
checks.feeds.sources object One entry per feed, keyed by name, each with ok, last_at (+00:00 offset) and age_seconds
checks.ingest_write_protection object ok and detail. ok is true when the API’s database role cannot write the ingest tables, as intended

A check that could not run carries ok: false and an error with the exception class name, never a message.

{
  "status": "ok",
  "checks": {
    "postgres": { "ok": true, "version": "PostgreSQL 16.4 on x86_64-pc-linux-gnu" },
    "postgis": { "ok": true, "version": "3.4.2" },
    "ingest": {
      "ok": true,
      "last_product_at": "2026-11-09T19:12:01.123456+00:00",
      "product_age_seconds": 4.2,
      "threshold_seconds": 900,
      "active_alerts": 212,
      "last_alert_update": "2026-11-09T19:11:48.000000+00:00",
      "alert_staleness_seconds": 17.3,
      "staleness_seconds": 17.3
    },
    "feeds": {
      "ok": true,
      "covers": "text product feeds (NWWS, EMWIN)",
      "threshold_seconds": 1800,
      "up": 2,
      "total": 2,
      "sources": {
        "nwws": { "ok": true, "last_at": "2026-11-09T19:12:01+00:00", "age_seconds": 4.2 },
        "emwin": { "ok": true, "last_at": "2026-11-09T19:11:55+00:00", "age_seconds": 10.2 }
      }
    },
    "ingest_write_protection": { "ok": true, "detail": "read-only on public as expected" }
  }
}

Errors

Status Meaning
503 A check failed. The body has the same shape with status set to degraded and the failing check marked ok: false

Caching and limits

No Cache-Control is set and there is no ETag. Do not cache it.

The timestamps here are +00:00 offsets, unlike the Z used by the data routes; see Units and timestamps.

View this page as Markdown

May we use Microsoft Clarity to see how pages are used (clicks, scrolling and replays of a visit, with anything you type hidden), plus a random ID linking that to crash reports? Only to find bugs and confusing screens. Never advertising, never sold.