Discover/salah.com API
live

salah.com APIsalah.com

Get Islamic prayer times for any location via salah.com. Query by coordinates, city name, or homepage defaults. Returns Fajr, Dhuhr, Asr, Maghrib, Isha, and more.

Endpoints
4
Updated
14d ago
Try it
Latitude of the location (e.g. 40.7128)
Longitude of the location (e.g. -74.0060)
Calculation method ID for prayer time computation
api.parse.bot/scraper/ef45bcf1-9fcb-49c5-bf70-392cbc9e4dbf/<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/ef45bcf1-9fcb-49c5-bf70-392cbc9e4dbf/get_prayer_times_by_coordinates?latitude=40.7128&longitude=-74.0060' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Fetches today's prayer times for a given location using latitude and longitude coordinates. Returns prayer names (Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha, Qiyam) with their times.

Input
ParamTypeDescription
latituderequirednumberLatitude of the location (e.g. 40.7128)
longituderequirednumberLongitude of the location (e.g. -74.0060)
method_idintegerCalculation method ID for prayer time computation
Response
{
  "type": "object",
  "fields": {
    "times": "object mapping prayer names to their scheduled times",
    "method": "object, calculation method details (may be empty)",
    "location": "string, address or area name for the coordinates"
  },
  "sample": {
    "data": {
      "times": {
        "Asr": "4:45 PM",
        "Fajr": "4:21 AM",
        "Isha": "9:23 PM",
        "Dhuhr": "12:52 PM",
        "Qiyam": "2:02 AM",
        "Maghrib": "7:56 PM",
        "Sunrise": "5:48 AM"
      },
      "method": {},
      "location": "260 Broadway, New York"
    },
    "status": "success"
  }
}

About the salah.com API

The salah.com API exposes 4 endpoints for retrieving daily Islamic prayer times — Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha, and Qiyam — for locations worldwide. Use get_prayer_times_by_coordinates to query by latitude and longitude, or get_all_prayer_times_for_location to pass a city name or address and receive geocoded results. Each response includes a times object mapping prayer names to scheduled times, a location string, and optional calculation method details.

Endpoints and Response Shape

The API provides three main ways to retrieve prayer times. get_prayer_times_by_coordinates accepts latitude and longitude as required inputs plus an optional method_id for selecting a specific prayer time calculation method. It returns a times object (prayer name → scheduled time), a location string describing the area, and a method object with calculation method details. get_all_prayer_times_for_location takes a location string such as "London, UK" or "Cairo", geocodes it, and returns the same times, location, and method fields. The method_id parameter is also available here to pin a specific calculation standard.

Homepage and Mosque Endpoints

get_prayer_times_homepage requires no inputs and returns the default prayer times, detected location name, and calculation_method string as shown on the salah.com homepage — useful for testing or for building a generic widget that reflects the site's own defaults. get_mosques is a separate endpoint that attempts to return mosque directory information for a location, but coverage is limited: the response returns a status and message field, and mosque data may not be available for all regions.

Prayer Times and Calculation Methods

All time-returning endpoints expose seven named prayers: Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha, and Qiyam. The optional method_id parameter on coordinate and location endpoints lets callers specify the calculation authority (e.g., ISNA, MWL, Egyptian General Authority) where salah.com supports multiple methods. If method_id is omitted, salah.com applies its own default for the queried location.

Common use cases
  • Display today's prayer schedule in a Muslim lifestyle mobile app using get_prayer_times_by_coordinates with device GPS coordinates
  • Send daily prayer time notifications by querying get_all_prayer_times_for_location for a user's saved city each morning
  • Build a prayer time widget for a mosque website that shows Fajr through Isha times for a fixed location
  • Compare prayer times across different calculation methods by calling the coordinates endpoint with different method_id values for the same lat/lng
  • Populate a world clock-style dashboard showing prayer times for multiple cities via repeated calls to get_all_prayer_times_for_location
  • Verify or cross-check Qiyam (night prayer) times programmatically for scheduling automated reminders
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 salah.com have an official developer API?+
Salah.com does not publish an official public developer API or documented REST endpoints for external developers.
What does the `method_id` parameter control and which endpoints support it?+
method_id selects the Islamic prayer time calculation authority used to derive the schedule. It is accepted by both get_prayer_times_by_coordinates and get_all_prayer_times_for_location. When omitted, salah.com applies its default calculation method for the queried location. The method field in the response may return details about the method that was applied, though it can be empty in some cases.
Are prayer times returned for future dates or just today?+
All endpoints return today's prayer times only — there is no date parameter to request schedules for past or future dates. The API covers the current day's Fajr through Qiyam schedule. You can fork the API on Parse and revise it to add date-based querying if salah.com exposes that capability.
Does the mosque endpoint return detailed mosque listings?+
The get_mosques endpoint returns a status and message field, and mosque directory data is noted as not available for all regions. It does not currently return structured fields such as mosque names, addresses, or coordinates. You can fork the API on Parse and revise it to add a more detailed mosque data endpoint if the underlying source expands its coverage.
Is monthly or annual prayer time data available through this API?+
Not currently. The API covers daily prayer times for today's date across the coordinate, location-name, and homepage endpoints. You can fork the API on Parse and revise it to add endpoints that retrieve monthly timetables if that data is accessible from salah.com.
Page content last updated . Spec covers 4 endpoints from salah.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.