Discover/prayertimes API
live

prayertimes APIprayertimes.date

Retrieve Islamic prayer times by city or country, monthly schedules, and popular locations via the prayertimes.date API. All 8 daily prayer times included.

Endpoint health
verified 2d ago
get_prayer_times_by_country
get_prayer_times_by_city
get_monthly_prayer_times
list_popular_countries
list_popular_cities
5/5 passing latest checkself-healing
Endpoints
5
Updated
26d ago

What is the prayertimes API?

This API provides 5 endpoints for querying Islamic prayer times from prayertimes.date, returning all eight standard daily prayer and transition times — Imsak, Fajr, Sunrise, Dhuhr, Asr, Sunset, Maghrib, and Isha. The get_prayer_times_by_city endpoint returns today's schedule with geographic coordinates and date, while get_monthly_prayer_times delivers a full per-day calendar for the current month. Coverage spans individual cities, country-level summaries, and curated popular locations.

Try it
City name used to look up prayer times (e.g. 'London', 'Mecca', 'Istanbul'). Converted to a URL slug internally.
api.parse.bot/scraper/8cf68912-b61a-4119-a74d-85a28afca247/<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/8cf68912-b61a-4119-a74d-85a28afca247/get_prayer_times_by_city?city=London' \
  -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-date-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.

"""PrayerTimes.date API — retrieve Islamic prayer times by city and country."""
from parse_apis.prayertimes_date_api import PrayerTimes, NotFound

client = PrayerTimes()

# Get today's prayer times for a specific city
city = client.cities.get(city="London")
print(f"{city.city} ({city.date}): Dhuhr={city.prayer_times.dhuhr}, Asr={city.prayer_times.asr}")
print(f"  Location: lat={city.metadata.latitude}, lon={city.metadata.longitude}")

# Browse the monthly schedule for that city (sub-resource)
for day in city.schedule.list(limit=3):
    print(f"  {day.date}: Fajr={day.fajr}, Maghrib={day.maghrib}")

# Discover popular cities and drill into one
popular = client.citysummaries.list(limit=1).first()
if popular:
    detail = popular.details()
    print(f"Popular city: {detail.city}, Sunrise={detail.prayer_times.sunrise}")

# Get prayer times for all major cities in a country
country = client.countries.get(country="United Kingdom")
for entry in country.cities[:3]:
    print(f"  {entry.city}: Fajr={entry.fajr}, Isha={entry.isha}")

# Typed error handling for a non-existent city
try:
    client.cities.get(city="NonExistentCity12345")
except NotFound as exc:
    print(f"Expected error: {exc}")

print("exercised: cities.get / schedule.list / citysummaries.list / details / countries.get / NotFound")
All endpoints · 5 totalmissing one? ·

Retrieve today's Islamic prayer times for a specific city. Returns the eight standard prayer/transition times (Imsak, Fajr, Sunrise, Dhuhr, Asr, Sunset, Maghrib, Isha), geographic coordinates, and the current date. Some high-latitude cities may show '-' for prayers that do not occur on a given day.

Input
ParamTypeDescription
cityrequiredstringCity name used to look up prayer times (e.g. 'London', 'Mecca', 'Istanbul'). Converted to a URL slug internally.
Response
{
  "type": "object",
  "fields": {
    "city": "string — the city name as provided",
    "date": "string — today's date in long format",
    "metadata": "object with latitude, longitude, altitude as numbers",
    "prayer_times": "object with keys imsak, fajr, sunrise, dhuhr, asr, sunset, maghrib, isha mapped to HH:MM time strings or '-'",
    "calculation_settings": "object with calculation method details (may be empty)"
  },
  "sample": {
    "data": {
      "city": "London",
      "date": "Thursday, June 11, 2026",
      "metadata": {
        "altitude": 33,
        "latitude": 51.50735092163086,
        "longitude": -0.12775829434394836
      },
      "prayer_times": {
        "asr": "17:22",
        "fajr": "-",
        "isha": "-",
        "dhuhr": "13:00",
        "imsak": "-",
        "sunset": "21:18",
        "maghrib": "21:18",
        "sunrise": "04:42"
      },
      "calculation_settings": {}
    },
    "status": "success"
  }
}

