Find Masjids
GET/masjids
By name or address (q), town, or near a point (lat and lng, nearest first, within radius_km). 50 a page, A to Z unless near a point.
- qoptional
- Words in the name or address.
- townoptional
- The town, as the masjid’s page names it.
- latoptional
- Latitude, with lng.
- lngoptional
- Longitude, with lat.
- radius_kmoptional
- How far from lat/lng, in kilometres. Default 10.
- pageoptional
- Default 1.
Sample Answer
{
"data": [
{
"slug": "riverside-masjid",
"name": "Riverside Masjid",
"address": "12 River Street, Hillford, HF1 2AB",
"town": "Hillford",
"postcode": "HF1 2AB",
"latitude": 53.7957,
"longitude": -1.5492,
"distance_km": null,
"timetable": {
"source": "committee"
},
"page_url": "https://allmasjids.com/masjid/riverside-masjid"
}
],
"meta": {
"page": 1,
"per_page": 50,
"total": 1
},
"attribution": {
"text": "Prayer times from All Masjids (allmasjids.com)",
"url": "https://allmasjids.com"
}
}
One Masjid
GET/masjids/{slug}
- slugin the path
- The masjid’s slug, from /masjids.
Sample Answer
{
"data": {
"slug": "riverside-masjid",
"name": "Riverside Masjid",
"address": "12 River Street, Hillford, HF1 2AB",
"town": "Hillford",
"postcode": "HF1 2AB",
"latitude": 53.7957,
"longitude": -1.5492,
"distance_km": null,
"timetable": {
"source": "committee"
},
"page_url": "https://allmasjids.com/masjid/riverside-masjid",
"timezone": "Europe/London",
"published_at": "2026-10-30T18:04:11+00:00"
},
"attribution": {
"text": "Prayer times from All Masjids (allmasjids.com)",
"url": "https://allmasjids.com/masjid/riverside-masjid"
}
}
Daily Times
GET/masjids/{slug}/times
Today to six days on unless from/to are given. At most 366 days, from the start of the month 12 months back to 13 months ahead.
- slugin the path
- The masjid’s slug, from /masjids.
- fromoptional
- First date, YYYY-MM-DD. Default today, in the masjid’s timezone.
- tooptional
- Last date, YYYY-MM-DD. Default six days after from.
Sample Answer
{
"data": [
{
"date": "2026-11-06",
"weekday": "Friday",
"begins": {
"fajr": "05:41",
"sunrise": "07:12",
"dhuhr": "11:56",
"asr": "14:08",
"maghrib": "16:30",
"isha": "17:58"
},
"jamaat": {
"fajr": "06:15",
"dhuhr": "12:45",
"asr": "14:30",
"maghrib": "16:35",
"isha": "19:30"
},
"jumuah": [
"12:45",
"13:30"
],
"calculated": false
}
],
"meta": {
"masjid": "riverside-masjid",
"timezone": "Europe/London",
"source": "committee",
"from": "2026-11-06",
"to": "2026-11-06"
},
"attribution": {
"text": "Prayer times from All Masjids (allmasjids.com)",
"url": "https://allmasjids.com/masjid/riverside-masjid"
}
}
A Month as CSV
GET/masjids/{slug}/month.csv
UTF-8 with a byte-order mark, one row a day: Date, Day, Fajr, Fajr Jamaat, Sunrise, Dhuhr, Dhuhr Jamaat, Asr, Asr Jamaat, Maghrib, Maghrib Jamaat, Isha, Isha Jamaat, Jumuah (space-separated), Calculated (yes or empty).
- slugin the path
- The masjid’s slug, from /masjids.
- monthoptional
- YYYY-MM. Default this month.
Sample Answer
Date,Day,Fajr,Fajr Jamaat,Sunrise,Dhuhr,Dhuhr Jamaat,Asr,Asr Jamaat,Maghrib,Maghrib Jamaat,Isha,Isha Jamaat,Jumuah,Calculated
2026-11-06,Friday,05:41,06:15,07:12,11:56,12:45,14:08,14:30,16:30,16:35,17:58,19:30,12:45 13:30,
Calendar Feed
GET/masjids/{slug}/calendar.ics
Each jamaat (and Jumu’ah on Fridays, in place of Dhuhr) of the next 60 days as a 10-minute event. Calendar apps can’t send headers, so subscribe with ?key= in the address; the feed asks to be refreshed hourly.
- slugin the path
- The masjid’s slug, from /masjids.
Widget Times (No Key)
GET/widget/{slug}
No key needed; 120 requests a minute per address. Used by https://allmasjids.com/widget.js.
- slugin the path
- The masjid’s slug, from /masjids.
Sample Answer
{
"data": [
{
"date": "2026-11-06",
"weekday": "Friday",
"begins": {
"fajr": "05:41",
"sunrise": "07:12",
"dhuhr": "11:56",
"asr": "14:08",
"maghrib": "16:30",
"isha": "17:58"
},
"jamaat": {
"fajr": "06:15",
"dhuhr": "12:45",
"asr": "14:30",
"maghrib": "16:35",
"isha": "19:30"
},
"jumuah": [
"12:45",
"13:30"
],
"calculated": false
}
],
"meta": {
"masjid": "Riverside Masjid",
"slug": "riverside-masjid",
"timezone": "Europe/London",
"source": "committee",
"page_url": "https://allmasjids.com/masjid/riverside-masjid"
},
"attribution": {
"text": "Prayer times from All Masjids (allmasjids.com)",
"url": "https://allmasjids.com/masjid/riverside-masjid"
}
}