Masjid Directory
Query verified masjids, Islamic centers, and Muslim businesses from the Ummat
Pro directory. Requires the masjid:read scope.
List masjids
query ListMasjids($city: String!) {
up_masjids(
where: { city: { _eq: $city }, is_verified: { _eq: true } }
order_by: { name: asc }
limit: 20
) {
id
name
address
city
state
country
latitude
longitude
phone
website
entity {
id
type
verified_at
}
}
} Get a single masjid
query GetMasjid($id: uuid!) {
up_masjids_by_pk(id: $id) {
id
name
address
city
state
zip
phone
email
website
about
capacity
facilities
languages
imam_name
entity {
id
type
social_links
}
}
} Nearby search
Use the nearby_masjids function to search by geographic radius
(PostGIS-powered):
query NearbyMasjids($lat: float8!, $lng: float8!, $radius_km: float8!) {
nearby_masjids(
args: { lat: $lat, lng: $lng, radius_km: $radius_km }
limit: 10
) {
id
name
distance_km
city
state
}
} Fields reference
| Field | Type | Description |
|---|---|---|
id | uuid | Unique identifier |
name | text | Masjid name |
address | text | Street address |
city | text | City |
state | text | State or province |
country | text | ISO 3166-1 alpha-2 |
latitude | float8 | WGS 84 latitude |
longitude | float8 | WGS 84 longitude |
is_verified | boolean | Ummat-verified listing |
facilities | text[] | Array of facility tags (e.g. wudu, sisters_section) |
languages | text[] | Languages spoken at this masjid |