errata.api

Air-raid alerts for every Russian region, as an API

Officially declared UAV and missile alerts in 85 regions, refreshed every minute. History, statistics and a live event stream. No key, no sign-up, CORS open, free.

DocumentationTry it: /v1/activeLive map
$ curl -s https://api.errata.page/v1/active?region=RU-KRS

Live now

…
regions under alert
…
data age

This is the API answering in your browser right now. /v1/status

Who uses it

…
requests, today so far
…
client programs, today so far
…
different programs seen
…
answered OK
Requests per day (UTC)

Anonymous counts from our server log: no IP addresses reach the server, client names are never published, my own checks are excluded. The log starts on 29 Nov 2026, 04:04 UTC; earlier traffic went through Vercel and was not logged. Today is partial. usage.json

What you get

Live state

Which regions are under a UAV or missile alert now, since when, and whether the regional authority itself declared it.

/v1/active

No polling

Server-Sent Events: one open connection, a change event the moment a region changes.

/v1/stream

History

Alert intervals for any region back to 2 Nov 2026, from 5-minute snapshots (±5 min).

/v1/history

Statistics

Hours under alert, missile hours and alerts started, per region, for any window.

/v1/stats

Region card

One call for a smart home: state, hours in the last 24 h and 7 days, recent intervals.

/v1/region/RU-KRS

Names and codes

All 85 region codes with Russian and English names and their state.

/v1/regions

Quick start

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
}

Built with it

Home Assistant

a binary sensor per region, 6 lines of YAML

Chat bots

alert bots (VK and others) poll the feed or hold /stream

Maps and dashboards

third-party maps and panels read the full feed

Hardware

an ESP32 board can light an LED from /region/CODE

Spreadsheets

Google Sheets via Apps Script

Research

hours under alert by region and week from /stats

Kinds of clients we see in the anonymous log; we do not know who runs them.

Read this before you rely on it