Islamic Network (AlAdhan)Not published by vendorVerified 2026-10-16

prayer times API for Claude & AI agents

Daily prayer times and Hijri calendar dates for any city or coordinates. Free REST API, no key.

Verified factsChecked 2026-10-16

PriceFree. AlAdhan describes itself as offering a free REST API.1 [Verified 2026-10-16]
API key / authNot required. Our test request ran without any key.1 [Verified 2026-10-16]
Rate limit12 requests per second, per the ratelimit-limit and x-ratelimit-limit-second headers on our test request.4 [Verified 2026-10-16]
TermsUse 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 methodsPick a method with method=<id>. The full list is served by the Calculation Methods API.6 [Verified 2026-10-16]
EndpointGET https://api.aladhan.com/v1/timingsByCity/{DD-MM-YYYY}?city=…&country=…&method=…1 [Verified 2026-10-16]

FeaturesChecked 2026-10-17

YesNoN/ANot published
CapabilityValueNote
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]No GA/beta label on the API or terms pages.
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]No key. Test request returned HTTP 200 without a key.
Free tierFree. Described as a free REST API.Yes1 [Verified 2026-10-17 on https://aladhan.com/prayer-times-api]Free. Described as a free REST 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]ratelimit-limit and x-ratelimit-limit-second headers on our test request.
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]No official MCP server is listed on the developer pages.
Official SDKPHP, JavaScript. Two official SDKs listed on the API Clients page.Yes7 [Verified 2026-10-17 on https://aladhan.com/clients-api]PHP, JavaScript. Two official SDKs listed on the API Clients page.
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]No data license is published; the terms provide the API as-is, without warranty.
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]The terms do not address commercial use.
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]Access-Control-Allow-Origin: *. Returned on a GET with a third-party Origin header.
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]Any city or coordinates. Times are calculated with the Pray Times formulas.

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

ShellRequest
curl -sS "https://api.aladhan.com/v1/timingsByCity/16-10-2026?city=London&country=United%20Kingdom&method=15"

Response (trimmed)

HTTP responseResponse
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

Prompt
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

JSONTool 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 APIFree sunrise, sunset and weather by coordinates when you only need daylight data.
Wikipedia REST APIFree background on calendars and calculation conventions.
Time of Meeting MCPFree, no-login remote MCP for civil meeting times, public holidays and business-day math across time zones.
AlAdhan Islamic Calendar APISame 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