Browse All Communities
Query communities with advanced filtering and sorting options
Search Communities
Find specific communities using keyword-based search
Membership Filtering
Filter by user membership status and community access
Category Organization
Organize discovery by community categories and topics
Filter Options
Membership Status Filtering
Control community discovery based on the current user’s membership status:Filter Option | Description | Use Case |
---|---|---|
ALL | Shows all available communities | General browsing and discovery |
MEMBER | Shows only communities the user has joined | Managing user’s communities |
NOT_MEMBER | Shows communities the user hasn’t joined | Finding new communities to join |
Sorting Options
Organize community results to match your app’s discovery flow:Sort Option | Description | Best For |
---|---|---|
DISPLAY_NAME | Alphabetical order by community name | Directory-style browsing |
LAST_CREATED | Newest communities first | Discovering fresh content |
FIRST_CREATED | Oldest communities first | Established community discovery |
Category Filtering
Communities can be organized by categories to help users find relevant content faster. When acategoryId
is specified, results are filtered to only include communities belonging to that category.
Combine multiple filters for precise discovery experiences. For example, search for “gaming” communities that the user is not yet a member of, sorted by creation date.
Query Communities
ThegetCommunities()
method enables users to discover and explore communities with flexible filtering and sorting options. Perfect for building community browsing experiences, onboarding flows, and helping users find relevant communities within your app.
Query results are returned as Live Collections that automatically update when communities are added, modified, or removed, ensuring your app stays current with community changes.
Parameters
Parameter | Type | Description |
---|---|---|
filter | Enum | Filter by membership status: .all , .member , .notMember (default: .all ) |
sortBy | Enum | Sort order: .displayName , .lastCreated , .firstCreated (default: .lastCreated ) |
categoryId | String | Filter communities by specific category ID |
includeDeleted | Boolean | Include deleted communities in results (default: false ) |
The
displayName
filter parameter is deprecated. Use the search functionality with keywords for name-based filtering instead.Search Communities
ThesearchCommunities()
method provides keyword-based community search with the same filtering and sorting capabilities as general queries. Ideal for implementing search bars and helping users find specific communities by name or related terms.
Parameters
Parameter | Type | Description |
---|---|---|
keyword | String | Search term to match against community display names |
filter | Enum | Filter by membership status: .all , .member , .notMember (default: .all ) |
sortBy | Enum | Sort order: .displayName , .lastCreated , .firstCreated (default: .lastCreated ) |
categoryId | String | Filter search results by specific category ID |
includeDeleted | Boolean | Include deleted communities in search results (default: false ) |
If no keyword is provided, the search will return all communities sorted by the specified criteria, similar to the general query functionality.