Free public API

Prayer Times API

A free JSON API for prayer times, the Quran, and Hijri dates. No signup, no key, no account — just fetch the URL. Every endpoint is a plain GET request and answers JSON. Free for personal projects, apps, and websites.

Be kind, please: the API runs on Cloudflare's free tier. Repeated requests for the same city and day are answered from the cache (1 hour for prayer times, 1 day for Quran data), so it stays fast for everyone.

Endpoints

Today's prayer times

GET /api/timings?city=New York&country=United States&method=2

Today's Fajr, Sunrise, Dhuhr, Asr, Maghrib and Isha for a city, with the Hijri date and the next prayer. method is the way the times are worked out — 2 is the default. Try it:

{
  "city": "New York",
  "country": "United States",
  "method": 2,
  "timezone": "America/New_York",
  "date": { "gregorian": "28 Nov 2026", "hijri": { "day": "7", "month": { "en": "Jumada al-Akhirah" }, "year": "1447" } },
  "timings": { "Fajr": "05:37", "Sunrise": "06:58", "Dhuhr": "11:44", "Asr": "14:12", "Maghrib": "16:30", "Isha": "17:51" },
  "next": { "name": "Maghrib", "time": "16:30" },
  "source": "Aladhan"
}

Monthly timetable

GET /api/timings/month?city=New York&country=United States&method=2&month=11&year=2026

The whole month of prayer times for a city — one entry per day, with the Hijri date. month is 1–12 and year is the Gregorian year; both default to the current month. Times carry the timezone in brackets, e.g. 05:28 (CST) — strip the part in brackets if you show them plain.

All Surahs

GET /api/surah

All 114 Surahs — number, Arabic name, English name, translation of the name, verse count, and where it was revealed.

One Surah, in full

GET /api/surah/2

A Surah in full — Arabic text plus the English translation (Sahih International), ayah by ayah. Surahs are numbered 1 to 114.

Surah audio

GET /api/surah/2/audio?edition=ar.alafasy

Ayah-by-ayah audio URLs for a Surah. edition picks the reciter — the default is ar.alafasy (Mishary Rashid Alafasy). Others: ar.abdulbasitmurattal, ar.husary, ar.ahmedajamy, ar.aymanswoaid.

Gregorian to Hijri date

GET /api/hijri?date=28-11-2026

Turn a Gregorian date into its Hijri date. date is DD-MM-YYYY and defaults to today.

Rules & limits

Free, no key

No signup and no API key. Use it in a personal project, an app, or a website.

Cached answers

Prayer times are cached for 1 hour and Quran data for 1 day, so the same request is answered fast without hitting the sources again.

Give credit

Prayer times come from Aladhan and Quran text from AlQuran Cloud — please credit them where you show the data.

Be fair

This is a free service on a free tier. Please do not hammer it — one request per page load is plenty.

Use the app, not just the API

Prayer times, the full Quran with audio, Qibla, duas, and the calendar — free, forever, no signup.

Open Prayer TimesFree · No signup · No ads