The Daily Deen API is free to use. Every request except /signup needs an x-api-key header. Get one by posting your email — the key is generated once and shown once, so save it immediately (you can't view it again, only regenerate a new one).
Base URL
Quick start
- Get a key:
POST /signupwith your email. - Send it back on every request as the
x-api-keyheader. - Call any endpoint below — responses are plain JSON.
Rate limit
1,000 requests per day per key. Exceeding it returns 429 with an X-RateLimit-Remaining header.
Error responses
Errors are JSON with a single error field, e.g. {"error":"missing x-api-key header"}.
| Status | Meaning |
|---|---|
| 400 | Missing or invalid parameters |
| 401 | Missing or invalid x-api-key |
| 404 | Resource not found (e.g. surah out of range) |
| 429 | Daily rate limit exceeded |
| 500 | Server error — safe to retry |
Creates an API key tied to an email address. The raw key is returned once and only once — it isn't recoverable, only regenerable.
Astronomical prayer times for any coordinate and date — computed directly, no third-party dataset.
| Param | Type | Required | Notes |
|---|---|---|---|
| latitude | number | required | |
| longitude | number | required | |
| date | YYYY-MM-DD | optional | defaults to today |
| method | string | optional | MuslimWorldLeague, Egyptian, Karachi, UmmAlQura, Dubai, MoonsightingCommittee, NorthAmerica, Kuwait, Qatar, Singapore, Turkey |
List all 114 surahs, or fetch one surah's Arabic text with a translation.
| Route | Notes |
|---|---|
| /quran/surahs | list every surah's metadata |
| /quran/surah/:number | 1–114, with Arabic + translation for each ayah |
| Param | Type | Required | Notes |
|---|---|---|---|
| edition | string | optional | translation edition, defaults to en.khattab. Available: en.khattab, en.pickthall, en.yusufali, en.hilalikhan, en.abdelhaleem |
Word-by-word breakdown of a single ayah — Arabic, transliteration, translation, and per-word audio timing for building read-along or highlight-as-recited UIs.
A random hadith, or full-text search across the collection.
| Route | Notes |
|---|---|
| /hadith/random | one random hadith |
| /hadith/search | full-text search, requires q |
| Param | Type | Required | Notes |
|---|---|---|---|
| q | string | required for search | search text |
| collection | string | optional | e.g. bukhari, muslim, abudawud, tirmidhi, nasai, ibnmajah |
| limit | number | optional | search only, max 50, default 20 |
Nearby masjids by coordinate, synced from OpenStreetMap.
| Param | Type | Required | Notes |
|---|---|---|---|
| latitude | number | required | |
| longitude | number | required | |
| radius_km | number | optional | default 10, capped at 50 |