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/prayer

Query Parameters

NameTypeRequiredDescription
latfloatRequiredLatitude (-90 to 90)
lngfloatRequiredLongitude (-180 to 180)
datestringOptionalDate in YYYY-MM-DD format (default: today)
methodstring|integerOptionalCalculation method ID (1-9) or code (MWL, ISNA, etc.) (default: MWL)
tzstringOptionalIANA 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

IDCodeMethod NameRegion
1MWLMuslim World LeagueGlobal
2ISNAIslamic Society of North AmericaNorth America
3EGYPTEgyptian General Authority of SurveyEgypt
4UMM_AL_QURAUmm Al-Qura University, MakkahSaudi Arabia
5KARACHIUniversity of Islamic Sciences, KarachiPakistan
6GULFGulf RegionQatar, UAE, Kuwait
7MOONSIGHTINGMoonsighting Committee WorldwideGlobal
8TURKEYDiyanet İşleri BaşkanlığıTurkey
9JAFARIInstitute of Geophysics, TehranIran (Jafari)