Noor for developers

Prayer Times API

Accurate Fajr, Dhuhr, Asr, Maghrib and Isha for any point on earth — free, no API key, no sign-up. The same calculation engine that powers the Noor app, served from the edge as clean, deterministic JSON.

Free · no key 12 calculation methods Both madhabs CORS enabled Edge-cached · fast Privacy-first

Try it live

Runs against the real API on this page — no code required.

Quick start

One GET request. Coordinates or a city slug, and you're done.

# Request
curl "https://get-noor.com/api/v1/prayer-times?lat=51.5074&lng=-0.1278&tz=Europe/London"
// JavaScript
const res = await fetch(
  "https://get-noor.com/api/v1/prayer-times?lat=51.5074&lng=-0.1278&tz=Europe/London"
);
const data = await res.json();
console.log(data.localTimes.fajr); // "03:09"

Response

Prayer times are returned as UTC ISO-8601 (unambiguous, deterministic). Pass tz to also get localTimes. Sunnah times (middle & last third of the night) are always included.

{
  "status": "ok",
  "version": "1.0",
  "location": { "latitude": 51.51, "longitude": -0.13, "timezone": "Europe/London", "utcOffset": "+01:00" },
  "date": "2026-08-11",
  "settings": { "method": "mwl", "methodName": "Muslim World League", "madhab": "shafi", "highLatitudeRule": "twilightangle" },
  "times": {
    "fajr": "2026-08-11T02:09:00Z",
    "sunrise": "2026-08-11T04:40:00Z",
    "dhuhr": "2026-08-11T12:07:00Z",
    "asr": "2026-08-11T16:08:00Z",
    "maghrib": "2026-08-11T19:31:00Z",
    "isha": "2026-08-11T21:48:00Z"
  },
  "localTimes": { "fajr": "03:09", "sunrise": "05:40", "dhuhr": "13:07", "asr": "17:08", "maghrib": "20:31", "isha": "22:48" },
  "sunnah": { "middleOfTheNight": "2026-08-10T23:50:00Z", "lastThirdOfTheNight": "2026-08-11T01:03:00Z" },
  "attribution": "Prayer times by Noor (get-noor.com) …"
}

Parameters

ParamTypeDescriptionExample
latnumberLatitude, −90 to 90. Required unless city is given.51.5074
lngnumberLongitude, −180 to 180. Required unless city is given.-0.1278
citystringConvenience: a Noor city slug (see /prayer-times) — resolves coordinates and timezone.london
datestringDay to calculate, YYYY-MM-DD. Defaults to today in the resolved timezone. Within ±1 year.2026-08-11
methodstringCalculation method (see table). Default mwl.isna
madhabstringAsr calculation: shafi (standard) or hanafi. Default shafi.hanafi
highLatitudeRulestringtwilightangle, middleofthenight, or seventhofthenight. Default twilightangle (matches Noor).twilightangle
tzstringIANA timezone for localTimes and “today”. Optional — UTC times are always returned.Europe/London

Calculation methods

Pass any as method=. Defaults to mwl. Asr follows madhab (Shafi/standard or Hanafi).

SlugAuthorityAngles
mwlMuslim World LeagueFajr 18° · Isha 17°
isnaIslamic Society of North AmericaFajr 15° · Isha 15°
egyptEgyptian General Authority of SurveyFajr 19.5° · Isha 17.5°
karachiUniversity of Islamic Sciences, KarachiFajr 18° · Isha 18°
ummalquraUmm al-Qura University, MakkahFajr 18.5° · Isha 90 min after Maghrib
dubaiDubaiFajr 18.2° · Isha 18.2°
qatarQatarFajr 18° · Isha 90 min after Maghrib
kuwaitKuwaitFajr 18° · Isha 17.5°
singaporeSingapore (MUIS)Fajr 20° · Isha 18°
turkeyDiyanet İşleri, TurkeyFajr 18° · Isha 17°
tehranInstitute of Geophysics, TehranFajr 17.7° · Isha 14°
moonsightingMoonsighting Committee WorldwideFajr 18° · Isha 18° (seasonal)

Caching & fair use

The API is free and unmetered — please help keep it that way.

Prayer times for a given place and day never change, so every response is cacheable: we send Cache-Control: public, max-age=86400 and serve from Cloudflare's edge. Cache the responses on your side too. Coordinates are rounded to ~1.1 km before calculation and caching — we never process or store a user's precise location, and there is no per-user data. Uncached bursts are soft-limited to ~120/min per IP; cached reads are unlimited. No key, no quota for normal use.

Attribution

Free to use in commercial and non-commercial projects.

No attribution is required, but a simple, tasteful link back is appreciated and helps others find the resource:
<a href="https://get-noor.com" rel="nofollow">Prayer times by Noor</a>
Please keep attribution a plain branded link (not keyword-stuffed anchor text). Building a prayer-times widget or app? Noor does the whole thing beautifully.

Built by the Noor team

This API runs the same engine as Noor — the free app for prayer times, the full Qur'an, qibla, duas and Ask Noor. If it's useful to you, you'll love the app.

Get Noor — free on the App Store