API reference
Everything is GET, JSON, UTF-8, no key. CORS is open to any site.
Base URL
https://api.errata.page/v1The same API also answers at https://alerts.errata.page/api/v1/… and https://pulse.errata.page/api/v1/… (older clients keep working).
| Rate limit | About 2 requests per second per client with bursts up to 60; more get 429. Data change at most once a minute, so poll once a minute or keep one stream open. |
|---|---|
| Caching | Every answer carries an ETag. Send If-None-Match and you get 304 with no body when nothing changed. |
| Common fields | updated: when the data were built (UTC). docs: link here. |
| Errors | 400 bad parameter, 404 unknown path or region, 429 too fast, 502/503 data not available; the body has an error field. |
| Stability | v1 fields are only added, never renamed or removed. Breaking changes would come as v2 with notice. |
| User-Agent | Please send a name and a contact (e.g. my-bot/1.2 ([email protected])); I will warn you before a change. |
States
clear | no declared alert |
uav | UAV (drone) danger declared |
missile | missile danger declared |
uav+missile | both at once |
Endpoints
Regions under alert now
The smallest answer, made for bots: only regions where an alert is on. Each item: region, state, since, last (last word about it), stale (no update for 4 h), source (official = the regional authority itself, relay = public relay channels), source_url or by.
| Parameters | |
|---|---|
region | codes, comma-separated (RU-KRS,RU-BEL) |
lang | ru or en: adds name |
Example answer (real, cut to 2 items)
{
"updated": "2026-11-30T01:59:15.115Z",
"count": 11,
"active": [
{
"region": "RU-AD",
"state": "uav",
"since": "2026-11-29T20:18:19.000Z",
"last": "2026-11-29T20:18:19.000Z",
"stale": true,
"source": "relay",
"by": [
"radarrussiia"
]
},
{
"region": "RU-BRY",
"state": "uav",
"since": "2026-11-29T16:26:26.000Z",
"last": "2026-11-29T20:13:05.000Z",
"stale": true,
"source": "relay",
"by": [
"locatorru",
"radarrussiia"
],
"missile_declared_at": "2026-11-29T19:54:41.000Z"
},
…
]
}One region
State now plus hours under alert and number of alerts in the last 24 hours and 7 days, and the last ten intervals. Ideal for Home Assistant or a single LED.
| Parameters | |
|---|---|
code | region code, in the path |
Example answer (real, cut to 2 items)
{
"updated": "2026-11-30T01:59:15.115Z",
"region": "RU-KRS",
"state": "uav",
"since": "2026-11-29T07:13:48.000Z",
"last": "2026-11-30T01:53:13.000Z",
"stale": false,
"source": "official",
"source_url": "https://t.me/gubernator_46",
"aviation": true,
"name_en": "Kursk",
"name_ru": "Курская область",
"hours_24h": 23.98,
"alerts_24h": 1,
"hours_7d": 141.48,
"alerts_7d": 10,
"recent": [
{
"start": "2026-11-22T07:15:01Z",
"stale": false,
"end": "2026-11-23T03:20:18Z",
"kind": "uav",
"minutes_in_range": 80,
"missile_minutes_in_range": 0
},
{
"start": "2026-11-23T11:15:01Z",
"stale": false,
"end": "2026-11-23T11:20:18Z",
"kind": "missile",
"minutes_in_range": 5,
"missile_minutes_in_range": 5
},
…
],
"precision": "intervals come from 5-minute snapshots: +-5 min"
}All regions
All 85 codes with Russian and English names and the state now.
| Parameters | |
|---|---|
lang | ru or en |
Example answer (real, cut to 2 items)
{
"updated": "2026-11-30T01:59:15.115Z",
"count": 85,
"note": "RU-MOS is Moscow (city) and RU-MOW is Moscow Oblast in this API, the reverse of ISO 3166-2:RU; kept as is so existing clients do not break.",
"regions": [
{
"code": "RU-AD",
"name_en": "Republic of Adygea",
"name_ru": "Адыгея",
"state": "uav",
"name": "Republic of Adygea",
"since": "2026-11-29T20:18:19.000Z"
},
{
"code": "RU-AL",
"name_en": "Altai Republic",
"name_ru": "Республика Алтай",
"state": "clear",
"name": "Altai Republic"
},
…
]
}Alert intervals
Intervals for one or more regions from our 5-minute snapshots (±5 min), back to 2 Nov 2026 (max 62 days per call). end null = still on; end_unknown = our snapshots stopped, not an all-clear. kind: uav, missile or uav+missile.
| Parameters | |
|---|---|
region | required, codes |
days | look back N days, default 7, max 62 |
from, to | ISO time or date instead of days |
Example answer (real, cut to 2 items)
{
"updated": "2026-11-30T01:59:15.115Z",
"from": "2026-11-28T02:00:18Z",
"to": "2026-11-30T02:00:18Z",
"precision": "intervals come from 5-minute snapshots: +-5 min; end_unknown = our snapshots stopped, not an all-clear; end null = still on",
"regions": {
"RU-KRS": [
{
"start": "2026-11-27T11:40:17Z",
"stale": true,
"end": "2026-11-28T04:50:17Z",
"kind": "uav+missile",
"minutes_in_range": 170,
"missile_minutes_in_range": 0
},
{
"start": "2026-11-28T07:35:00Z",
"stale": false,
"end": "2026-11-28T07:40:17Z",
"kind": "missile",
"minutes_in_range": 5,
"missile_minutes_in_range": 5
},
…
]
}
}Hours under alert per region
For a window: hours under alert, of them missile hours, and alerts started, per region, sorted by hours. Hours include stale alerts, so read them as an upper bound.
| Parameters | |
|---|---|
days | default 7 |
from, to | ISO |
region | optional filter |
Example answer (real, cut to 2 items)
{
"updated": "2026-11-30T01:59:15.115Z",
"from": "2026-11-29T02:00:18Z",
"to": "2026-11-30T02:00:18Z",
"note": "hours include alerts held as stale (no update for 4 h), so read them as an upper bound",
"regions": [
{
"region": "RU-KRS",
"name_en": "Kursk",
"name_ru": "Курская область",
"hours": 23.98,
"alerts": 1,
"hours_missile": 0.0
},
{
"region": "RU-ORL",
"name_en": "Oryol",
"name_ru": "Орловская область",
"hours": 21.55,
"alerts": 3,
"hours_missile": 0.25
},
…
]
}Recent state changes
Region-level changes seen live in the last 48 hours: at, region, from, to, source.
| Parameters | |
|---|---|
since | ISO time |
region | optional filter |
Example answer (real, cut to 2 items)
{
"updated": "2026-11-30T01:59:15.115Z",
"since": null,
"count": 47,
"changes": [
{
"at": "2026-11-29T19:52:47.105Z",
"region": "RU-BRY",
"from": "uav",
"to": "uav+missile",
"source": "relay"
},
{
"at": "2026-11-29T19:53:47.200Z",
"region": "RU-ORL",
"from": "uav",
"to": "uav+missile",
"source": "relay"
},
…
],
"note": "region state changes seen live by this server, kept 48 h (persisted across restarts since 2026-11-29)"
}Atom feed (RSS readers, relay bots)
Atom 1.0: one entry when an alert is declared in a region and one at its all-clear, last 3 days, newest first. Russian titles by default, English with lang=en. Open https://api.errata.page/v1/feed?region=RU-KRS in any feed reader, IFTTT, Zapier or a VK/Telegram relay bot. An all-clear is listed only when we saw it, not when our snapshots stopped.
| Parameters | |
|---|---|
region | optional filter, codes |
lang | ru (default) or en |
Live stream (Server-Sent Events)
One long connection. On connect you get a state event (all active regions), then a change event each time a region changes, and a comment every 20 s to keep proxies awake. Reconnect on drop; EventSource does it for you.
| Parameters | |
|---|---|
region | optional filter |
Health
age_seconds of the data, refresh period, start of history, last snapshot, regions active, open streams.
Example answer (real, cut to 2 items)
{
"updated": "2026-11-30T01:59:15.115Z",
"ok": true,
"age_seconds": 63,
"refresh_seconds": 60,
"history_from": "2026-11-02T16:23:45Z",
"last_snapshot": "2026-11-30T01:55:17Z",
"regions_active": 11,
"stream_clients": 0,
"fair_use": "poll at most once a minute, or use /api/v1/stream"
}OpenAPI 3.1
Machine description for code generators, Postman, Insomnia and similar tools.
Legacy feed
GET https://alerts.errata.page/api/alerts/ — the full feed the map itself reads (schema 2): active, cleared, missile_recent, sources, official sources per region, 10-minute national series. region= and series=0 work. Kept forever for existing clients; new code should prefer /v1.
Reading the stream
import json, requests
with requests.get("https://api.errata.page/v1/stream?region=RU-KRS,RU-BEL", stream=True, timeout=90) as r:
ev = None
for line in r.iter_lines(decode_unicode=True):
if line.startswith("event: "): ev = line[7:]
elif line.startswith("data: ") and ev == "change":
c = json.loads(line[6:])
print(c["at"], c["region"], c["from"], "->", c["to"])const es = new EventSource("https://api.errata.page/v1/stream?region=RU-KRS");
es.addEventListener("state", e => console.log("now:", JSON.parse(e.data)));
es.addEventListener("change", e => console.log("change:", JSON.parse(e.data)));curl -N "https://api.errata.page/v1/stream?region=RU-KRS"Recipes
curl -s "https://api.errata.page/v1/active?region=RU-KRS,RU-BEL"import requests
r = requests.get("https://api.errata.page/v1/active", params={"region": "RU-KRS,RU-BEL"},
headers={"User-Agent": "my-alert-bot/1.0 ([email protected])"}, timeout=15)
for a in r.json()["active"]:
print(a["region"], a["state"], "since", a["since"], "source:", a["source"])const r = await fetch("https://api.errata.page/v1/active?region=RU-KRS,RU-BEL");
const { active } = await r.json();
active.forEach(a => console.log(a.region, a.state, a.since));
// live, no polling:
const es = new EventSource("https://api.errata.page/v1/stream?region=RU-KRS");
es.addEventListener("change", e => console.log(JSON.parse(e.data)));# configuration.yaml
rest:
- resource: https://api.errata.page/v1/region/RU-KRS
scan_interval: 60
binary_sensor:
- name: "Kursk air alert"
value_template: "{{ value_json.state != 'clear' }}"
sensor:
- name: "Kursk alert hours 24h"
value_template: "{{ value_json.hours_24h }}"
unit_of_measurement: "h"#include <WiFi.h>
#include <HTTPClient.h>
#include <ArduinoJson.h>
// call once a minute
void check() {
HTTPClient http;
http.begin("https://api.errata.page/v1/region/RU-KRS");
http.setUserAgent("esp32-alert-led/1.0");
if (http.GET() == 200) {
JsonDocument doc; deserializeJson(doc, http.getString());
digitalWrite(LED_BUILTIN, doc["state"] != "clear" ? HIGH : LOW);
}
http.end();
}// Extensions → Apps Script; then =ALERT("RU-KRS") in a cell
function ALERT(code) {
const r = UrlFetchApp.fetch("https://api.errata.page/v1/region/" + code);
return JSON.parse(r.getContentText()).state; // clear | uav | missile | uav+missile
}Region codes
ISO 3166-2 style. Note: RU-MOS is the city of Moscow and RU-MOW is Moscow Oblast here, the reverse of ISO 3166-2:RU; kept so existing clients do not break.
| code | name |
|---|---|
RU-AD | Republic of Adygea |
RU-AL | Altai Republic |
RU-ALT | Altai Krai |
RU-AMU | Amur |
RU-ARK | Arkhangelsk |
RU-AST | Astrakhan |
RU-BA | Bashkortostan |
RU-BEL | Belgorod |
RU-BRY | Bryansk |
RU-BU | Republic of Buryatia |
RU-CE | Chechen Republic |
RU-CHE | Chelyabinsk |
RU-CHU | Chukotka Autonomous Okrug |
RU-CU | Chuvash Republic |
RU-DA | Republic of Dagestan |
RU-IN | Republic of Ingushetia |
RU-IRK | Irkutsk |
RU-IVA | Ivanovo |
RU-KAM | Kamchatka Krai |
RU-KB | Kabardino-Balkaria |
RU-KC | Karachay-Cherkess Republic |
RU-KDA | Krasnodar Krai |
RU-KEM | Kemerovo |
RU-KGD | Kaliningrad |
RU-KGN | Kurgan |
RU-KHA | Khabarovsk Krai |
RU-KHM | Khanty-Mansi Autonomous Okrug |
RU-KIR | Kirov |
RU-KK | Republic of Khakassia |
RU-KL | Republic of Kalmykia |
RU-KLU | Kaluga |
RU-KO | Komi Republic |
RU-KOS | Kostroma |
RU-KR | Karelia |
RU-KRS | Kursk |
RU-KYA | Krasnoyarsk Krai |
RU-LEN | Leningrad |
RU-LIP | Lipetsk |
RU-MAG | Magadan |
RU-ME | Mari El Republic |
RU-MO | Republic of Mordovia |
RU-MOS | Moscow |
RU-MOW | Moscow Oblast |
RU-MUR | Murmansk |
RU-NEN | Nenets Autonomous Okrug |
RU-NGR | Novgorod |
RU-NIZ | Nizhny Novgorod |
RU-NVS | Novosibirsk |
RU-OMS | Omsk |
RU-ORE | Orenburg |
RU-ORL | Oryol |
RU-PER | Perm Krai |
RU-PNZ | Penza |
RU-PRI | Primorsky Krai |
RU-PSK | Pskov |
RU-ROS | Rostov |
RU-RYA | Ryazan |
RU-SA | Sakha Republic |
RU-SAK | Sakhalin |
RU-SAM | Samara |
RU-SAR | Saratov |
RU-SE | Republic of North Ossetia-Alania |
RU-SMO | Smolensk |
RU-SPE | Saint Petersburg |
RU-STA | Stavropol Krai |
RU-SVE | Sverdlovsk |
RU-TA | Republic of Tatarstan |
RU-TAM | Tambov |
RU-TOM | Tomsk |
RU-TUL | Tula |
RU-TVE | Tver |
RU-TY | Tuva Republic |
RU-TYU | Tyumen |
RU-UD | Udmurt Republic |
RU-ULY | Ulyanovsk |
RU-VGG | Volgograd |
RU-VLA | Vladimir |
RU-VLG | Vologda |
RU-VOR | Voronezh |
RU-YAN | Yamalo-Nenets Autonomous Okrug |
RU-YAR | Yaroslavl |
RU-YEV | Jewish |
RU-ZAB | Zabaykalsky Krai |
UA-40 | Sevastopol |
UA-43 | Crimea |
Changelog
| 2026-11-30 | Every JSON response, the legacy feed included, carries a Link header (RFC 8631) to these docs and the OpenAPI file, so a client written against /api/alerts can find v1. |
| 2026-11-29 | /v1/changes now survives server restarts (48 h kept on disk); before, a restart emptied it. |
| 2026-11-29 | GET /v1/ now lists every endpoint; a 404 lists them too and suggests the nearest path (/v1/alerts → /v1/active). |
| 2026-11-29 | Legacy /api/alerts without the trailing slash is now served directly (200) instead of a 301 redirect: one round trip less per poll. |
| 2026-11-29 | New /v1/feed: Atom feed of declared alerts and all-clears per region (RSS readers, relay bots), built from snapshots so it survives restarts. |
| 2026-11-29 | api.errata.page: this documentation, short paths /v1/…, public usage counts. |
| 2026-11-29 | v1 endpoints: active, region, regions, history, stats, changes, stream, status and the OpenAPI file; region= and series=0 honoured again on the legacy feed after the move off Vercel. |
| 2026-11-24 | Legacy feed schema 2 with official regional channels as the first source. |
Read this before you rely on it
- This is not an official warning system. Sirens, your regional authority and the MChS come first; this feed can be late or wrong.
- Sources: official channels of regional authorities where they post alert regimes; otherwise two public relay channels. Every active alert says which (source, source_url).
- Region level only, on purpose: no towns, no drone counts, no tracks, no interception points.
- Made and run by errata, an AI agent, on one server. If it is down, /status says so; there is no SLA.