muslimsalat
Menu
Choose a Place
Choose your language

Suggested

All languages

API

Put a place in the path and add .json or .ics. These are the same URLs the API has always used, so nothing changes for apps already using them.

GET /{location}.json
GET /{location}/{daily|weekly|monthly|yearly|ramadan}.json
GET /{location}/{times}/{dd-mm-yyyy}.json
GET /{location}/monthly.ics                  calendar (webcal:// to subscribe)
GET /daily.json                              place found from the caller's IP
GET /qibla_compass/{size}/{degrees}.png      ?style=classic|astrolabe|enamel|silver
GET /qibla_compass/{size}/{degrees}.svg      the astrolabe, animated
GET /code/qibla?city={city}                  live Qibla finder, for an iframe
GET /{location}/{monthly|ramadan}.pdf        ?design=astrolabe|illuminated|night|wall  &paper=letter

Parameters

NameWhat it does
keyYour API key, required for new apps and sites. Get yours free.
methodA timetable by id (see /api/methods.json) or the old numbers 1–7. Leave it out to get the place's local timetable.
asrhanafi or shafi for the asr field. Both are always in asr and asr_hanafi.
fajr, ishaYour own convention: fajr=18, isha=17 or isha=90min.
ramadan1 adds imsak and iftar on every day (they are always there in Ramadan).
jsoncallbackJSONP wrapper.

Try it


  
…

The today_weather field: Weather data by Open-Meteo.com. Other sources: data and credits.

Questions

Do I need a key?

Yes, for every new app, site and widget. The key is free: sign in and copy it. Apps and sites that already used MuslimSalat keep working without one.

Which times do you return?

For each place, the timetable its local authority or main mosque publishes. How we calculate.

Is there a limit?

Fair use; the limits belong to your key.

Something else?

Contact us.