Skip to main content

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
iduuidUnique identifier
nametextMasjid name
addresstextStreet address
citytextCity
statetextState or province
countrytextISO 3166-1 alpha-2
latitudefloat8WGS 84 latitude
longitudefloat8WGS 84 longitude
is_verifiedbooleanUmmat-verified listing
facilitiestext[]Array of facility tags (e.g. wudu, sisters_section)
languagestext[]Languages spoken at this masjid