Discover/PrayerTimes API
live

PrayerTimes 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.

Endpoint health
verified 4d ago
list_countries
get_country_cities
get_city_prayer_times
get_cities_alphabetical
4/4 passing latest checkself-healing
Endpoints
4
Updated
26d ago

What is the PrayerTimes 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.

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.
Call it over HTTPgrab 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'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace prayertimes-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.global_prayer_times_api import PrayerTimes, Letter

client = PrayerTimes()

# List all supported countries
for country in client.countries.list():
    print(country.name, country.slug)

# Get cities for a specific country using constructible navigation
turkey = client.country("turkey")
for city in turkey.cities.list():
    print(city.name, city.slug)

# Get prayer times for a specific city
times = client.prayertimes.get(country="uk", city="london")
print(times.prayer_times.fajr, times.prayer_times.maghrib)
print(times.date_info.gregorian, times.date_info.hijri)
print(times.iftar_imsak.imsak, times.iftar_imsak.iftar)

# Browse cities alphabetically using the Letter enum
for city in client.cities.list_alphabetical(letter=Letter.M):
    print(city.name, city.country_slug)
All endpoints · 4 totalmissing one? ·

Retrieve the complete list of countries and regions supported by prayertimes.com. Returns an array of country objects with name, slug, and URL. Use country slugs as input to get_country_cities.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "countries": "array of country objects with name, slug, and url"
  },
  "sample": {
    "data": {
      "countries": [
        {
          "url": "https://www.prayertimes.com/turkey/prayer-times.html",
          "name": "Türkiye",
          "slug": "turkey"
        },
        {
          "url": "https://www.prayertimes.com/afghanistan/prayer-times.html",
          "name": "Afghanistan",
          "slug": "afghanistan"
        },
        {
          "url": "https://www.prayertimes.com/uk/prayer-times.html",
          "name": "UK",
          "slug": "uk"
        }
      ]
    },
    "status": "success"
  }
}

About the PrayerTimes API

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.

Reliability & maintenanceVerified

The PrayerTimes API is a managed, monitored endpoint for prayertimes.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when prayertimes.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official prayertimes.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
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,000100 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.