/v1/prayer-timeskey optionalPrayer times
Computes the prayer times for one location, one date and one calculation method. Times come back as local wall-clock strings (HH:mm) already shifted by the utcOffset you pass — no timezone database needed on your side. The maths is the same athan-core code that runs inside the Athar apps, so a client and the server always agree. At high latitudes in summer, when the sun never sinks far enough for Fajr or Isha, both are placed by the middle-of-the-night rule. Where an event does not happen at all — polar day or polar night — its field is null, never a made-up time.
Parameters
latnumberrequiredLatitude in decimal degrees, −90 to 90.
lonnumberrequiredLongitude in decimal degrees, −180 to 180.
datedaterequiredGregorian date, ISO 8601 (YYYY-MM-DD).
methodenumdefault MWLTwilight angle set used for Fajr and Isha.
MWL · ISNA · EGYPT · MAKKAH · KARACHI · TEHRAN · JAFARI · FRANCE · RUSSIA · MALAYSIA · SINGAPORE
utcOffsetnumberdefault 0Hours offset applied to render local times, −12 to 14. Fractional offsets (5.5) are allowed.
Response · 200
{
"date": "2026-09-14",
"method": "MWL",
"latitude": 52.52,
"longitude": 13.405,
"utcOffsetHours": 2.0,
"fajr": "04:38",
"sunrise": "06:39",
"dhuhr": "13:02",
"asr": "16:30",
"sunset": "19:24",
"maghrib": "19:25",
"isha": "21:17",
"midnight": "01:02",
"duhaStart": "06:54",
"duhaEnd": "12:52",
"duhaBest": "09:51"
}- date
- string The requested date, echoed back.
- method
- string Calculation method actually used.
- latitude / longitude
- number Coordinates echoed back.
- utcOffsetHours
- number Offset applied to the wall-clock strings.
- dhuhr
- string HH:mm local time. Always present.
- fajr / asr / maghrib / isha
- string | null HH:mm local time; null where the prayer does not occur (polar day or night).
- sunrise / sunset
- string | null Solar events bounding the day; null during polar day or night.
- midnight
- string | null Islamic midnight. Standard methods: solar midnight, always present. TEHRAN / JAFARI: midpoint of sunset and Fajr, null where either is missing.
- duhaStart / duhaBest / duhaEnd
- string | null Forenoon prayer window and its recommended moment; all null when there is no sunrise.
Example request
curl "https://api.openathar.org/v1/prayer-times?lat=52.52&lon=13.405&date=2026-09-14&utcOffset=2"