errata.api

API reference

Everything is GET, JSON, UTF-8, no key. CORS is open to any site.

Base URL

https://api.errata.page/v1

The same API also answers at https://alerts.errata.page/api/v1/… and https://pulse.errata.page/api/v1/… (older clients keep working).

Rate limitAbout 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.
CachingEvery answer carries an ETag. Send If-None-Match and you get 304 with no body when nothing changed.
Common fieldsupdated: when the data were built (UTC). docs: link here.
Errors400 bad parameter, 404 unknown path or region, 429 too fast, 502/503 data not available; the body has an error field.
Stabilityv1 fields are only added, never renamed or removed. Breaking changes would come as v2 with notice.
User-AgentPlease send a name and a contact (e.g. my-bot/1.2 ([email protected])); I will warn you before a change.

States

clearno declared alert
uavUAV (drone) danger declared
missilemissile danger declared
uav+missileboth at once

Endpoints

Regions under alert now

GET/v1/active

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
regioncodes, comma-separated (RU-KRS,RU-BEL)
langru 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

GET/v1/region/{code}

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
coderegion 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

GET/v1/regions

All 85 codes with Russian and English names and the state now.

Parameters
langru 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

GET/v1/history

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
regionrequired, codes
dayslook back N days, default 7, max 62
from, toISO 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

GET/v1/stats

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
daysdefault 7
from, toISO
regionoptional 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

GET/v1/changes

Region-level changes seen live in the last 48 hours: at, region, from, to, source.

Parameters
sinceISO time
regionoptional 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)

GET/v1/feed

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
regionoptional filter, codes
langru (default) or en

Live stream (Server-Sent Events)

GET/v1/stream

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
regionoptional filter

Health

GET/v1/status

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

GET/v1/openapi.json

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.

codename
RU-ADRepublic of Adygea
RU-ALAltai Republic
RU-ALTAltai Krai
RU-AMUAmur
RU-ARKArkhangelsk
RU-ASTAstrakhan
RU-BABashkortostan
RU-BELBelgorod
RU-BRYBryansk
RU-BURepublic of Buryatia
RU-CEChechen Republic
RU-CHEChelyabinsk
RU-CHUChukotka Autonomous Okrug
RU-CUChuvash Republic
RU-DARepublic of Dagestan
RU-INRepublic of Ingushetia
RU-IRKIrkutsk
RU-IVAIvanovo
RU-KAMKamchatka Krai
RU-KBKabardino-Balkaria
RU-KCKarachay-Cherkess Republic
RU-KDAKrasnodar Krai
RU-KEMKemerovo
RU-KGDKaliningrad
RU-KGNKurgan
RU-KHAKhabarovsk Krai
RU-KHMKhanty-Mansi Autonomous Okrug
RU-KIRKirov
RU-KKRepublic of Khakassia
RU-KLRepublic of Kalmykia
RU-KLUKaluga
RU-KOKomi Republic
RU-KOSKostroma
RU-KRKarelia
RU-KRSKursk
RU-KYAKrasnoyarsk Krai
RU-LENLeningrad
RU-LIPLipetsk
RU-MAGMagadan
RU-MEMari El Republic
RU-MORepublic of Mordovia
RU-MOSMoscow
RU-MOWMoscow Oblast
RU-MURMurmansk
RU-NENNenets Autonomous Okrug
RU-NGRNovgorod
RU-NIZNizhny Novgorod
RU-NVSNovosibirsk
RU-OMSOmsk
RU-OREOrenburg
RU-ORLOryol
RU-PERPerm Krai
RU-PNZPenza
RU-PRIPrimorsky Krai
RU-PSKPskov
RU-ROSRostov
RU-RYARyazan
RU-SASakha Republic
RU-SAKSakhalin
RU-SAMSamara
RU-SARSaratov
RU-SERepublic of North Ossetia-Alania
RU-SMOSmolensk
RU-SPESaint Petersburg
RU-STAStavropol Krai
RU-SVESverdlovsk
RU-TARepublic of Tatarstan
RU-TAMTambov
RU-TOMTomsk
RU-TULTula
RU-TVETver
RU-TYTuva Republic
RU-TYUTyumen
RU-UDUdmurt Republic
RU-ULYUlyanovsk
RU-VGGVolgograd
RU-VLAVladimir
RU-VLGVologda
RU-VORVoronezh
RU-YANYamalo-Nenets Autonomous Okrug
RU-YARYaroslavl
RU-YEVJewish
RU-ZABZabaykalsky Krai
UA-40Sevastopol
UA-43Crimea

Changelog

2026-11-30Every 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-29GET /v1/ now lists every endpoint; a 404 lists them too and suggests the nearest path (/v1/alerts → /v1/active).
2026-11-29Legacy /api/alerts without the trailing slash is now served directly (200) instead of a 301 redirect: one round trip less per poll.
2026-11-29New /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-29api.errata.page: this documentation, short paths /v1/…, public usage counts.
2026-11-29v1 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-24Legacy feed schema 2 with official regional channels as the first source.

Read this before you rely on it