wundcheck

Reports whether a Weather Underground personal weather station is currently online.

Endpoint

GET /api/v1/status?stationId=<station_id>&apiKey=<api_key>&thresholdMin=<minutes>
ParamRequiredNotes
stationIdyesWU PWS station ID, e.g. IMAIDE67
apiKeyyesYour own WU PWS API key.
thresholdMinnoMinutes of staleness before a station is considered offline. Defaults to the server's configured threshold.

Example

GET /api/v1/status?stationId=IMAIDE67&apiKey=apikeyaaaaaaaaaaaaaaaa

200 OK
{"stationID": "IMAIDE67", "status": "online", "ageSeconds": 120}

ageSeconds is how old the station's last observation was, in seconds. It's included whenever an observation was available to measure it from (online and most offline results), and omitted when the station is offline with no observation on record at all.

Responses

SituationHTTPstatus
Station online (fresh observation)200online
Station exists, data stale/not reporting200offline
Station ID unknown to WU404station_not_found
Supplied apiKey rejected by WU401invalid_api_key
WU upstream unreachable/erroring502upstream_unavailable
Unhandled server-side failure500error
Bad/missing request params400invalid_request
Client exceeded rate limit429rate_limited

All error bodies follow {"status": "<code>", "message": "<human readable>"}.