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
3mo 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 →
ueex.com.ua API
Access real-time and historical pricing data for Ukrainian energy commodities including natural gas, electricity, coal, LPG, and timber directly from official exchange quotations and auction results. Monitor trading indices, check medium long-term market rates, and view the trading calendar to stay informed on energy market trends.
cses.fi API
Explore the CSES Problem Set by browsing problems across different categories, viewing detailed problem information, and discovering available courses and contests. Access comprehensive problem lists organized by topic to find coding challenges tailored to your learning goals.
bazaardb.gg API
Search and retrieve comprehensive data about The Bazaar game cards, including items, skills, merchants, trainers, monsters, and events with full details like tiers, attributes, enchantments, and tooltips. Quickly find the specific card information you need to optimize your gameplay strategy and deck building.
jurisprudencia.tst.jus.br API
Search and retrieve judicial decisions from Brazil's Superior Labor Court with filters by date, court body, and keywords to access decision summaries, outcomes, and full texts. Quickly find relevant labor law precedents and court rulings to support legal research and case analysis.
icons8.com API
Search for millions of icons across different visual styles like colorful, pattern-based, and minimalist designs to find the perfect icon for your project. Discover and retrieve icons in your preferred style to enhance your designs and applications.
smstome.com API
Browse temporary phone numbers from countries around the world and read incoming SMS messages in real time. List available numbers by country, retrieve messages sorted newest to oldest, and search message history by sender or content.
noor-book.com API
Search and discover books across 1,800+ categories in the Noor Book library, retrieving detailed information about titles, authors, biographies, and book metadata. Access comprehensive author profiles and browse one of the largest Arabic and English digital book collections with over 289,000 authors.
quizbowlpackets.com API
Search and browse thousands of quizbowl question sets across all competition levels, then access detailed metadata like difficulty, subjects, and download links for each packet. Find the perfect practice materials for High School, Collegiate, Middle School, or Pop Culture quizbowl competitions.