Quick start

Show today’s prayer times in three steps. Every endpoint is a static JSON file, so you can open each one in a browser tab before writing any code.

  1. Pick a timetable

    Fetch the list once. Each entry has an id, district, school and coordinates.

    GET/v2/locations.json
  2. Fetch the year

    One file holds every day of the year. It stays the same from day to day, so cache it.

    GET/v2/locations/{id}/timetables/{year}.json
  3. Show today

    Find today’s date in Kerala time in days and read the six times.

    days.find((d) => d.date === today)

Example

The same three steps in your language. Each prints Subh and Maghrib for Kuttiady.

const 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 res = await fetch(`${base}/v2/locations/${id}/timetables/${today.slice(0, 4)}.json`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);

const { days } = await res.json();
const times = days.find((day) => day.date === today);
console.log(times.fajr, times.maghrib);
Output on 23 November 202605:05 18:03
Use Kerala time to pick the day, not the device’s time zone. Someone travelling abroad still needs the date in Kerala to match the timetable.