Prayer Times API
Get accurate prayer times for any location worldwide. Supports 9 calculation methods from major Islamic authorities, with both Hanafi and Shafi Asr times always included in the response, and Zawal window calculations.
Get Prayer Times
Retrieve prayer times for a specific location and date.
GET
/v1/prayerQuery Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| lat | float | Required | Latitude (-90 to 90) |
| lng | float | Required | Longitude (-180 to 180) |
| date | string | Optional | Date in YYYY-MM-DD format (default: today) |
| method | string|integer | Optional | Calculation method ID (1-9) or code (MWL, ISNA, etc.) (default: MWL) |
| tz | string | Optional | IANA timezone (auto-detected if not provided) |
Example Request
curl "https://api.falakapi.com/v1/prayer?lat=28.66&lng=77.07&date=2025-01-15" \
-H "X-API-Key: fak_your_api_key_here"Example Response
{
"date": {
"gregorian": "2025-01-15",
"timestamp": 1736899200
},
"prayers": {
"fajr": "05:32",
"sunrise": "06:52",
"zawal_start": "12:06",
"zawal": "12:09",
"zawal_end": "12:12",
"dhuhr": "12:12",
"asr": "15:22",
"asr_hanafi": "15:22",
"asr_shafi": "14:45",
"maghrib": "17:26",
"isha": "18:44"
}
}Notes
- •Both Asr times (Hanafi and Shafi) are always included in the response - use asr_hanafi or asr_shafi fields
- •The main 'asr' field uses Hanafi calculation by default
- •Zawal window includes start, peak, and end times
- •Timezone is automatically detected from coordinates if not provided
- •Supports past, present, and future dates
Calculation Methods
| ID | Code | Method Name | Region |
|---|---|---|---|
| 1 | MWL | Muslim World League | Global |
| 2 | ISNA | Islamic Society of North America | North America |
| 3 | EGYPT | Egyptian General Authority of Survey | Egypt |
| 4 | UMM_AL_QURA | Umm Al-Qura University, Makkah | Saudi Arabia |
| 5 | KARACHI | University of Islamic Sciences, Karachi | Pakistan |
| 6 | GULF | Gulf Region | Qatar, UAE, Kuwait |
| 7 | MOONSIGHTING | Moonsighting Committee Worldwide | Global |
| 8 | TURKEY | Diyanet İşleri Başkanlığı | Turkey |
| 9 | JAFARI | Institute of Geophysics, Tehran | Iran (Jafari) |