A free, public JSON API for Islamic prayer times (salah / namaz timings), adhan times, qibla direction, and iCal calendar feeds.
No API key. No sign-up. No quota to babysit. Access-Control-Allow-Origin: *, so you
can call it straight from the browser.
Base URL: https://waqtazan.com/api/v1
Most prayer-time APIs run one calculation method worldwide and make you override it with a query parameter — which means you need to already know the right answer.
This one ships the method each country's own religious authority actually publishes, as the default:
| Country | Method served by default |
|---|---|
| 🇸🇦 Saudi Arabia | Umm al-Qura — Isha = Maghrib + 90 min, and +120 during Ramadan |
| 🇪🇬 Egypt | Egyptian General Authority for Survey |
| 🇹🇷 Turkey | Diyanet İşleri Başkanlığı (asr-ı evvel, the first-shadow asr) |
| 🇵🇰 Pakistan | University of Islamic Sciences, Karachi + Hanafi asr |
| 🇮🇩 Indonesia | Kemenag, including the official ihtiyat minutes |
| 🇲🇾 Malaysia | JAKIM (times are gazetted per zone) |
| 🇮🇷 Iran | Institute of Geophysics, Tehran — Jafari maghrib (sunset + redness) |
| 🇦🇪 🇰🇼 🇶🇦 🇧🇭 🇮🇶 🇴🇲 🇯🇴 🇲🇦 🇩🇿 🇹🇳 … | each fitted to that country's official published calendar |
Ramadan is handled automatically where the convention changes.
Where no official source is reachable, the site says so on the page rather than claiming an authority it doesn't have.
GET /api/v1/timings/{country}/{city}
GET /api/v1/timings/{country}/{city}?date=YYYY-MM-DD
curl https://waqtazan.com/api/v1/timings/saudi-arabia/riyadh{
"city": { "slug": "riyadh", "name_ar": "الرياض", "name_en": "Riyadh" },
"country": "saudi-arabia",
"date": "2026-08-22",
"hijri": "9 ربيع الأول 1448 هـ",
"isRamadan": false,
"times": {
"fajr": "4:08 ص",
"sunrise": "5:30 ص",
"dhuhr": "11:56 ص",
"asr": "3:24 م",
"maghrib": "6:21 م",
"isha": "7:51 م"
},
"timesISO": {
"fajr": "2026-08-22T01:08:00.000Z",
"sunrise": "2026-08-22T02:30:00.000Z",
"dhuhr": "2026-08-22T08:56:00.000Z",
"asr": "2026-08-22T12:24:00.000Z",
"maghrib": "2026-08-22T15:21:00.000Z",
"isha": "2026-08-22T16:51:00.000Z"
},
"method": "umm_al_qura",
"source": "https://waqtazan.com"
}Two time formats on purpose:
times— ready to print, Arabic locale, Latin digits (ص= AM,م= PM)timesISO— true UTC instants, for countdowns, alarms, and date maths
sunrise is included but it is not a prayer — there is no adhan at sunrise. It is
there because Fajr ends at sunrise.
curl https://waqtazan.com/api/v1/timings/egypt/cairo # مواقيت الصلاة في القاهرة
curl https://waqtazan.com/api/v1/timings/saudi-arabia/makkah # مكة المكرمة
curl https://waqtazan.com/api/v1/timings/saudi-arabia/madinah # المدينة المنورة
curl https://waqtazan.com/api/v1/timings/turkey/istanbul # İstanbul namaz vakitleri
curl https://waqtazan.com/api/v1/timings/pakistan/karachi # Karachi namaz timings
curl https://waqtazan.com/api/v1/timings/indonesia/jakarta # jadwal sholat JakartaCity and country slugs are Latin and stable. They never change with locale.
GET /api/v1/search?q={arabic, english, or slug}
curl "https://waqtazan.com/api/v1/search?q=makkah"
curl "https://waqtazan.com/api/v1/search?q=%D8%A7%D9%84%D8%B1%D9%8A%D8%A7%D8%B6" # الرياض{ "results": [ { "type": "city", "slug": "makkah", "name_ar": "مكة المكرمة",
"country_slug": "saudi-arabia", "country_ar": "السعودية", "iso2": "SA" } ] }Matches Arabic names, English names, and slugs. Countries come back first, then cities ranked by population.
GET /api/v1/nearest?lat={lat}&lng={lng}
curl "https://waqtazan.com/api/v1/nearest?lat=30.0444&lng=31.2357"{ "country": "egypt", "city": "cairo", "name_ar": "القاهرة" }Pair it with navigator.geolocation to get prayer times for wherever the user is.
Ranking is great-circle distance, and it wraps correctly at the antimeridian.
GET /api/v1/ical/{country}/{city}.ics
curl https://waqtazan.com/api/v1/ical/pakistan/karachi.icsReturns the current month as a VCALENDAR, one VEVENT per adhan — five a day.
Subscribe to it in Apple Calendar, Google Calendar, or Outlook and the times land in
your normal calendar.
Times are computed from astronomy on every request, from the city's real coordinates. They are never stored in a database, so they can never go stale, and there is no nightly job that can silently fail.
A build is blocked from shipping if any computed time drifts more than two minutes from its reference fixtures — including rows hand-entered off official national calendars.
It is free and there is no key. Please be reasonable:
- Cache on your side for the day. Times for a given city and date never change.
- Don't poll every second. Fetch once, then count down locally from
timesISO. - A credit link is appreciated but not required:
التوقيت من وقت أذان/ "Times by Waqtazan" → https://waqtazan.com
Prayer times are a trust, not a feature. If a time disagrees with your local mosque or your national calendar, report it and it will be checked: info@waqtazan.com
Site: https://waqtazan.com · Arabic-first, one page per city, with qibla direction, prayer end times, the three forbidden windows (أوقات النهي), and a printable monthly table.
nice, it's really helpful. Thank you.