Skip to Content
API ReferencePrayer Times

Prayer Times

GET /api/v1/prayer-times calculates prayer and solar-event times for one local calendar date. The requested timezone determines both the local date and returned HH:MM values.

GET /api/v1/prayer-times

Query parameters

ParameterRequiredRulesDefault
latitudeYesDecimal number from -90 to 90
longitudeYesDecimal number from -180 to 180
timezoneYesValid IANA name, such as Asia/Dubai
dateNoGregorian YYYY-MM-DDToday in the requested timezone
calculation_methodYesA supported calculation method
madhabNoshafi or hanafishafi
high_latitude_ruleNoSee belowmiddle_of_the_night
fajr_adjustmentNoWhole minutes from -1440 to 14400
dhuhr_adjustmentNoWhole minutes from -1440 to 14400
asr_adjustmentNoWhole minutes from -1440 to 14400
maghrib_adjustmentNoWhole minutes from -1440 to 14400
isha_adjustmentNoWhole minutes from -1440 to 14400

Supported calculation_method values are muslim_world_league, egyptian, karachi, umm_al_qura, dubai, iacad_dubai, moon_sighting_committee, north_america, kuwait, qatar, singapore, and uoif.

iacad_dubai is an opt-in Dubai profile validated against available official IACAD reference data. It differs from dubai only in its internal Asr method adjustment; it does not use or change the client-facing asr_adjustment parameter.

Supported high_latitude_rule values are middle_of_the_night, seventh_of_the_night, and twilight_angle.

Example

curl --get https://api.aakashsharma.com.np/api/v1/prayer-times \ --data-urlencode latitude=25.2048 \ --data-urlencode longitude=55.2708 \ --data-urlencode timezone=Asia/Dubai \ --data-urlencode date=2026-09-18 \ --data-urlencode calculation_method=iacad_dubai \ --data-urlencode fajr_adjustment=2

Successful response

200 OK returns the configuration actually used, the unmodified astronomical values, the final Azan values, and the offsets applied:

{ "date": "2015-07-12", "timezone": "America/New_York", "coordinates": { "latitude": 35.775, "longitude": -78.6336 }, "calculation_method": "north_america", "madhab": "hanafi", "high_latitude_rule": "middle_of_the_night", "calculated_times": { "fajr": "04:42", "sunrise": "06:08", "dhuhr": "13:21", "asr": "18:22", "sunset": "20:32", "maghrib": "20:32", "isha": "21:57" }, "azan_times": { "fajr": "04:42", "dhuhr": "13:21", "asr": "18:22", "maghrib": "20:32", "isha": "21:57" }, "adjustments_minutes": { "fajr": 0, "dhuhr": 0, "asr": 0, "maghrib": 0, "isha": 0 } }

calculated_times always has Fajr, Sunrise, Dhuhr, Asr, Sunset, Maghrib, and Isha. azan_times intentionally excludes Sunrise and Sunset because they are not Azan prayers. Adjustments never mutate calculated_times.

Errors

An unknown but syntactically valid IANA timezone returns 400 with INVALID_TIMEZONE. Invalid coordinates, dates, enums, or adjustment bounds return the standard 422 validation envelope. See API Reference for the error schemas.

Last updated on