Skip to main content

Prayer Times

Retrieve iqamah schedules set by masjids and calculated prayer times for any location. Requires the prayer-times:read scope.

Masjid iqamah schedule

Iqamah times are stored as versioned schedules by masjids on Ummat Pro. Each schedule has a validity window and optional Ramadan overrides.

query MasjidIqamah($masjidId: uuid!, $date: date!) {
  up_iqamah_schedules(
    where: {
      entity_id: { _eq: $masjidId }
      effective_from: { _lte: $date }
      _or: [
        { effective_until: { _is_null: true } }
        { effective_until: { _gte: $date } }
      ]
    }
    order_by: { effective_from: desc }
    limit: 1
  ) {
    id
    fajr
    dhuhr
    asr
    maghrib
    isha
    jumuah_1
    jumuah_2
    effective_from
    effective_until
    is_ramadan_override
    notes
  }
}

Calculated prayer times

For locations without a masjid, use the calc_prayer_times function. Powered by the PrayCalc engine. Uses the ISNA calculation method by default.

query CalcPrayerTimes($lat: float8!, $lng: float8!, $date: date!) {
  calc_prayer_times(
    args: {
      lat: $lat
      lng: $lng
      date: $date
      method: "ISNA"
    }
  ) {
    fajr
    sunrise
    dhuhr
    asr
    maghrib
    isha
    date
    timezone
  }
}

Calculation methods

Method ID Organization
ISNAIslamic Society of North America
MWLMuslim World League
EGYPTEgyptian General Authority of Survey
MAKKAHUmm Al-Qura University, Makkah
KARACHIUniversity of Islamic Sciences, Karachi
TEHRANInstitute of Geophysics, University of Tehran
JAFARIShia Ithna Ashari / Jafari

Batch by date range

query PrayerTimesRange($lat: float8!, $lng: float8!) {
  calc_prayer_times_range(
    args: {
      lat: $lat
      lng: $lng
      from_date: "2026-01-01"
      to_date: "2026-01-31"
      method: "ISNA"
    }
  ) {
    date
    fajr
    dhuhr
    asr
    maghrib
    isha
  }
}

Maximum range: 365 days per request.