Get prayer times
get_prayer_timesCalculate the five daily prayer times plus sunrise, imsak, midnight and the last third of the night for a latitude and longitude, or by city and/or country name (226 countries, 2,500+ cities, English or Arabic), on a given date. Output includes a required attribution link to show with the data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name or slug in English or Arabic, e.g. amman or عمان. Supplies coordinates, timezone and method. | |
| date | No | Gregorian date as YYYY-MM-DD. Defaults to today (UTC). | |
| method | No | Calculation method. Defaults to MuslimWorldLeague. | |
| country | No | ISO code or country name, e.g. JO. Alone it returns the capital. | |
| madhhab | No | Asr calculation school. Defaults to shafi. | |
| latitude | No | Latitude in decimal degrees. Not needed when city is given. | |
| timezone | No | IANA timezone used to render local clock times, e.g. Asia/Amman. | |
| longitude | No | Longitude in decimal degrees. Not needed when city is given. |