TerraAvert
← Live map

Free alerts API

Read TerraAvert's alerts from your own site, app or feed reader. It is free, needs no key or sign-up, and every alert says who issued it and how it was measured. It is read-only.

Quick start

Open alerts within 300 km of Dubai:

curl -A "Mozilla/5.0" "https://terraavert.com/api/alerts?near=25.2,55.3&radius_km=300&status=open"

Send a normal User-Agent header. Our network protection turns away requests that do not identify their client (for example the bare default of some scripting libraries) with a 403.

Endpoints

AddressWhat you get
/api/alertsAlerts as JSON, oldest first.
/api/alerts.geojsonThe same alerts as a GeoJSON FeatureCollection of points, ready for any map. Alerts without coordinates are left out.
/api/alerts.atomAn Atom feed of the alerts that are open now, newest first, with each alert's position as GeoRSS. Subscribe to it in a feed reader.
/api/alerts/{id}One alert with its history, its permanent-record entry and any outside timestamp covering it.
/api/predict/location?lat=&lon=Current flood, wildfire and earthquake picture for any point on Earth. Slower, and limited more tightly (see below).
/api/scorecardThe track record: how many alerts, how many were withdrawn, and the evidence behind each rule.
/api/anchorsThe daily outside timestamps of the alert record, and proof files you can verify yourself.

Filters for the alert endpoints

ParameterMeaning
near=lat,lonOnly alerts within radius_km of this point.
radius_kmDistance for near. Default 300.
hazardflood, wildfire, earthquake, severe_weather or debris_flow.
statusopen, claimed or resolved. Resolved includes alerts withdrawn as false.
sinceOnly alerts recorded at or after this time, in Unix seconds.
limitOnly the newest N alerts.

The Atom feed accepts hazard, near, radius_km and limit (default 50, at most 200).

Reading an alert

Limits

The weather data we depend on has a daily allowance, and our own alert scan needs most of it. So the API is limited to keep alerts flowing for everyone.

Applies toLimit per client (IP address)
All /api/ requests240 per minute
/api/predict/… and /api/nearby-help12 per minute and 100 per hour
/api/chain (the whole record)10 per minute

Terms

How accurate are the alerts? See the track record →