Community Member Search
This documentation describes using the member filters endpoint to search for community members.
API Endpoint
POST /api/headless/v1/search/community_membersRequest Parameters
filters
Array
No
Array of filter objects
search_text
String
No
Free text search across member profiles
per_page
Integer
No
Number of results per page
search_after
Array
No
Cursor for pagination beyond 10K records
order
String
No
Sort order: "oldest", "alphabetical", "latest", "role"
status
String
No
Filter by status: "active" or "inactive"
exclude_empty_profiles
Boolean
No
When true, excludes profiles with no data
exclude_empty_name
Boolean
No
When true, excludes profiles with no name
Building Filters
Each filter in the filters array follows this structure:
{
"key": "string", // Required
"filter_type": "string", // Optional
"profile_field_type": "string", // Optional, for custom fields
"profile_field_id": "string", // Optional, for custom fields
"value": "string", // Optional
"gte": "integer", // Optional, for range queries
"lte": "integer" // Optional, for range queries
}Available Filter Types
"is"- Exact match"is_not"- Exclude exact match"contains"- Partial match"does_not_contain"- Exclude partial match"gt"- Greater than"lt"- Less than"eq"- Equals to
Filter Examples
Basic Profile Fields
Custom Profile Fields
Activity Score Range
Cursor-based Pagination
For datasets larger than 10K records, use cursor-based pagination with search_after.
Initial Request
Response
Next Page Request
Combining Filters with Pagination
Best Practices
Filter Combinations
Combine multiple filters to create precise queries
Use text filters (
contains) for broader matchesUse exact matches (
is) for specific fields like email
Pagination
Use
search_afterfor datasets larger than 10K recordsKeep track of the
next_search_aftervalue for subsequent requestsStart a new query without
search_afterif filters change
Performance
Keep filter combinations reasonable
Use
search_textfor general searches across all fieldsSpecify exact fields when possible for better performance
Common Issues
Invalid Search After
If
search_afterbecomes invalid, start a new query without itAlways use the most recent
next_search_aftervalue
No More Results
When
next_search_afteris not in the response, you've reached the endStart a new query if you need to change filters
Filter Combinations
Some filter types may not be available for all fields
Check the field type before applying specific filters
Last updated

