<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: matine Elmsafi</title>
    <description>The latest articles on DEV Community by matine Elmsafi (@nextcord).</description>
    <link>https://dev.to/nextcord</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4270926%2Feeb4b5dd-7238-4a0a-83cd-77a0d2636b7d.jpg</url>
      <title>DEV Community: matine Elmsafi</title>
      <link>https://dev.to/nextcord</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nextcord"/>
    <language>en</language>
    <item>
      <title>Islamic Utility API</title>
      <dc:creator>matine Elmsafi</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:07:41 +0000</pubDate>
      <link>https://dev.to/nextcord/islamic-utility-api-4ai6</link>
      <guid>https://dev.to/nextcord/islamic-utility-api-4ai6</guid>
      <description>&lt;h1&gt;
  
  
  Building a Muslim App? Stop Scraping Prayer Times.
&lt;/h1&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;If you've ever tried to build one of these apps from scratch, you know the backend is a nightmare. &lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;You usually end up either scraping 5 different government websites, or spending days digging through outdated open-source libraries.&lt;/p&gt;

&lt;h3&gt;
  
  
  💡 The Solution: The Islamic Utility API
&lt;/h3&gt;

&lt;p&gt;To solve this for my own projects, I recently built and published the &lt;strong&gt;Islamic Utility API&lt;/strong&gt; on RapidAPI. It is a fast, reliable, and completely Halal backend-as-a-service for Muslim apps.&lt;/p&gt;

&lt;p&gt;Instead of writing complex math algorithms, you can just make a simple REST API call and get clean JSON back.&lt;/p&gt;

&lt;h3&gt;
  
  
  🚀 What's inside?
&lt;/h3&gt;

&lt;p&gt;The API covers almost everything you need for a foundational Islamic app:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  🕌 &lt;strong&gt;Prayer Times:&lt;/strong&gt; Get the exact five daily prayers, sunrise, and midnight times. Supports multiple calculation methods and Asr styles.&lt;/li&gt;
&lt;li&gt;  📅 &lt;strong&gt;Hijri Dates:&lt;/strong&gt; Convert any Gregorian date to the Islamic (AH) calendar instantly.&lt;/li&gt;
&lt;li&gt;  🧭 &lt;strong&gt;Qibla Direction:&lt;/strong&gt; Get the exact compass bearing to the Kaaba from any coordinate on Earth.&lt;/li&gt;
&lt;li&gt;  📖 &lt;strong&gt;Quran:&lt;/strong&gt; Fetch a list of all 114 Surahs, their metadata, and audio URLs.&lt;/li&gt;
&lt;li&gt;  📜 &lt;strong&gt;Hadith:&lt;/strong&gt; Get a random, authentic Hadith for daily reminders.&lt;/li&gt;
&lt;li&gt;  ✨ &lt;strong&gt;Asma ul-Husna:&lt;/strong&gt; The 99 Names of Allah with Arabic, transliteration, and English meanings.&lt;/li&gt;
&lt;li&gt;  💰 &lt;strong&gt;Zakat Calculator:&lt;/strong&gt; A computational endpoint to calculate your Nisab threshold and 2.5% Zakat due.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  💻 How to use it (Python Example)
&lt;/h3&gt;

&lt;p&gt;Integration takes less than 2 minutes. Here is how you can get prayer times for Fes, Morocco, using Python:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
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! 🌙
![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/gyzda0luywwqavieq331.jpeg)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>api</category>
      <category>python</category>
      <category>ramadan</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
