{
  "service": "lw-ildn",
  "description": "Watches the Indian Lightning Detection Network (ildn.in) for lightning strokes over Sri Lanka and its seas, archives them, and serves them over a keyed API.",
  "version": 1,
  "box": {
    "lat0": 5,
    "lat1": 10.6,
    "lon0": 78.8,
    "lon1": 82.6
  },
  "endpoints": {
    "GET /health": "crawler health and ILDN receiver status (open when PUBLIC_HEALTH=true)",
    "GET /v1/strokes": "strokes in a range: ?from=&to=&bbox=w,s,e,n&limit=&order=asc|desc [read]",
    "GET /v1/strokes/latest": "the newest strokes: ?limit= [read]",
    "GET /v1/stats": "counts per hour or per day: ?from=&to=&bbox=&bin=hour|day [read]",
    "GET /v1/receivers": "ILDN's receivers as last read [read]",
    "GET /v1/export": "NDJSON or CSV download of a range: ?from=&to=&bbox=&format=ndjson|csv [export]",
    "POST /v1/strokes": "ingest strokes: {\"strokes\":[{\"t\":...,\"lat\":...,\"lon\":...,\"id\":\"...\"}]} [ingest]"
  },
  "times": "ISO 8601 UTC, epoch ms, or a relative window: -3h, -90m, -7d. Days in /v1/stats are Colombo days (UTC+5:30).",
  "keys": "Send Authorization: Bearer <key>. Ask the owner for one; keys carry scopes read, ingest, export.",
  "attribution": {
    "source": "Indian Lightning Detection Network (ILDN)",
    "institution": "Centre for Lightning and Thunderstorm Studies, Tripura University",
    "attribution": "Lightning strokes: Indian Lightning Detection Network (ILDN), Centre for Lightning and Thunderstorm Studies, Tripura University (ildn.in). Copyright ILDN: non-commercial use, research and education, with attribution; data not modified. Any other use needs ILDN's permission.",
    "terms": "https://ildn.in/legal.php",
    "contact": "https://ildn.in/data.php",
    "map": "https://ildn.in/#lat=7.8&lon=80.7&z=7"
  }
}