Free Prayer Times API

JSON prayer times for 407 cities, calculated with published methods. No key and no sign-up; please credit SalahTable with a visible link to the city page.

Endpoints

RequestReturns
GET /api/times/{country}/{city}Today and the next 7 days, the next prayer, method details
GET /api/month/{country}/{city}/{month}-{year}Every day of a month (from two months back to twelve ahead)
GET /{country}/{city}/prayer-times.icsCalendar feed, next 30 days
GET /openapi.jsonOpenAPI 3.1 description

Both JSON endpoints take optional method (karachi, isna, mwl, moonsighting, ummalqura, egyptian, dubai, qatar, kuwait, singapore) and school (hanafi or shafi); the default is the country's usual method (see methodology). City and country slugs are the ones in our page URLs, e.g. pakistan/karachi, united-kingdom/london; the full list is in llms-full.txt and the open data.

Example

curl 'https://salahtable.com/api/times/pakistan/karachi?method=karachi&school=hanafi'

Times come back formatted in the city's local time (week[].fajr …) and as UTC instants for today (iso), with next giving the upcoming prayer.

Terms

Need it on a web page without coding? Use the prayer times widget.