Third-party apps

Prayer times

A masjid's prayer and jumu'ah times in its own timezone: wall-clock times, never converted to UTC.

Right on the key: Prayer times: read.

Today's prayer times

Developer key

GET/v1/masjids/{id}/prayer-times

The prayer times of the current date in the masjid's timezone: wall-clock times, never converted to UTC.

Parameters

  • idstring · pathrequired

    The masjid id, msj_…, as search, nearby or a previous read gave it.

Returns

Today's prayer times.

  • objectprayer_times

    Always prayer_times.

  • masjidstring

    The masjid id.

  • datestring · YYYY-MM-DD

    The day, YYYY-MM-DD, in the masjid's timezone.

  • hijriobjectoptional

    The day in the Hijri calendar, as the masjid dates it (its own Hijri setting, else its country's). Absent when Masjidbox has no Hijri date for the day.

    Show child attributes (3)
    • yearinteger

      The Hijri year.

    • monthinteger

      The Hijri month, 1 (Muharram) to 12.

    • dayinteger

      The day of the Hijri month, 1 to 30.

  • sunrisestring · HH:mm

    Sunrise, HH:MM: not a prayer, the end of the fajr window.

  • prayersobject

    The five prayers.

    Show child attributes (15)
    • fajrobject

      The fajr prayer.

    • fajr.athanstring · HH:mm

      The fajr athan, HH:MM in the masjid's timezone.

    • fajr.iqamahstring · HH:mm | null

      The fajr iqamah; null when the masjid supplies none, always for calculated times.

    • dhuhrobject

      The dhuhr prayer.

    • dhuhr.athanstring · HH:mm

      The dhuhr athan, HH:MM in the masjid's timezone.

    • dhuhr.iqamahstring · HH:mm | null

      The dhuhr iqamah; null when the masjid supplies none, always for calculated times.

    • asrobject

      The asr prayer.

    • asr.athanstring · HH:mm

      The asr athan, HH:MM in the masjid's timezone.

    • asr.iqamahstring · HH:mm | null

      The asr iqamah; null when the masjid supplies none, always for calculated times.

    • maghribobject

      The maghrib prayer.

    • maghrib.athanstring · HH:mm

      The maghrib athan, HH:MM in the masjid's timezone.

    • maghrib.iqamahstring · HH:mm | null

      The maghrib iqamah; null when the masjid supplies none, always for calculated times.

    • ishaobject

      The isha prayer.

    • isha.athanstring · HH:mm

      The isha athan, HH:MM in the masjid's timezone.

    • isha.iqamahstring · HH:mm | null

      The isha iqamah; null when the masjid supplies none, always for calculated times.

  • jumuahstring[] | null

    The jumu'ah times on a Friday the masjid supplies them; null on other days.

  • timezonestring

    The masjid's IANA timezone.

  • sourceobject

    Where the times come from.

    Show child attributes (2)
    • typemasjid | calculated

      Supplied or managed by the masjid, or calculated by Masjidbox.

    • statusfresh | stale

      Masjidbox's assessment of the underlying data; a calculated timetable is always fresh.

  • linksobject

    The masjid's links for these times.

    Show child attributes (1)
    • reportstring

      Where a user reports an error in this masjid's times. Always present: the page takes the report, or invites the masjid to claim its page when nobody manages it yet. Link a "Report an error" next to the attribution. To preselect the form, append any of ?prayer=&kind=&day= to the link: prayer is one of fajr, dhuhr, asr, maghrib, isha, jumuah or other; kind is athan or iqamah; day is the day the time is wrong, YYYY-MM-DD, from a week before the masjid's today to 30 days after.

GET /v1/masjids/{id}/prayer-times
curl "https://hub.masjidbox.com/v1/masjids/msj_abc123defg/prayer-times" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · PrayerTimes
{
  "date": "2026-10-09",
  "hijri": {
    "day": 17,
    "month": 4,
    "year": 1448
  },
  "jumuah": [
    "13:00",
    "14:00"
  ],
  "prayers": {
    "asr": {
      "athan": "16:02",
      "iqamah": "16:30"
    },
    "dhuhr": {
      "athan": "12:52",
      "iqamah": "13:30"
    },
    "fajr": {
      "athan": "05:31",
      "iqamah": "06:00"
    },
    "isha": {
      "athan": "20:01",
      "iqamah": "20:30"
    },
    "maghrib": {
      "athan": "18:32",
      "iqamah": "18:37"
    }
  },
  "sunrise": "07:12",
  "masjid": "msj_abc123defg",
  "object": "prayer_times",
  "links": {
    "report": "https://hub.masjidbox.com/report/msj_abc123defg"
  },
  "source": {
    "status": "fresh",
    "type": "masjid"
  },
  "timezone": "Europe/London"
}

This week of prayer times

Developer key

GET/v1/masjids/{id}/prayer-times/weekly

Today to today + 6 days, rolling, in the masjid's timezone. No date parameter.

Parameters

  • idstring · pathrequired

    The masjid id, msj_…, as search, nearby or a previous read gave it.

Returns

Seven days of prayer times.

  • objectprayer_times_schedule

    Always prayer_times_schedule.

  • masjidstring

    The masjid id.

  • timezonestring

    The masjid's IANA timezone.

  • periodobject

    The days covered.

    Show child attributes (2)
    • startstring · YYYY-MM-DD

      The first day.

    • endstring · YYYY-MM-DD

      The last day, included.

  • dataobject[]

    The days, in order.

    Show child attributes (23)
    • datestring · YYYY-MM-DD

      The day, YYYY-MM-DD, in the masjid's timezone.

    • hijriobjectoptional

      The day in the Hijri calendar, as the masjid dates it (its own Hijri setting, else its country's). Absent when Masjidbox has no Hijri date for the day.

    • hijri.yearinteger

      The Hijri year.

    • hijri.monthinteger

      The Hijri month, 1 (Muharram) to 12.

    • hijri.dayinteger

      The day of the Hijri month, 1 to 30.

    • sunrisestring · HH:mm

      Sunrise, HH:MM: not a prayer, the end of the fajr window.

    • prayersobject

      The five prayers.

    • prayers.fajrobject

      The fajr prayer.

    • prayers.fajr.athanstring · HH:mm

      The fajr athan, HH:MM in the masjid's timezone.

    • prayers.fajr.iqamahstring · HH:mm | null

      The fajr iqamah; null when the masjid supplies none, always for calculated times.

    • prayers.dhuhrobject

      The dhuhr prayer.

    • prayers.dhuhr.athanstring · HH:mm

      The dhuhr athan, HH:MM in the masjid's timezone.

    • prayers.dhuhr.iqamahstring · HH:mm | null

      The dhuhr iqamah; null when the masjid supplies none, always for calculated times.

    • prayers.asrobject

      The asr prayer.

    • prayers.asr.athanstring · HH:mm

      The asr athan, HH:MM in the masjid's timezone.

    • prayers.asr.iqamahstring · HH:mm | null

      The asr iqamah; null when the masjid supplies none, always for calculated times.

    • prayers.maghribobject

      The maghrib prayer.

    • prayers.maghrib.athanstring · HH:mm

      The maghrib athan, HH:MM in the masjid's timezone.

    • prayers.maghrib.iqamahstring · HH:mm | null

      The maghrib iqamah; null when the masjid supplies none, always for calculated times.

    • prayers.ishaobject

      The isha prayer.

    • prayers.isha.athanstring · HH:mm

      The isha athan, HH:MM in the masjid's timezone.

    • prayers.isha.iqamahstring · HH:mm | null

      The isha iqamah; null when the masjid supplies none, always for calculated times.

    • jumuahstring[] | null

      The jumu'ah times on a Friday the masjid supplies them; null on other days.

  • sourceobject

    Where the times come from.

    Show child attributes (2)
    • typemasjid | calculated

      Supplied or managed by the masjid, or calculated by Masjidbox.

    • statusfresh | stale

      Masjidbox's assessment of the underlying data; a calculated timetable is always fresh.

  • linksobject

    The masjid's links for these times.

    Show child attributes (1)
    • reportstring

      Where a user reports an error in this masjid's times. Always present: the page takes the report, or invites the masjid to claim its page when nobody manages it yet. Link a "Report an error" next to the attribution. To preselect the form, append any of ?prayer=&kind=&day= to the link: prayer is one of fajr, dhuhr, asr, maghrib, isha, jumuah or other; kind is athan or iqamah; day is the day the time is wrong, YYYY-MM-DD, from a week before the masjid's today to 30 days after.

GET /v1/masjids/{id}/prayer-times/weekly
curl "https://hub.masjidbox.com/v1/masjids/msj_abc123defg/prayer-times/weekly" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · PrayerTimesSchedule
{
  "data": [
    {
      "date": "2026-10-09",
      "hijri": {
        "day": 17,
        "month": 4,
        "year": 1448
      },
      "jumuah": [
        "13:00",
        "14:00"
      ],
      "prayers": {
        "asr": {
          "athan": "16:02",
          "iqamah": "16:30"
        },
        "dhuhr": {
          "athan": "12:52",
          "iqamah": "13:30"
        },
        "fajr": {
          "athan": "05:31",
          "iqamah": "06:00"
        },
        "isha": {
          "athan": "20:01",
          "iqamah": "20:30"
        },
        "maghrib": {
          "athan": "18:32",
          "iqamah": "18:37"
        }
      },
      "sunrise": "07:12"
    }
  ],
  "masjid": "msj_abc123defg",
  "object": "prayer_times_schedule",
  "period": {
    "end": "2026-10-15",
    "start": "2026-10-09"
  },
  "links": {
    "report": "https://hub.masjidbox.com/report/msj_abc123defg"
  },
  "source": {
    "status": "fresh",
    "type": "masjid"
  },
  "timezone": "Europe/London"
}

A month of prayer times

Developer key

GET/v1/masjids/{id}/prayer-times/monthly

The current month, or the next one (on March 30, next is April). No arbitrary month, year or range.

Parameters

  • idstring · pathrequired

    The masjid id, msj_…, as search, nearby or a previous read gave it.

  • monthcurrent | next · query

    Which month: current (the default) or next.

Returns

The days of the month.

  • objectprayer_times_schedule

    Always prayer_times_schedule.

  • masjidstring

    The masjid id.

  • timezonestring

    The masjid's IANA timezone.

  • periodobject

    The days covered.

    Show child attributes (2)
    • startstring · YYYY-MM-DD

      The first day.

    • endstring · YYYY-MM-DD

      The last day, included.

  • dataobject[]

    The days, in order.

    Show child attributes (23)
    • datestring · YYYY-MM-DD

      The day, YYYY-MM-DD, in the masjid's timezone.

    • hijriobjectoptional

      The day in the Hijri calendar, as the masjid dates it (its own Hijri setting, else its country's). Absent when Masjidbox has no Hijri date for the day.

    • hijri.yearinteger

      The Hijri year.

    • hijri.monthinteger

      The Hijri month, 1 (Muharram) to 12.

    • hijri.dayinteger

      The day of the Hijri month, 1 to 30.

    • sunrisestring · HH:mm

      Sunrise, HH:MM: not a prayer, the end of the fajr window.

    • prayersobject

      The five prayers.

    • prayers.fajrobject

      The fajr prayer.

    • prayers.fajr.athanstring · HH:mm

      The fajr athan, HH:MM in the masjid's timezone.

    • prayers.fajr.iqamahstring · HH:mm | null

      The fajr iqamah; null when the masjid supplies none, always for calculated times.

    • prayers.dhuhrobject

      The dhuhr prayer.

    • prayers.dhuhr.athanstring · HH:mm

      The dhuhr athan, HH:MM in the masjid's timezone.

    • prayers.dhuhr.iqamahstring · HH:mm | null

      The dhuhr iqamah; null when the masjid supplies none, always for calculated times.

    • prayers.asrobject

      The asr prayer.

    • prayers.asr.athanstring · HH:mm

      The asr athan, HH:MM in the masjid's timezone.

    • prayers.asr.iqamahstring · HH:mm | null

      The asr iqamah; null when the masjid supplies none, always for calculated times.

    • prayers.maghribobject

      The maghrib prayer.

    • prayers.maghrib.athanstring · HH:mm

      The maghrib athan, HH:MM in the masjid's timezone.

    • prayers.maghrib.iqamahstring · HH:mm | null

      The maghrib iqamah; null when the masjid supplies none, always for calculated times.

    • prayers.ishaobject

      The isha prayer.

    • prayers.isha.athanstring · HH:mm

      The isha athan, HH:MM in the masjid's timezone.

    • prayers.isha.iqamahstring · HH:mm | null

      The isha iqamah; null when the masjid supplies none, always for calculated times.

    • jumuahstring[] | null

      The jumu'ah times on a Friday the masjid supplies them; null on other days.

  • sourceobject

    Where the times come from.

    Show child attributes (2)
    • typemasjid | calculated

      Supplied or managed by the masjid, or calculated by Masjidbox.

    • statusfresh | stale

      Masjidbox's assessment of the underlying data; a calculated timetable is always fresh.

  • linksobject

    The masjid's links for these times.

    Show child attributes (1)
    • reportstring

      Where a user reports an error in this masjid's times. Always present: the page takes the report, or invites the masjid to claim its page when nobody manages it yet. Link a "Report an error" next to the attribution. To preselect the form, append any of ?prayer=&kind=&day= to the link: prayer is one of fajr, dhuhr, asr, maghrib, isha, jumuah or other; kind is athan or iqamah; day is the day the time is wrong, YYYY-MM-DD, from a week before the masjid's today to 30 days after.

GET /v1/masjids/{id}/prayer-times/monthly
curl "https://hub.masjidbox.com/v1/masjids/msj_abc123defg/prayer-times/monthly" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · PrayerTimesSchedule
{
  "data": [
    {
      "date": "2026-10-09",
      "hijri": {
        "day": 17,
        "month": 4,
        "year": 1448
      },
      "jumuah": [
        "13:00",
        "14:00"
      ],
      "prayers": {
        "asr": {
          "athan": "16:02",
          "iqamah": "16:30"
        },
        "dhuhr": {
          "athan": "12:52",
          "iqamah": "13:30"
        },
        "fajr": {
          "athan": "05:31",
          "iqamah": "06:00"
        },
        "isha": {
          "athan": "20:01",
          "iqamah": "20:30"
        },
        "maghrib": {
          "athan": "18:32",
          "iqamah": "18:37"
        }
      },
      "sunrise": "07:12"
    }
  ],
  "masjid": "msj_abc123defg",
  "object": "prayer_times_schedule",
  "period": {
    "end": "2026-10-15",
    "start": "2026-10-09"
  },
  "links": {
    "report": "https://hub.masjidbox.com/report/msj_abc123defg"
  },
  "source": {
    "status": "fresh",
    "type": "masjid"
  },
  "timezone": "Europe/London"
}

The next jumu'ah services

Developer key

GET/v1/masjids/{id}/jumuah-times

The jumu'ah services of the next Friday in the masjid's timezone (today when today is Friday). times is null when the masjid supplies none.

Parameters

  • idstring · pathrequired

    The masjid id, msj_…, as search, nearby or a previous read gave it.

Returns

The next Friday's services.

  • objectjumuah_times

    Always jumuah_times.

  • masjidstring

    The masjid id.

  • datestring · YYYY-MM-DD

    The Friday, in the masjid's timezone.

  • timezonestring

    The masjid's IANA timezone.

  • timesobject[] | null

    The services, in order; null when the masjid supplies none.

    Show child attributes (1)
    • timestring · HH:mm

      A service, HH:MM.

  • sourceobject

    Where the times come from.

    Show child attributes (2)
    • typemasjid | calculated

      Supplied or managed by the masjid, or calculated by Masjidbox.

    • statusfresh | stale

      Masjidbox's assessment of the underlying data; a calculated timetable is always fresh.

  • linksobject

    The masjid's links for these times.

    Show child attributes (1)
    • reportstring

      Where a user reports an error in this masjid's times. Always present: the page takes the report, or invites the masjid to claim its page when nobody manages it yet. Link a "Report an error" next to the attribution. To preselect the form, append any of ?prayer=&kind=&day= to the link: prayer is one of fajr, dhuhr, asr, maghrib, isha, jumuah or other; kind is athan or iqamah; day is the day the time is wrong, YYYY-MM-DD, from a week before the masjid's today to 30 days after.

GET /v1/masjids/{id}/jumuah-times
curl "https://hub.masjidbox.com/v1/masjids/msj_abc123defg/jumuah-times" \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200 · JumuahTimes
{
  "date": "2026-10-09",
  "masjid": "msj_abc123defg",
  "object": "jumuah_times",
  "links": {
    "report": "https://hub.masjidbox.com/report/msj_abc123defg"
  },
  "source": {
    "status": "fresh",
    "type": "masjid"
  },
  "times": [
    {
      "time": "13:00"
    },
    {
      "time": "14:00"
    }
  ],
  "timezone": "Europe/London"
}