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

Spotter live map and placefile

Send and clear a spotter's position for the live map, read the spotters currently shown, and load spotter reports as a GRLevelX placefile.


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

Spotters can choose to appear as a dot on the public map. The app sends where it is while its owner has the setting on, and anyone can read the dots. The same spotter reports are also available as a placefile for GRLevel3, GR2Analyst and GREarth, which cannot send a header or a cookie, so that route is anonymous.

The signed-in routes use the app’s Bearer token or the site’s session cookie. The CSRF header and the common errors are at the top of Spotter reports. The setting that turns sharing on is share_location on the profile.

POST /spotter/position

Signed in, CSRF header for cookie requests. Update where this spotter is shown on the public map. Accepted only from an account that may be shown right now: sharing must be on and the profile must exist and not be suspended. No certificate is needed.

Request body (JSON)

Field Type Required Bounds
lat number yes -90 to 90
lon number yes -180 to 180

Nothing else is accepted or kept: no accuracy, heading or speed.

Response

200:

Field Type Notes
min_interval_seconds integer the fastest an account may update, currently 30
stale_after_seconds integer how long a position stays on the map without another one, currently 1800
{"min_interval_seconds": 30, "stale_after_seconds": 1800}

Errors

Status Body When
403 {"detail": {"reason": "not_sharing", "message": "..."}} sharing is off. Other reasons are suspended and no_profile. Any refusal also removes the stored position. A client must stop sending: the answer will not change until the person acts
429 {"detail": "Position updated too recently. Send again after Retry-After."} and a Retry-After header in seconds updated inside the interval
422 default list format lat or lon missing or out of range

DELETE /spotter/position

Signed in, CSRF header for cookie requests. Take this spotter off the map now. For the app to call when it stops sending (signed out, permission withdrawn, or the switch turned off on the device). It leaves the share_location setting alone and is idempotent.

Response

204 No Content.

GET /spotter/positions

Anonymous. The spotters who chose to be shown, and roughly where.

Parameters

Name In Type Required Default Format
bbox query string no none minLon,minLat,maxLon,maxLat, four decimal numbers

Response

200 with an array, at most 500 entries. Empty while the public feed is switched off. There is no id of any kind in an entry, so a dot cannot be followed across sessions.

Field Type Notes
lat, lon number rounded to 3 decimal places, about 110 m
last_seen string UTC, floored to a 5 minute boundary
handle string the public handle
callsign string or null only when the spotter shows it
photo_url string or null
[{"lat": 41.586, "lon": -93.625, "last_seen": "2026-11-23T19:10:00Z", "handle": "stormchaser42", "callsign": null, "photo_url": null}]

Errors

Status Body When
422 {"detail": "bbox must be minLon,minLat,maxLon,maxLat"} bbox is not four numbers

Caching

Cache-Control: public, max-age=30. A position older than 30 minutes is dropped.

GET /placefile/spotter-reports.txt

Anonymous. Spotter reports as a GRLevelX placefile. Add the URL as a placefile in GRLevel3, GR2Analyst or GREarth, which refresh it every two minutes. The setup is in Add the spotter placefile to your radar software and the icons and hover text are in the placefile format.

The answer is always a well formed placefile, even when there is nothing to draw, the public feed is off, or a token or key is unknown. An empty layer is a file with a header and no objects. The public file leaves out restricted reports. A token or a key adds them, and an unknown or revoked one falls back to the public file rather than failing.

Parameters

Name In Type Required Default Bounds and values
hours query integer no 2 1 to 24, how far back
state query string no all up to 2 characters, a state code. Matched upper cased
cwa query string no all up to 4 characters, a county warning area such as DMX. Matched upper cased
types query string no all comma separated event types, for example tornado,funnel_cloud. Not validated
min_confidence query integer no none 0 to 100. Reports not scored yet are left out. Applies to token and key requests too
token query string no none a per organization token issued to a forecast office or EOC. Adds restricted reports. Treat the URL as a secret
key query string no none max 128 characters. A verified meteorologist’s personal placefile key, made on the account (see Meteorologist keys). Adds restricted reports and records that the fetch happened

Unlike every other route, a credential in the query is allowed here, because the software cannot send a header.

Response

200, Content-Type: text/plain. A placefile: a header (Title: with the scope, time and report count, Refresh: 2, Threshold: 200, IconFile: pointing at the icon sheet below), one Object: block per report, then End:. At most 400 reports are drawn, lowest confidence dropped first, and the title says how many were left out. Each hover text ends with the report’s web address.

Title: WxAlerts Spotter Reports (US) @1912Z - 14 reports
Refresh: 2
Threshold: 200
IconFile: 1, 32, 32, 16, 16, "https://api.wxalerts.org/placefile/spotter-icons.png"
Object: 41.5868,-93.6250
...
End:

Errors

There are none for a bad token or key. 422 in the default list format is returned for hours or min_confidence out of range.

Caching

Request Cache-Control
plain, hours=1 or hours=2, with at most one of state or cwa, and no types, min_confidence, token or key public, max-age=45, cached at the edge and purged when a report is withdrawn
anything else public, max-age=30, no-store, built fresh

Any request with a key is never cached at the edge, so restricted reports are not handed to the next person who asks for the public URL.

GET /placefile/spotter-icons.png

Anonymous. The icon sheet the spotter placefile points at, a PNG. It is served from the API so a client that can reach the placefile can reach its icons.

Response

200, Content-Type: image/png, Cache-Control: public, max-age=86400.

Errors

Status Body When
404 {"detail": "..."} the icon sheet is missing from the deployment

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.