Building a Muslim App? Stop Scraping Prayer Times.
With Ramadan just around the corner, a lot of developers are rushing to build or update Islamic apps—whether it's a prayer tracker, a Quran reader, or a daily Hadith reminder.
If you've ever tried to build one of these apps from scratch, you know the backend is a nightmare.
Calculating accurate prayer times based on latitude, longitude, and different calculation methods (MWL, ISNA, Umm al-Qura) requires heavy astronomical math. Converting Gregorian dates to the Hijri calendar is notoriously inconsistent. And don't even get me started on calculating the exact Qibla bearing.
You usually end up either scraping 5 different government websites, or spending days digging through outdated open-source libraries.
💡 The Solution: The Islamic Utility API
To solve this for my own projects, I recently built and published the Islamic Utility API on RapidAPI. It is a fast, reliable, and completely Halal backend-as-a-service for Muslim apps.
Instead of writing complex math algorithms, you can just make a simple REST API call and get clean JSON back.
🚀 What's inside?
The API covers almost everything you need for a foundational Islamic app:
- 🕌 Prayer Times: Get the exact five daily prayers, sunrise, and midnight times. Supports multiple calculation methods and Asr styles.
- 📅 Hijri Dates: Convert any Gregorian date to the Islamic (AH) calendar instantly.
- 🧭 Qibla Direction: Get the exact compass bearing to the Kaaba from any coordinate on Earth.
- 📖 Quran: Fetch a list of all 114 Surahs, their metadata, and audio URLs.
- 📜 Hadith: Get a random, authentic Hadith for daily reminders.
- ✨ Asma ul-Husna: The 99 Names of Allah with Arabic, transliteration, and English meanings.
- 💰 Zakat Calculator: A computational endpoint to calculate your Nisab threshold and 2.5% Zakat due.
💻 How to use it (Python Example)
Integration takes less than 2 minutes. Here is how you can get prayer times for Fes, Morocco, using Python:
python import requests url = https://rapidapi.com/Mattineex/api/islamic-utility-api querystring = { "lat": "34.0209", "lon": "-6.8416", "method": "MWL", "tz_offset": "1" } headers = { "X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY_HERE", "X-RapidAPI-Host": "islamic-utility-api.p.rapidapi.com" } response = requests.get(url, headers=headers, params=querystring) print(response.json()) ### 🎁 Try it for Free Whether you are building a production app or just hacking on a weekend project, I'd love for you to try it out. There is a **generous Free Tier** available on RapidAPI, so you can test all the endpoints without spending a dime. 👉 **[Test the Islamic Utility API on RapidAPI](https://rapidapi.com/Mattineex/api/islamic-utility-api)** If you use it to build something cool, or if you have any feature requests, let me know in the comments below! Happy coding, and Ramadan Mubarak in advance! 🌙  