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
| Name | What it does |
|---|---|
| key | Your API key, required for new apps and sites. Get yours free. |
| method | A timetable by id (see /api/methods.json) or the old numbers 1–7. Leave it out to get the place's local timetable. |
| asr | hanafi or shafi for the asr field. Both are always in asr and asr_hanafi. |
| fajr, isha | Your own convention: fajr=18, isha=17 or isha=90min. |
| ramadan | 1 adds imsak and iftar on every day (they are always there in Ramadan). |
| jsoncallback | JSONP 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.
