/v2/locations.jsonAll timetables
Every timetable with its district, school (Shafi’i or Hanafi), source and coordinates. Use the coordinates to suggest the nearest timetable.
objectBring Kerala’s prayer timetables into your next project. All 140 Assembly constituencies and the regional calendars masjids follow, as plain JSON with no API key.
{
"date": "2026-10-01",
"fajr": "04:58",
"sunrise": "06:16",
"dhuhr": "12:20",
"asr": "15:38",
"maghrib": "18:21",
"isha": "19:30"
}
Pick a timetable from the locations list, then request its year. Each year file holds every day, so one request covers a whole year of prayer times.
https://api.azantimes.inconst base = 'https://api.azantimes.in';
const id = 'kuttiady-assembly-constituency';
// Today's date in Kerala, for example '2026-11-23'.
const today = new Intl.DateTimeFormat('en-CA', { timeZone: 'Asia/Kolkata' }).format(new Date());
const response = await fetch(`${base}/v2/locations/${id}/timetables/${today.slice(0, 4)}.json`);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const { days, attribution } = await response.json();
const times = days.find((day) => day.date === today);
console.log(times.fajr, times.maghrib); // '05:03' '18:03'
Version 2 files are the same every day they are served, so you can cache a year and look up each day locally. The attribution field holds a suggested credit line.
All requests use GET and return JSON. Identifiers are lower case with hyphens, for example kollam-assembly-constituency. The full contract is in openapi.json (OpenAPI 3.1).
/v2/locations.jsonEvery timetable with its district, school (Shafi’i or Hanafi), source and coordinates. Use the coordinates to suggest the nearest timetable.
object/v2/locations/{id}/timetables/{year}.jsonEvery day of a calendar year, from 2020 to five years ahead. Dates are ISO 8601 and times are 24-hour.
object/v2/locations/{id}/timetables/perpetual.jsonThe 366-day table itself, including 29 February. Use it for any year; skip 29 February outside leap years.
object/v2/locations/{id}.jsonThe same details as the list, for a single timetable, with the years available.
object/v2/index.jsonPrayer keys, available years, links and a dataVersion that changes whenever any timetable is corrected or added.
Existing integrations keep working unchanged. Version 1 receives the same corrections and new timetables as version 2.
/v1/timesheets/index.jsonAn array of timetable identifiers, for example Kollam_Assembly_Constituency.
/v1/timesheets/{location}/today.jsonA single record for the day the data was generated.
object/v1/timesheets/{location}/month.jsonThe month selected when the data was generated.
object[]/v1/timesheets/{location}/year.jsonThe year selected when the data was generated.
object[]/v1/timesheets/{location}/all.jsonAll published records for the selected timetable.
object[]Make a real request. See exactly what comes back.
Your response will appear here.Each timetable file starts with the location, the time zone and an attribution line, followed by days. Times are local to Kerala (Asia/Kolkata, UTC+05:30) and mark the start of each prayer.
| Field | Description | Example |
|---|---|---|
date | Day, ISO 8601 (YYYY-MM-DD) | 2026-10-01 |
fajr | Fajr, also called Subh | 04:58 |
sunrise | Sunrise, when Fajr ends | 06:16 |
dhuhr | Dhuhr | 12:20 |
asr | Asr. Hanafi timetables give a later time | 15:38 |
maghrib | Maghrib | 18:21 |
isha | Isha | 19:30 |
| Version 1 | Version 2 | Change |
|---|---|---|
Kollam_Assembly_Constituency | kollam-assembly-constituency | Each location lists its version 1 name as legacyId |
date 01-10-2026 | date 2026-10-01 | ISO 8601 date |
subh, duhr, asar | fajr, dhuhr, asr | Common English keys |
| 4:58 AM | 04:58 | 24-hour time |
year.json | 2026.json | Named years that never change meaning |
Some places have more than one calendar, and some follow the Hanafi school. Suggest the nearest timetable from its coordinates, keep the source name, and let people choose the one their masjid follows.
A version 2 year file does not change from day to day. Cache it, look up each date locally, and refetch when dataVersion in index.json changes.
Check the HTTP status before parsing JSON. Missing files can return a 404 or an HTML error page. Keep a helpful fallback in your interface.
Timetable times are local to their location. Do not reinterpret them in the device’s timezone. Confirm local mosque timings for congregation times.
The timetable data is in the public domain under CC0 1.0. Use it in your app, website, masjid display or bot, including paid ones. Credit is not required. If you can show a small credit with a link, it helps people check the times against the calendar they follow, and it helps correct times reach more people.
<a href="https://azantimes.in/">
<img src="https://azantimes.in/brand/azantimes-credit.svg"
alt="Prayer times by AzanTimes" height="28">
</a>
On a dark background, use azantimes-credit-light.svg. Where a badge does not fit, a line of text works too: Prayer times: AzanTimes (azantimes.in).
Show the timetable’s source name beside the times. People look for the calendar they follow, and it credits those who prepared it.
Scale the wordmark and badge to any size. Please keep the letters and colours as they are, so people recognise them.
Your app keeps its own name and look. Present AzanTimes as the source of the times, not as the maker of your app.
We would like to see it, and we can let you know about changes to the API. Write to developers@azantimes.in.
Timetables are compiled from prayer calendars used across Kerala, and each keeps the name of the calendar it follows. The timetable data is in the public domain under CC0 1.0. The AzanTimes name and logo are not; see the full licence. The AzanTimes wordmark is set in Newsreader by Production Type. The prayer dashboard uses Atkinson Hyperlegible Next by the Braille Institute. Both typefaces are free under the SIL Open Font License 1.1.
Looking for prayer times? Open the Azan dashboard