Prayer Times & Islamic Calendar API
Accurate Muslim prayer times for any location (15 methods, Hanafi/Shafi), monthly timetable, Qibla direction, Hijri & Persian calendar converter.
Get a free API key on RapidAPI Try it in the playgroundPrayer Times & Islamic Calendar API
Everything a Muslim lifestyle app needs — calculated on the edge with standard astronomical formulas, so it is fast, always available and works for any point on Earth.
🕌 Prayer times
Imsak, Fajr, Sunrise, Dhuhr, Asr, Sunset, Maghrib, Isha, Midnight and the last third of the night for any date. Choose from 15 methods (Muslim World League, ISNA, Egypt, Umm al-Qura, Karachi, Tehran, Jafari, Gulf, Kuwait, Qatar, Singapore, Turkey, France, Dubai, Moonsighting), Hanafi or standard Asr, and high-latitude rules. Today's response includes the next prayer with a countdown.
🗓️ Monthly timetable
A full month in one call — ready to print or cache in your app.
🧭 Qibla
Bearing to the Kaaba from any location, compass point and distance.
📅 Calendars
Convert between Gregorian, Hijri (Umm al-Qura) and Persian / Jalali dates, and list the year's Islamic events (Ramadan, Eid al-Fitr, Eid al-Adha, Ashura, Mawlid…) with Gregorian dates and days remaining.
Use cases: prayer & adhan apps · mosque screens and websites · smart-watch faces · halal travel apps · Ramadan timetables · chatbots
Keywords: prayer times api, salah times, namaz time, adhan api, azan, qibla direction, hijri calendar api, islamic calendar, ramadan timetable, hijri converter, persian calendar, jalali date
Endpoints (6)
| Endpoint | What it returns |
|---|---|
GET/times | Prayer times for a day Prayer times for one day at a location given by coordinates or by city name. For today (no `date`) the response also includes the next prayer and a countdown. |
GET/calendar | Monthly timetable Prayer times for every day of a month, each with weekday and Hijri date. |
GET/methods | Calculation methods All supported calculation methods with their Fajr / Isha parameters, the Asr schools and the list of built-in city names. |
GET/qibla | Qibla direction Direction of the Kaaba (degrees clockwise from true north), compass point and great-circle distance from a location. |
GET/date/convert | Convert a date Convert a date between the Gregorian, Hijri (Umm al-Qura) and Persian / Jalali calendars. The response always contains all three, plus any Islamic event on that day. |
GET/events | Islamic events Major Islamic events of a Hijri year (New Year, Ashura, Mawlid, Ramadan, Laylat al-Qadr, Eid al-Fitr, Arafah, Eid al-Adha…) with Gregorian dates and days remaining, plus Ramadan start and end. |
Quick start
Subscribe on RapidAPI (free plan available), copy your key, and call GET /times:
curl --request GET \
--url 'https://prayer-times-islamic-calendar-api.p.rapidapi.com/times?city=Istanbul&method=turkey&school=standard&high_latitude=auto&format=24h' \
--header 'x-rapidapi-host: prayer-times-islamic-calendar-api.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://prayer-times-islamic-calendar-api.p.rapidapi.com/times?city=Istanbul&method=turkey&school=standard&high_latitude=auto&format=24h"
headers = {
"x-rapidapi-host": "prayer-times-islamic-calendar-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://prayer-times-islamic-calendar-api.p.rapidapi.com/times?city=Istanbul&method=turkey&school=standard&high_latitude=auto&format=24h", {
method: "GET",
headers: {
"x-rapidapi-host": "prayer-times-islamic-calendar-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
});
console.log(await res.json());
Example response
{
"date": "2026-11-21",
"weekday": "Saturday",
"hijri": {
"year": 1448,
"month": 6,
"day": 11,
"month_name": "Jumada al-Thani",
"month_name_ar": "جمادى الآخرة",
"formatted": "11 Jumada al-Thani 1448 AH"
},
"times": {
"imsak": "06:12",
"fajr": "06:22",
"sunrise": "07:51",
"dhuhr": "12:55",
"asr": "15:25",
"sunset": "17:41",
"maghrib": "17:48",
"isha": "19:12",
"midnight": "00:46",
"last_third": "02:08"
},
"meta": {
"latitude": 41.0082,
"longitude": 28.9784,
"city": "istanbul",
"timezone": "Europe/Istanbul",
"method": "turkey",
"method_name": "Diyanet İşleri Başkanlığı, Turkey",
"fajr_angle": 18,
"isha": "17°",
"school": "standard",
"high_latitude_rule": "none"
},
"next_prayer": {
"name": "fajr",
"time": "06:22",
"day": "today",
"minutes_until": 378,
"countdown": "6h 18m"
},
"current_local_time": "00:04"
}
Start free. Every plan includes all endpoints; upgrade only when you need more requests. Runs on Cloudflare's global network for low latency worldwide.
Subscribe on RapidAPIRelated APIs
Books API - Search, ISBN & Authors
Search 40M+ books by title, author, subject or ISBN: details, covers, ratings, editions, authors, genres, trending books and free-to-read links.
EducationDictionary API - Definitions, Synonyms & Audio
English dictionary: definitions, examples, synonyms & antonyms, IPA phonetics with audio, autocomplete, word of the day, plus words in 100+ languages.
EducationQuran API - Text, Translations & Audio
Complete Quran: Arabic (Uthmani) text, 100+ translations in 40+ languages, verse-by-verse audio by famous reciters, search, juz, pages, sajda.
EducationWikipedia & Wikidata API
Wikipedia in 300+ languages: search, summaries, full text by section, images, trending pages, pageviews, on-this-day, nearby places, Wikidata facts.