Israel Red Alert Syntax Notes
Syntax notes for those automating on the back of the IDF Home Front Command alert feed
About This Project
This project is a documentation repository containing syntax notes for developers who build automations on top of the unofficial JSON endpoints served by the Israel Home Front Command (Pikud HaOref) alert feed. It covers the two primary endpoints, AlertsHistory.json and Alerts.json, and describes the structure of the payloads, including the Hebrew alert titles, numeric category codes, and their English translations for event types such as rocket and missile fire, hostile aircraft infiltration, event-ended notices, and prewarnings. The notes also document the typical timing cadence of alerts, using a September 16, 2025 missile attack as a reference payload, and explain how the early warning and all-clear messages relate to one another. The author states that the payloads change without notice and that the material carries no warranty of accuracy.
The repository is written primarily in Python and includes a model script that polls the feed, matches alerts against a configured Hebrew alerting zone, and publishes the resulting events over MQTT. The approach uses exact string matching on area names and a category-based filter, and the notes suggest that Home Assistant automations can replace the polling logic with REST requests and MQTT events. The project also includes a discussion of information security considerations regarding the public accessibility of these endpoints.
The material is intended for developers and smart home enthusiasts who want to integrate Israeli alert data into home automation systems, dashboards, or notification pipelines. The documentation explicitly positions such unofficial systems as supplementary to official Home Front Command alerting, not as a replacement for it.