# IDN Prayer Times

The five daily prayer times for any coordinates on earth, computed from solar position, with the Kemenag method as default.

- Method: `GET`
- Path: `/v1/prayer-times/idn`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `lat` | number | required | Latitude, -90 to 90. |
| `lon` | number | required | Longitude, -180 to 180. |
| `date` | string | optional | `YYYY-MM-DD`. |
| `method` | string | optional | `kemenag`, `mwl`, `isna`, `egypt`, `karachi`, `umm-al-qura`, `dubai`, `singapore`. They differ in the sun's depression at Fajr and Isha. |
| `school` | string | optional | `shafi` or `hanafi`. Hanafi Asr falls roughly an hour later. |
| `timezone` | number | optional | UTC offset in hours. |
| `elevation` | number | optional | Metres above sea level. |

**Example request**

```bash
curl https://api.diraz.ae/v1/prayer-times/idn \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "date": "2026-08-19",
    "method": "Kementerian Agama Republik Indonesia",
    "school": "shafi",
    "coordinates": { "latitude": -6.2088, "longitude": 106.8456, "elevation": 0 },
    "timezone_offset": 7,
    "times": {
      "imsak": "04:30",
      "fajr": "04:40",
      "sunrise": "05:59",
      "dhuhr": "11:56",
      "asr": "15:17",
      "sunset": "17:54",
      "maghrib": "17:54",
      "isha": "19:05",
      "midnight": "23:56"
    },
    "warnings": []
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ"
  }
}
```