Masjid data API · free

Prayer times and masjid data, straight from the masjids.

Every app that shows prayer times needs the right time for the right masjid. A copied time stays frozen: the day the masjid moves jumu'ah, worshippers arrive late. Here the masjid publishes once, and every app reads it, for free.

A call and its answer
curl
curl https://hub.masjidbox.com/v1/masjids/msj_ap20t2m2tk/prayer-times \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
200
{
  "object": "prayer_times",
  "date": "2026-10-15",
  "timezone": "Europe/Paris",
  "prayers": {
    "fajr":  { "athan": "06:41", "iqamah": "07:00" },
    "dhuhr": { "athan": "13:47", "iqamah": "14:00" },
    …
  },
  "source": { "type": "masjid", "status": "fresh" }
}
Why we open it

Their times belong to the masjids

For years we have worked with masjids on their prayer times. Those times belong to them, and they are meant for worshippers, not to stay locked inside one app. So we are opening them to every serious, committed developer.

The masjids publish; the apps carry their times to worshippers.

The Hub

Live from the masjids, in every app at once

A masjid publishes on its dashboard. Every app on the Hub has the change on its next call, with nothing to sync on your side.

  • Masjid Bilal, Leeds published Maghrib 18:49 · every app on the Hub has it
  • Masjid Al-Ihsan, Rotterdam published Asr 16:50 · every app on the Hub has it
  • Masjid Ennour, Nantes published Jumu'ah 13:15 · every app on the Hub has it

The exchange

What each side gives, and gets

  • Developers

    You get

    The masjid directory and its times, free and always up to date. The report page is hosted for you, and an MCP server serves AI assistants.

    You give

    One attribution line and a "Report an error" link next to the times. Corrections made through your credited links count for your project.

    Why contribute
  • Masjids

    They get

    Times published once reach every connected app their worshippers use. Reported errors come to them.

    They give

    Their times, kept up to date.

  • Worshippers

    They get

    The right time, straight from their masjid, in whatever app they use.

    They give

    A tap when a time looks wrong. They hear back when it is fixed.

Masjids

The masjid stays in control

  • Its times are its own

    It can export them, and manage them through its own API and AI assistants.

  • It chooses where it appears

    It sees which apps request its times, and can choose not to appear in third-party apps.

Partners

Building on the Hub

Apps already show masjid times through the Hub. Join them.

See the partners
  • FreeNo card. There is no paid plan.
  • 3,600requests an hour, every new project
  • 600requests a minute, per key

Source of every time stated · every request traceable

Console

Everything you need to ship on the API

One account, one project per app, keys that share its quota.

Keys per project

A secret key for your server, a publishable key for a mobile app. The secret is shown once.

mbx_sk_live_…Wx9ZSecret · serverActive
mbx_pk_live_…3kQePublishable · app, websiteActive

Every request traceable

Every answer carries a request id you can look up in your console. Kept 30 days.

prayerTimes.weekly13 Oct 15:38:12 · GB · 38 ms200
masjids.retrieve13 Oct 15:37:50 · GB · 112 ms200
masjids.nearby13 Oct 15:40:55 · GB · 3 ms429

Usage and quota, in the open

Requests and errors per minute, hour or day, and the requests of this UTC hour against the project's quota.

Requests this hour1,284 / 3,600
A sample project, mid-hour

Docs and reference

Guides and the API reference on one site, generated from the OpenAPI documents the API is built from.

curl https://hub.masjidbox.com/v1/masjids/msj_ap20t2m2tk/prayer-times \
  -H "Authorization: Bearer $MASJIDBOX_KEY"
# → { "object": "prayer_times", "prayers": { "fajr": … } }

The API

What you can build on

Eight read endpoints, one key, one response style.

  • Find masjids

    Search by name or city, or list the masjids near a point.

  • Prayer times

    Today, the next 7 days or a month: athan, iqama, sunrise, Hijri date.

  • Jumu'ah & donations

    Friday services and the masjid's live donation campaign.

You build an app

Build for masjids without rebuilding masjid data

Free data. In return, show where it comes from and let worshippers fix it.

Get an API key

You run a masjid

Publish your times once. Every app shows them right.

Claim your masjid to control its times, correct them and see the reports. It is free.

Claim your masjid