Drop a single script tag on your site and you've got prayer times, Quran verses, Qibla compass, and more. Free forever, three themes, no API key required.
data-theme="dark"data-show to pick prayers (any combo of imsak,fajr,sunrise,dhuhr,asr,maghrib,isha)
accent gold bg surface text text2 text3 border highlight — set any of them, the rest follow your theme.
Add the script once anywhere on your page (usually before </body>):
<script src="https://www.ummahapi.com/widget.js"></script>
Then drop a widget tag wherever you want it:
<div data-ummahapi="prayer-times" data-lat="40.71" data-lng="-74.00"></div>
Option 1: Script tag (recommended for most sites — lightweight, integrates with your design)
<script src="https://www.ummahapi.com/widget.js"></script> <div data-ummahapi="prayer-times" data-lat="40.71" data-lng="-74"></div>
Option 2: iframe (sandboxed — better for security-sensitive sites or when you can't run scripts)
<iframe src="https://www.ummahapi.com/embed/prayer-times?lat=40.71&lng=-74&theme=dark" width="360" height="500" frameborder="0" scrolling="no"> </iframe>
Use data-show to pick exactly which prayers appear:
<!-- Just the 5 obligatory prayers --> <div data-ummahapi="prayer-times" data-show="fajr,dhuhr,asr,maghrib,isha"></div> <!-- Just Maghrib (for Iftar countdown sites) --> <div data-ummahapi="prayer-times" data-show="maghrib"></div> <!-- All including Imsak and Sunrise (default) --> <div data-ummahapi="prayer-times"></div>
prayer-times — daily prayer schedule with current/next highlighthijri-date — today's Islamic datecalendar — month view with Gregorian + Hijri datesislamic-events — upcoming Islamic eventsverse-of-day — Quran verse with translationdua-of-day — random dua from Quran/Sunnahname-of-allah — one of the 99 Names with meaningqibla — visual compass pointing to Kaabahadith-of-day — random hadith from major collectionsramadan — Ramadan countdown / Iftar timerdata-theme="dark" — themes: dark, light, creamdata-lat="40.71" data-lng="-74.00" — coordinates (or auto-detect from browser)data-method="MuslimWorldLeague" — calculation method (22 available)data-madhab="Hanafi" — Hanafi or Shafidata-compact="true" — smaller version (prayer-times)data-campaign="false" hides the sponsored LaunchGood row (prayer-times)data-collection="bukhari" — for hadith widgetStart from a theme and override any colour to match your site. Hex, rgb, rgba and named colours all work.
data-accent="#0d8a5a" — main accentdata-gold="#b8902a" — highlight colour, used for the next prayerdata-bg="#ffffff" data-surface="#fafaf7" — backgroundsdata-text="#1a1a1a" data-text2="#5a5a5a" data-text3="#8a8a8a" — text shadesdata-border="#e8e8e0" — bordersdata-highlight="rgba(184,144,42,0.08)" — active row backgroundconst el = document.querySelector('[data-ummahapi]');
window.UmmahApiWidget.init(el);
window.UmmahApiWidget.refresh(el); // re-render
Every widget pulls live data from UmmahAPI's free REST endpoints. Developers can use the same APIs directly to build custom features.