Open data API
Read-only JSON, no key needed. Data is community-reported and not official; counts are distinct anonymous reporters. Please cache responses (most are CDN-cached for 15–300 s) and credit “MP Power Status”.
GET /api/overview
Per-district signal (OUTAGE, VOLTAGE, MIXED, OK, SOME_OUT, SOME_VOLT, SOME_ON) for the last 3 hours, the same per PIN-code area (worst first; from GPS and PIN-code reports), and the 8 newest reports. ?district=<name> limits the feed to one district.
{"districts":{"Bhopal":{"signal":"OUTAGE","reportCount":6}},"areas":[{"pin":"462001","name":"Bhopal","district":"Bhopal","signal":"OUTAGE","reportCount":4}],"recent":[{"status":"POWER_OUT","district":"Bhopal","at":"2026-09-30T12:00:00.000Z"}]}GET /api/status?cell=<lat:lng>
Inferred state for a ~3 km neighbourhood. A cell is floor(lat/0.01):floor(lng/0.01), e.g. 2326:7741.
{"cell":"2326:7741","state":"NO_OUTAGE","confidence":"MEDIUM","counts":{"POWER_ON":4,"POWER_OUT":0,"VOLTAGE_PROBLEM":1},"reportCount":5,"lastReportAt":"…"}GET /api/trends?range=today|7d|30d|90d
Power-out reporters per IST hour (today) or IST day, plus per-district health for the same range: areas (~1 km cells) with reports and areas where outage reports outnumber power-on reports.
{"range":"7d","hourly":false,"buckets":[{"at":"…","n":3}],"total":5,"incidentDays":1,"districts":[{"district":"Indore","areas":3,"outAreas":1,"counts":{"POWER_ON":2,"POWER_OUT":3,"VOLTAGE_PROBLEM":0},"last":"…"}]}States: INSUFFICIENT, NO_OUTAGE, LIKELY_OUTAGE, VOLTAGE, MIXED. Times are ISO 8601 UTC.