> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# QueryMembers

# Package: memberManagement

# Namespace: Members

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/members/query-members?apiView=SDK.md

## Permission Scopes:
Read Members: SCOPE.DC-MEMBERS.READ-MEMBERS

## Introduction

Retrieves a list of up to 100 members, given the specified filters, fieldsets, sorting, and paging.

To learn about working with _Query_ methods, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md),
[Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging.md),
and [Field Projection](https://dev.wix.com/docs/rest/articles/getting-started/field-projection.md).

---

## REST API

### Schema

```
 Method: queryMembers
 Description: Retrieves a list of up to 100 members, given the specified filters, fieldsets, sorting, and paging.  To learn about working with _Query_ methods, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/rest/articles/getting-started/field-projection.md).
 URL: https://www.wixapis.com/members/v1/members/query
 Method: POST
 Method parameters:
   param name: fieldsets | type: array<fieldsets> | description: Predefined sets of fields to return.  Default: `"PUBLIC"`.  | validation: maxItems 3
                 - enum:
                 -     PUBLIC: Includes `id`, `contactId`, `createdDate`, `updatedDate` and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
                 -     EXTENDED: Includes `id`, `loginEmail`, `status`, `contactId`, `createdDate`, `updatedDate`, `privacyStatus`, `activityStatus` and the `profile` object.
                 -     FULL: Includes all fields.
   param name: query | type: Query    
        - name: filter | type: Value | description: Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md) for more details.  
           - ONE-OF: 
              - name: nullValue | type:  | description:   
              - name: numberValue | type: number | description:   
              - name: stringValue | type: string | description:   
              - name: boolValue | type: boolean | description:   
              - name: structValue | type: object | description:   
              - name: listValue | type: ListValue | description:   
                 - name: values | type: array<Value> | description:   
        - name: paging | type: Paging | description: Limit number of results  
           - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, format int32
           - name: offset | type: integer | description: Number of items to skip in the current sort order.  | validation: minimum 0, format int32
        - name: sorting | type: array<Sorting> | description: Sort the results  
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
           - name: origin | type: AddressLocation | description: Origin point for geo-distance sorting on a GEO field results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).  
              - name: latitude | type: number | description: Address latitude.  | validation: format double
              - name: longitude | type: number | description: Address longitude.  | validation: format double
   param name: search | type: Search | description: Free text to match in searchable fields  
        - name: expression | type: string | description: Search term or expression.  | validation: minLength 1, maxLength 100
        - name: fields | type: array<string> | description: Currently supported fields for search:  - `loginEmail` - `contact.firstName` - `contact.lastName` - `profile.title` - `profile.nickname` - `profile.slug`  Default: `profile.nickname`.  | validation: maxItems 4
 Query fields:
   - field: id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: profile.nickname | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: profile.slug | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: contactId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: contact.firstName | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: contact.lastName | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: privacyStatus | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: loginEmail | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: status | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
 Return type: QueryMembersResponse
  - name: members | type: array<Member> | description: List of members that met the query filter criteria.  
     - name: id | type: string | description: Member GUID.  | read-only: true | validation: format GUID
     - name: loginEmail | type: string | description: Email used by a member to log in to the site.  | validation: format EMAIL, immutable
     - name: loginEmailVerified | type: boolean | description: Whether the email used by a member has been verified.  | read-only: true 
     - name: status | type: Status | description: Member site access status.  | read-only: true 
         - enum:
         -     UNKNOWN: Insufficient permissions to get the status.
         -     PENDING: Member is created and is waiting for approval by a Wix user.
         -     APPROVED: Member can log in to the site.
         -     BLOCKED: Member is blocked and can't log in to the site.
         -     OFFLINE: Member is a [guest author](https://support.wix.com/en/article/wix-blog-adding-managed-writers-to-your-blog) for the site blog and can't log in to the site.
     - name: contactId | type: string | description: Contact GUID.  | read-only: true | validation: format GUID
     - name: contact | type: Contact | description: Member's contact information. Contact information is stored in the [Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).  The full set of contact data can be accessed and managed with the [Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction.md).  
        - name: firstName | type: string | description: Contact's first name.  
        - name: lastName | type: string | description: Contact's last name.  
        - name: phones | type: array<string> | description: List of phone numbers.  
        - name: emails | type: array<string> | description: List of email addresses.  | validation: format EMAIL, immutable
        - name: addresses | type: array<Address> | description: List of street addresses.  
           - ONE-OF: 
              - name: streetAddress | type: StreetAddress | description: Street address object, with number and name in separate fields.  
                 - name: number | type: string | description: Street number.  | validation: maxLength 100
                 - name: name | type: string | description: Street name.  | validation: maxLength 200
              - name: addressLine | type: string | description: Main address line, usually street and number, as free text.  | validation: maxLength 200
           - name: id | type: string | description: Street address GUID.  | validation: format GUID, immutable
           - name: addressLine2 | type: string | description: Free text providing more detailed address information, such as apartment, suite, or floor.  
           - name: city | type: string | description: City name.  
           - name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.  
           - name: country | type: string | description: 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.  
           - name: postalCode | type: string | description: Postal code.  
        - name: birthdate | type: string | description: Contact's birthdate, formatted as `"YYYY-MM-DD"`.  Example: `"2020-03-15"` for March 15, 2020.  | validation: maxLength 100
        - name: company | type: string | description: Contact's company name.  | validation: maxLength 100
        - name: jobTitle | type: string | description: Contact's job title.  | validation: maxLength 100
        - name: customFields | type: Map<string,CustomField> | description: Custom fields, where each key is the field key, and each value is the field's value for the member.  | validation: format map
           - name: name | type: string | description: Custom field name.  
           - name: value | type: Value | description: Custom field value.  
              - ONE-OF: 
                 - name: nullValue | type:  | description:   
                 - name: numberValue | type: number | description:   
                 - name: stringValue | type: string | description:   
                 - name: boolValue | type: boolean | description:   
                 - name: structValue | type: object | description:   
                 - name: listValue | type: ListValue | description:   
                    - name: values | type: array<Value> | description:   
     - name: profile | type: Profile | description: Profile display details.  
        - name: nickname | type: string | description: Name that identifies the member to other members. Displayed on the member's profile page and interactions in the forum or blog.  
        - name: slug | type: string | description: Slug that determines the member's profile page URL.  | read-only: true 
        - name: photo | type: Image | description: Member's profile photo.  
           - name: id | type: string | description: Wix Media image GUID, set when the member selects an image from Wix Media.  
           - name: url | type: string | description: Image URL.  
           - name: height | type: integer | description: Original image width.  
           - name: width | type: integer | description: Original image height.  
           - name: offsetX | type: integer | description: X-axis offset.  Default: `0`.  | validation: format int32
           - name: offsetY | type: integer | description: Y-axis offset.  Default: `0`.  | validation: format int32
        - name: cover | type: Image | description: Member's cover photo, used as a background picture in a member's profile page.  Cover positioning can be altered with `cover.offsetX` and `cover.offsetY`. When left empty, the values default to `0`.  
        - name: title | type: string | description: Member title.  
     - name: privacyStatus | type: Status | description: Member privacy status.  
         - enum:
         -     UNKNOWN: Insufficient permissions to get the status.
         -     PRIVATE: Member is hidden from site visitors and other site members. Member is returned only to Wix users.
         -     PUBLIC: Member is visible to everyone.
     - name: activityStatus | type: Status | description: Member activity status.  | read-only: true 
         - enum:
         -     UNKNOWN: Insufficient permissions to get the status.
         -     ACTIVE: Member can write forum posts and blog comments.
         -     MUTED: Member can't write forum posts or blog comments.
     - name: createdDate | type: string | description: Date and time when the member was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time when the member was updated.  | read-only: true | validation: format date-time
     - name: lastLoginDate | type: string | description: Date and time when the member last logged in to the site.  | read-only: true | validation: format date-time
  - name: metadata | type: PagingMetadata | description: Metadata for the paginated results.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  


```

### Examples

### Query members
Retrieving members with privacy status "PUBLIC"

```curl
curl -X POST \
  https://www.wixapis.com/members/v1/members/query \
  -H 'Authorization: <AUTH>'
  -d '{
        "query": {
            "filter": {
                "privacyStatus": "PUBLIC"
            }
        }
    }'
```

### Query members
Retrieving members with search expression, privacy status filter and provided EXTENDED fieldset

```curl
curl -X POST \
  https://www.wixapis.com/members/v1/members/query \
  -H 'Authorization: <AUTH>'
  -d '{
        "fieldsets": ["EXTENDED"],
        "search": {
            "expression": "John"
        },
        "query": {
            "filter": {
                "privacyStatus": "PUBLIC"
            }
        }
    }'
```

### Query members
Retrieving members with search expression and provided EXTENDED fieldset

```curl
curl -X POST \
  https://www.wixapis.com/members/v1/members/query \
  -H 'Authorization: <AUTH>'
  -d '{
        "fieldsets": ["EXTENDED"],
        "search": {
            "expression": "John"
        }
    }'
```

### Query members
Retrieving members with ID and provided EXTENDED fieldset

```curl
curl -X POST \
  https://www.wixapis.com/members/v1/members/query \
  -H 'Authorization: <AUTH>'
  -d '{
        "fieldsets": ["EXTENDED"],
        "query": {
            "filter": {
                "id": "e62e3011-55cf-4de3-a497-e097b52d86b7"
            }
        }
    }'
```

### Query members
Retrieving members with ID and provided FULL fieldset

```curl
curl -X POST \
  https://www.wixapis.com/members/v1/members/query \
  -H 'Authorization: <AUTH>'
  -d '{
        "fieldsets": ["FULL"],
        "query": {
            "filter": {
                "id": "e62e3011-55cf-4de3-a497-e097b52d86b7"
            }
        }
    }'
```

### Query members
Retrieving members with ID

```curl
curl -X POST \
  https://www.wixapis.com/members/v1/members/query \
  -H 'Authorization: <AUTH>'
  -d '{
        "query": {
            "filter": {
                "id": "e62e3011-55cf-4de3-a497-e097b52d86b7"
            }
        }
    }'
```

### Query members
Retrieving members with profile nickname

```curl
curl -X POST \
  https://www.wixapis.com/members/v1/members/query \
  -H 'Authorization: <AUTH>'
  -d '{
        "query": {
            "filter": {
                "profile.nickname": "John Doe"
            }
        }
    }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.members.members.queryMembers(query, options)
 Description: Retrieves a list of up to 100 members, given the specified filters, fieldsets, sorting, and paging.  To learn about working with _Query_ methods, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/rest/articles/getting-started/field-projection.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  query
 Method parameters: 
   param name: query | type: MemberQuery   | required: true 
        - name: filter | type: any<Value> | description: Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md) for more details.  
           - ONE-OF: 
              - name: nullValue | type:  | description:   
              - name: numberValue | type: number | description:   
              - name: stringValue | type: string | description:   
              - name: boolValue | type: boolean | description:   
              - name: structValue | type: object | description:   
              - name: listValue | type: ListValue | description:   
                 - name: values | type: array<Value> | description:   
        - name: paging | type: Paging | description: Limit number of results  
           - name: limit | type: integer | description: Number of items to load.  | validation: minimum 0, format int32
           - name: offset | type: integer | description: Number of items to skip in the current sort order.  | validation: minimum 0, format int32
        - name: sorting | type: array<Sorting> | description: Sort the results  
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
           - name: origin | type: AddressLocation | description: Origin point for geo-distance sorting on a GEO field results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).  
              - name: latitude | type: number | description: Address latitude.  
              - name: longitude | type: number | description: Address longitude.  
   param name: options | type: QueryMembersOptions  none  
        - name: fieldsets | type: array<Set> | description: Predefined sets of fields to return.  Default: `"PUBLIC"`.  | validation: maxItems 3
             - enum:
             -     PUBLIC: Includes `id`, `contactId`, `createdDate`, `updatedDate` and the `profile` object. `status`, `privacyStatus`, and `activityStatus` are returned as `UNKNOWN`.
             -     EXTENDED: Includes `id`, `loginEmail`, `status`, `contactId`, `createdDate`, `updatedDate`, `privacyStatus`, `activityStatus` and the `profile` object.
             -     FULL: Includes all fields.
        - name: search | type: Search | description: Plain text search.  
           - name: expression | type: string | description: Search term or expression.  | validation: minLength 1, maxLength 100
           - name: fields | type: array<string> | description: Currently supported fields for search:  - `loginEmail` - `contact.firstName` - `contact.lastName` - `profile.title` - `profile.nickname` - `profile.slug`  Default: `profile.nickname`.  | validation: maxItems 4
 Query fields:
   - field: _id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: profile.nickname | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: profile.slug | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: contactId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: contact.firstName | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: contact.lastName | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: privacyStatus | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
   - field: loginEmail | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: none | aggregatable: undefined | searchable: undefined
   - field: status | operators: $eq, $ne, $in, $exists | sort: none | aggregatable: undefined | searchable: undefined
 Return type: PROMISE<QueryMembersResponse>
  - name: members | type: array<Member> | description: List of members that met the query filter criteria.  
     - name: _id | type: string | description: Member GUID.  | read-only: true | validation: format GUID
     - name: loginEmail | type: string | description: Email used by a member to log in to the site.  | validation: format EMAIL, immutable
     - name: loginEmailVerified | type: boolean | description: Whether the email used by a member has been verified.  | read-only: true 
     - name: status | type: Status | description: Member site access status.  | read-only: true 
         - enum:
         -     UNKNOWN: Insufficient permissions to get the status.
         -     PENDING: Member is created and is waiting for approval by a Wix user.
         -     APPROVED: Member can log in to the site.
         -     BLOCKED: Member is blocked and can't log in to the site.
         -     OFFLINE: Member is a [guest author](https://support.wix.com/en/article/wix-blog-adding-managed-writers-to-your-blog) for the site blog and can't log in to the site.
     - name: contactId | type: string | description: Contact GUID.  | read-only: true | validation: format GUID
     - name: contact | type: Contact | description: Member's contact information. Contact information is stored in the [Contact List](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcontacts).  The full set of contact data can be accessed and managed with the [Contacts API](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/introduction.md).  
        - name: firstName | type: string | description: Contact's first name.  
        - name: lastName | type: string | description: Contact's last name.  
        - name: phones | type: array<string> | description: List of phone numbers.  
        - name: emails | type: array<string> | description: List of email addresses.  | validation: format EMAIL, immutable
        - name: addresses | type: array<Address> | description: List of street addresses.  
           - ONE-OF: 
              - name: streetAddress | type: StreetAddress | description: Street address object, with number and name in separate fields.  
                 - name: number | type: string | description: Street number.  | validation: maxLength 100
                 - name: name | type: string | description: Street name.  | validation: maxLength 200
              - name: addressLine | type: string | description: Main address line, usually street and number, as free text.  | validation: maxLength 200
           - name: _id | type: string | description: Street address GUID.  | validation: format GUID, immutable
           - name: addressLine2 | type: string | description: Free text providing more detailed address information, such as apartment, suite, or floor.  
           - name: city | type: string | description: City name.  
           - name: subdivision | type: string | description: Code for a subdivision (such as state, prefecture, or province) in an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.  
           - name: country | type: string | description: 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.  
           - name: postalCode | type: string | description: Postal code.  
        - name: birthdate | type: string | description: Contact's birthdate, formatted as `"YYYY-MM-DD"`.  Example: `"2020-03-15"` for March 15, 2020.  | validation: maxLength 100
        - name: company | type: string | description: Contact's company name.  | validation: maxLength 100
        - name: jobTitle | type: string | description: Contact's job title.  | validation: maxLength 100
        - name: customFields | type: Map<string,CustomField> | description: Custom fields, where each key is the field key, and each value is the field's value for the member.  | validation: format map
           - name: name | type: string | description: Custom field name.  
           - name: value | type: any<Value> | description: Custom field value.  
              - ONE-OF: 
                 - name: nullValue | type:  | description:   
                 - name: numberValue | type: number | description:   
                 - name: stringValue | type: string | description:   
                 - name: boolValue | type: boolean | description:   
                 - name: structValue | type: object | description:   
                 - name: listValue | type: ListValue | description:   
                    - name: values | type: array<Value> | description:   
     - name: profile | type: Profile | description: Profile display details.  
        - name: nickname | type: string | description: Name that identifies the member to other members. Displayed on the member's profile page and interactions in the forum or blog.  
        - name: slug | type: string | description: Slug that determines the member's profile page URL.  | read-only: true 
        - name: photo | type: Image | description: Member's profile photo.  
           - name: _id | type: string | description: Wix Media image GUID, set when the member selects an image from Wix Media.  
           - name: url | type: string | description: Image URL.  
           - name: height | type: integer | description: Original image width.  
           - name: width | type: integer | description: Original image height.  
           - name: offsetX | type: integer | description: X-axis offset.  Default: `0`.  | validation: format int32
           - name: offsetY | type: integer | description: Y-axis offset.  Default: `0`.  | validation: format int32
        - name: cover | type: Image | description: Member's cover photo, used as a background picture in a member's profile page.  Cover positioning can be altered with `cover.offsetX` and `cover.offsetY`. When left empty, the values default to `0`.  
        - name: title | type: string | description: Member title.  
     - name: privacyStatus | type: Status | description: Member privacy status.  
         - enum:
         -     UNKNOWN: Insufficient permissions to get the status.
         -     PRIVATE: Member is hidden from site visitors and other site members. Member is returned only to Wix users.
         -     PUBLIC: Member is visible to everyone.
     - name: activityStatus | type: Status | description: Member activity status.  | read-only: true 
         - enum:
         -     UNKNOWN: Insufficient permissions to get the status.
         -     ACTIVE: Member can write forum posts and blog comments.
         -     MUTED: Member can't write forum posts or blog comments.
     - name: _createdDate | type: Date | description: Date and time when the member was created.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time when the member was updated.  | read-only: true 
     - name: lastLoginDate | type: Date | description: Date and time when the member last logged in to the site.  | read-only: true 
  - name: metadata | type: PagingMetadata | description: Metadata for the paginated results.  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  


```

### Examples

### Query member's with all option parameters
```javascript
import { members } from '@wix/members';

export async function myQueryMembersFunction() {
  try {
    const siteMembers = await members
      .queryMembers({
        fieldsets: ['EXTENDED'],
        search: {
          expression: 'John Doe',
          fields: [
            'loginEmail',
            'contact.firstName',
            'contact.lastName',
            'profile.nickname',
          ],
        },
      })
      .find();
    console.log('Retrieved members:', siteMembers);

    return siteMembers;
  } catch (error) {
    console.error(error);
    // Handle the error
  }
}

/* Promise resolves to:
 * {
 *   "_items": [
 *     {
 *       "loginEmail": "newmember1@example.com",
 *       "loginEmailVerified": false,
 *       "status": "APPROVED",
 *       "contactId": "bbfa3373-9bc0-4479-9766-40e9ff4b6661",
 *       "contact": {
 *         "contactId": "bbfa3373-9bc0-4479-9766-40e9ff4b6661",
 *         "phones": [],
 *         "emails": [],
 *         "addresses": [],
 *         "customFields": {}
 *       },
 *       "profile": {
 *         "nickname": "John Doe",
 *         "slug": "newmember1"
 *       },
 *       "privacyStatus": "PUBLIC",
 *       "activityStatus": "ACTIVE",
 *       "_id": "bbfa3373-9bc0-4479-9766-40e9ff4b6661",
 *       "_createdDate": "2024-03-01T13:12:43.000Z",
 *       "_updatedDate": "2024-03-01T13:12:43.459Z"
 *     }
 *   ],
 *   "_originQuery": {
 *     "filterTree": {
 *       "$and": []
 *     },
 *     "invalidArguments": [],
 *     "encoder": {},
 *     "transformationPaths": {},
 *     "sort": [],
 *     "paging": {},
 *     "pagingMethod": "OFFSET",
 *     "builderOptions": {
 *       "cursorWithEmptyFilterAndSort": true
 *     }
 *   },
 *   "_limit": 50,
 *   "_totalCount": 1,
 *   "_offset": 0,
 *   "_tooManyToCount": false
 * }
 */
```

### queryMembers (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { members } from '@wix/members';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { members },
  // Include the auth strategy and host as relevant
});


async function queryMembers(query,options) {
  const response = await myWixClient.members.queryMembers(query,options);
};
```

---