Verified factsChecked 2026-10-16
| Price | Free. AlAdhan describes itself as offering a free REST API.1 [Verified 2026-10-16] |
| API key / auth | Not required. Our test request ran without any key.1 [Verified 2026-10-16] |
| Rate limit | 12 requests per second, per the ratelimit-limit and x-ratelimit-limit-second headers on our test request.4 [Verified 2026-10-16] |
| Terms | Use is subject to the credits, terms and conditions linked from aladhan.com. The service is operated by Mamluk LLC for Islamic Network.5 [Verified 2026-10-16] |
| Calculation methods | Pick a method with method=<id>. The full list is served by the Calculation Methods API.6 [Verified 2026-10-16] |
| Endpoint | GET https://api.aladhan.com/v1/timingsByCity/{DD-MM-YYYY}?city=…&country=…&method=…1 [Verified 2026-10-16] |
FeaturesChecked 2026-10-17
| Capability | Value |
|---|---|
| StatusNo GA/beta label on the API or terms pages. | Not published1 [Not published by vendor: checked 2026-10-17 on https://aladhan.com/prayer-times-api] |
| API key requiredNo key. Test request returned HTTP 200 without a key. | No2 [Verified 2026-10-17 by test request to https://api.aladhan.com/v1/timingsByCity/17-10-2026?city=London&country=United%20Kingdom&method=15] |
| Free tierFree. Described as a free REST API. | Yes1 [Verified 2026-10-17 on https://aladhan.com/prayer-times-api] |
| Rate limitratelimit-limit and x-ratelimit-limit-second headers on our test request. | 12 requests/s2 [Verified 2026-10-17 by test request to https://api.aladhan.com/v1/timingsByCity/17-10-2026?city=London&country=United%20Kingdom&method=15] |
| Official MCP serverNo official MCP server is listed on the developer pages. | Not published7 [Not published by vendor: checked 2026-10-17 on https://aladhan.com/clients-api] |
| Official SDKPHP, JavaScript. Two official SDKs listed on the API Clients page. | Yes7 [Verified 2026-10-17 on https://aladhan.com/clients-api] |
| Data license / termsNo data license is published; the terms provide the API as-is, without warranty. | Not published3 [Not published by vendor: checked 2026-10-17 on https://aladhan.com/credits-and-terms] |
| Commercial use allowedThe terms do not address commercial use. | Not published3 [Not published by vendor: checked 2026-10-17 on https://aladhan.com/credits-and-terms] |
| CORS / browser useAccess-Control-Allow-Origin: *. Returned on a GET with a third-party Origin header. | Yes2 [Verified 2026-10-17 by test request to https://api.aladhan.com/v1/timingsByCity/17-10-2026?city=London&country=United%20Kingdom&method=15] |
| Freshness / coverageAny city or coordinates. Times are calculated with the Pray Times formulas. | Computed per request; any location3 [Verified 2026-10-17 on https://aladhan.com/credits-and-terms] |
What it does
AlAdhan is a free REST API run by Islamic Network. It returns daily prayer times (Fajr through Isha, plus Imsak and Midnight) and the matching Hijri date for a city or for latitude/longitude. You choose the calculation method, such as Muslim World League, ISNA or Umm al-Qura, so results can match a local mosque’s convention. Answers are compact JSON, which suits a quick agent tool call better than scraping a timetable page.
Working exampleRun 2026-10-16
curl -sS "https://api.aladhan.com/v1/timingsByCity/16-10-2026?city=London&country=United%20Kingdom&method=15"Response (trimmed)
HTTP 200; ratelimit-limit: 12; ratelimit-remaining: 11; ratelimit-reset: 1
{"code":200,"status":"OK","data":{"timings":{"Fajr":"05:50","Sunrise":"07:26","Dhuhr":"12:46",
"Asr":"15:33","Maghrib":"18:05","Isha":"19:28", ...},
"date":{"readable":"16 Oct 2026","hijri":{"date":"05-05-1448", ...}}}}Agent setup
Prompt to give your agent
When I ask for prayer times, call https://api.aladhan.com/v1/timingsByCity/<DD-MM-YYYY>?city=<city>&country=<country>&method=<id> (no API key). Ask me which calculation method my community uses if I haven't said. Show Fajr, Dhuhr, Asr, Maghrib and Isha in local time, plus the Hijri date, and mention that local mosque timetables can differ by a few minutes.Agent / MCP-style tool snippet
// Agent tool definition (JSON Schema) — implement with HTTP GET
{
"name": "aladhan_timings_by_city",
"description": "Daily prayer times and Hijri date from AlAdhan. Free, no API key. Max 12 req/s.",
"input_schema": {
"type": "object",
"properties": {
"date": { "type": "string", "description": "DD-MM-YYYY" },
"city": { "type": "string" },
"country": { "type": "string" },
"method": { "type": "integer", "description": "Calculation method id" }
},
"required": ["date", "city", "country"]
}
}
// GET https://api.aladhan.com/v1/timingsByCity/{date}?city={city}&country={country}&method={method}Fit and safety
Good for
- Daily briefing agents and reminders
- Travel assistants that adjust to the destination city
- Calendar apps showing Hijri dates
Watch out
- Do not override your local mosque’s published timetable. Calculated times can differ from the local convention by minutes.
- Do not fetch one day at a time for a whole year. Use the monthly calendar endpoints and cache the results, and stay under 12 requests/second.
- Do not leave out the method parameter in an app for a specific community. The default may not match their convention.
Alternatives
| Open-Meteo API | Free sunrise, sunset and weather by coordinates when you only need daylight data. |
| Wikipedia REST API | Free background on calendars and calculation conventions. |
| Time of Meeting MCP | Free, no-login remote MCP for civil meeting times, public holidays and business-day math across time zones. |
| AlAdhan Islamic Calendar API | Same provider’s Hijri/Gregorian conversion endpoints. |
FAQ
Does the AlAdhan API need a key?
No. Requests work without a key or account.
What is the AlAdhan rate limit?
Our test request returned a limit of 12 requests per second.
How do I match my mosque’s times?
Pass the method parameter for your community’s calculation convention. The Calculation Methods API lists them all.
Compare
Put AlAdhan Prayer Times API side by side with other free agent tools on keys, limits, MCP support, licensing and CORS. Open the comparison grid →
SourcesFootnotes
- 1aladhan.com/prayer-times-apiVerified 2026-10-17
- 2api.aladhan.com/v1/timingsByCity/17-10-2026?city=London&country=United%2Tested 2026-10-17
- 3aladhan.com/credits-and-termsVerified 2026-10-17
- 4api.aladhan.com/v1/timingsByCity/16-10-2026?city=London&country=United%2Verified 2026-10-16
- 5aladhan.com/aboutVerified 2026-10-16
- 6aladhan.com/calculation-methodsVerified 2026-10-16
- 7aladhan.com/clients-apiVerified 2026-10-17