About the prayertimes API

Daily and Monthly Prayer Times

The get_prayer_times_by_city endpoint accepts a city string (e.g. London, Mecca, Istanbul) and returns today's prayer_times object with eight keyed time strings: imsak, fajr, sunrise, dhuhr, asr, sunset, maghrib, and isha. Each value is either an HH:MM string or '-' for cities at high latitudes where a particular prayer does not occur on that day. The response also includes a metadata object with latitude, longitude, and altitude, plus a calculation_settings object that may describe the calculation method used.

Monthly Schedules

The get_monthly_prayer_times endpoint accepts the same city parameter and returns a schedule array covering every day of the current month. Each entry in the array carries a date field alongside all seven primary prayer time strings (fajr through isha). This is well-suited for calendar rendering or weekly/monthly planning views. The month field in the response provides the page heading text describing the city and month in question.

Country-Level and Discovery Endpoints

The get_prayer_times_by_country endpoint takes a country name and returns a cities array listing major cities within that country, each with their current-day prayer times. For discovery use cases, list_popular_countries and list_popular_cities require no parameters and each return an items array containing name, slug, and url fields — useful for populating search interfaces or building navigation around available locations.

Reliability & maintenanceVerified

The prayertimes API is a managed, monitored endpoint for prayertimes.date — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when prayertimes.date 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.date 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
2d ago
Latest check
5/5 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 today's complete prayer schedule in a Muslim lifestyle app using get_prayer_times_by_city
  • Render a monthly prayer calendar in a web dashboard using the schedule array from get_monthly_prayer_times
  • Show prayer times for all major cities in a given country using get_prayer_times_by_country
  • Build a location picker by listing well-known cities and countries via list_popular_cities and list_popular_countries
  • Handle high-latitude edge cases by checking for '-' values in the prayer_times object before rendering
  • Geocode and display city pin locations on a map using latitude and longitude from the metadata response field
  • Send daily prayer time push notifications by polling get_prayer_times_by_city each morning
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.date have an official developer API?+
No. prayertimes.date does not publish an official developer API or public documentation for programmatic access. This Parse API provides structured access to the data it exposes.
What does the `get_prayer_times_by_city` endpoint return for high-latitude cities where some prayers don't occur?+
For cities where a specific prayer time cannot be determined on a given day — common in high-latitude locations — the affected time value is returned as '-' rather than an HH:MM string. Your code should check for this before displaying or scheduling against that time.
Does the API support historical or future prayer times beyond the current month?+
Not currently. get_prayer_times_by_city returns today's times, and get_monthly_prayer_times covers only the current calendar month. You can fork this API on Parse and revise it to add endpoints targeting specific future or past dates.
Can I filter prayer times by a specific calculation method or juristic school?+
Not currently. The calculation_settings field is returned in the city response but the API does not accept a calculation method as an input parameter. You can fork this API on Parse and revise it to add that filtering capability if prayertimes.date exposes method-specific URLs.
How fresh is the data returned for today's prayer times?+
The get_prayer_times_by_city and get_prayer_times_by_country endpoints return times for the current day based on when the request is made. Prayer times are astronomically calculated and stable per date, so the main freshness concern is ensuring requests are made on the correct calendar day in the target city's timezone.
Page content last updated . Spec covers 5 endpoints from prayertimes.date.
Related APIs in OtherSee all →
prayertimes.com API
Get accurate daily prayer times (Fajr, Dhuhr, Asr, Maghrib, and Isha) for thousands of cities worldwide, plus Iftar and Imsak timings and Islamic calendar dates. Search by country and city to find prayer schedules wherever you are.
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.
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.
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.
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.
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.