GET /masjids
Find masjids by name, place or distance no key needed
Words are matched against each masjid's name, city, state and ZIP code, in any order. A point (lat and lng) orders the results nearest first, with the distance in kilometers; a point alone finds the nearest masjids within 250 km. The point is rounded to two decimals (about a kilometer) before it is used.
| Name | Where | What it is |
|---|---|---|
q | optional | Words to look for: a name, a city, a state or a ZIP code. At least two letters unless you give a point. string |
lat | optional | Latitude of the point to search near. Give it with lng. number |
lng | optional | Longitude of the point to search near. Give it with lat. number |
limit | optional | How many masjids to answer, 1 to 50. integer |
curl "https://muslim.blue/wp-json/blue/v1/public/masjids?q=columbia%20sc"{
"q": "columbia sc",
"near": null,
"masjids": [
{
"slug": "example-masjid",
"name": "Example Masjid",
"kind": "masjid",
"city": "Columbia",
"region": "SC",
"country": "US",
"listed": false,
"km": null,
"brand": {
"color": "#1b4f9c",
"logo": null,
"photo": null
}
},
{
"slug": "example-listed-masjid",
"name": "Example Listed Masjid",
"kind": "masjid",
"city": "Columbia",
"region": "SC",
"country": "US",
"listed": true,
"km": null,
"brand": {
"color": null,
"logo": null,
"photo": null
}
}
]
}