Discover/prayertimes.com API
live

prayertimes.com APIprayertimes.com

Get daily Islamic prayer times (Fajr, Dhuhr, Asr, Maghrib, Isha) for thousands of cities worldwide, plus Iftar/Imsak timings and Hijri calendar dates.

Endpoints
4
Updated
4mo ago
Try it

No input parameters required.

api.parse.bot/scraper/2729bffb-c871-4f4d-a639-abb313cca953/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/2729bffb-c871-4f4d-a639-abb313cca953/list_countries' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Retrieve the list of all countries and regions supported by prayertimes.com. Returns an array of country objects with name, slug, and URL.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "countries": "array of objects, each with name (string), slug (string), and url (string)"
  },
  "sample": {
    "data": {
      "countries": [
        {
          "url": "https://www.prayertimes.com/uk/prayer-times.html",
          "name": "UK",
          "slug": "uk"
        },
        {
          "url": "https://www.prayertimes.com/usa/prayer-times.html",
          "name": "USA",
          "slug": "usa"
        }
      ]
    },
    "status": "success"
  }
}

About the prayertimes.com API

The PrayerTimes.com API covers 4 endpoints that return today's Islamic prayer times — Fajr, Sunrise, Dhuhr, Asr, Maghrib, and Isha — for thousands of cities across all supported countries. The get_city_prayer_times endpoint delivers HH:MM-formatted times alongside Iftar and Imsak windows and three calendar representations (Gregorian, Hijri, and Rumi) in a single response. Two discovery endpoints let you enumerate countries and cities before making a prayer-times request.

What the API Returns

The core endpoint, get_city_prayer_times, accepts a city slug and a country slug and returns a prayer_times object with six named keys — Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha — each as an HH:MM string. The same response includes a date_info object carrying gregorian, hijri, and rumi date strings for the current day, and an iftar_imsak object with imsak and iftar time strings derived from Fajr and Maghrib respectively.

Discovery Endpoints

Before querying prayer times you need valid slugs. list_countries returns the full array of supported country objects, each with name, slug, and url fields. Pass a country slug into get_country_cities to receive every city available for that country, along with that day's date_info. Alternatively, get_cities_alphabetical lets you browse the global city list filtered by a single uppercase letter (A–Z); each city object includes both city_slug and country_slug, so you can feed them directly into get_city_prayer_times without a separate country lookup. Omitting the letter parameter returns the full global city list.

Calendar and Timing Details

Every response that includes date_info exposes all three calendar systems simultaneously — Gregorian, Hijri (Islamic lunar), and Rumi (Ottoman fiscal calendar). This makes it straightforward to display Islamic dates alongside standard dates without a separate calendar conversion step. Times are local to the requested city; the API does not return UTC offsets or timezone identifiers alongside the times.

Common use cases
  • Display daily prayer schedule widgets in a Muslim-focused mobile app using get_city_prayer_times with the user's detected city slug.
  • Build a Ramadan companion app that surfaces Imsak and Iftar times from the iftar_imsak response object.
  • Populate a city-selector dropdown by fetching available cities with get_country_cities for a user-chosen country.
  • Show the current Hijri date alongside prayer times by reading the hijri field from date_info in any response.
  • Index the full global city coverage by iterating get_cities_alphabetical across all 26 letters to collect every city_slug/country_slug pair.
  • Send automated prayer-time reminders by polling get_city_prayer_times once per day per subscribed city and comparing current time to each prayer field.
  • Support multi-country Islamic scheduling tools by using list_countries to enumerate all regions and then resolving cities per country.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does prayertimes.com offer an official developer API?+
PrayerTimes.com does not publish an official developer API or documented public endpoints. This Parse API provides structured access to the data the site exposes.
What does `get_city_prayer_times` return beyond the six prayer times?+
In addition to the prayer_times object (Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha), the response includes an iftar_imsak object with imsak and iftar times, a date_info object with Gregorian, Hijri, and Rumi date strings, and a location object confirming the country and city slugs used.
Can I retrieve prayer times for a future or past date?+
Not currently. All four endpoints return data for the current day only; there is no date parameter for historical or future lookups. You can fork this API on Parse and revise it to add a date parameter if you need multi-day scheduling data.
Do prayer time responses include timezone or UTC offset information?+
Times are returned in local HH:MM format for the requested city. UTC offsets and IANA timezone identifiers are not included in the response. If you need timezone-aware timestamps, you can fork this API on Parse and revise it to attach a timezone lookup to each city response.
How do I find the correct slug for a city like Istanbul or London?+
Use get_country_cities with the appropriate country slug (e.g. turkey or uk) to retrieve the full city list for that country, each with a slug field. Alternatively, call get_cities_alphabetical with letter=I or letter=L to find cities globally by their first character; each result includes both city_slug and country_slug.
Page content last updated . Spec covers 4 endpoints from prayertimes.com.
Related APIs in OtherSee all →
prayertimes.date API
Get accurate Islamic prayer times for any city or country, view monthly prayer schedules, and explore prayer times across popular regions worldwide. Plan your daily prayers with up-to-date timing data organized by location and calendar month.
salah.com API
Retrieve accurate Islamic prayer times for any location by entering coordinates or a location name, or browse default times from the site homepage. Access daily prayer schedules including Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha, and Qiyam for locations worldwide.
muslimsalat.com API
Get accurate Muslim prayer times (Salah) for any location worldwide with flexible calculation methods and daylight saving adjustments. View prayer schedules by day, week, month, or year, and retrieve times using coordinates or automatic location detection.
fazilettakvimi.com API
Get Islamic prayer times, fasting schedules, and religious holidays for any location by searching through countries, cities, and districts. View daily or monthly prayer schedules and access detailed calendar information for planning your religious observances.
mawaqit.net API
Search for mosques near you and instantly access prayer times, detailed mosque information, calendars, and local weather conditions. Plan your visits with accurate scheduling data all from one convenient service.
openweathermap.org API
Search for cities and retrieve live weather conditions and forecasts (current, minutely precipitation, hourly and daily) by coordinates or by city name.
accuweather.com API
Get real-time weather conditions, multi-day forecasts, and health alerts for any location worldwide. Search cities and access detailed data including allergen information and air quality to plan your activities with confidence.
queue-times.com API
Monitor real-time wait times, crowd levels, and historical data across 130+ theme parks worldwide to plan your visits and avoid peak hours. Get daily statistics and predictions to make informed decisions about when and where to experience attractions with minimal wait times.