> 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

# SearchAppInstallation

# Package: appInstallations

# Namespace: AppInstallations

# Method link: https://dev.wix.com/docs/api-reference/app-management/app-installations/search-app-installation.md

## Permission Scopes:
Read App Installations: SCOPE.APP_MARKET.READ_APP_INSTALLATIONS

## Introduction

Retrieves a list of up to 100 app installations that match a free-text search expression.

Search matches against the site URL, business name, business email, site owner email, instance ID, review title, and review description.
Pass supported values to `fields` in the request to include those fields in the response.

Search App Installation runs with these defaults, which you can override:
- `paging.limit` is `50`

The results include installations across all the apps in your developer account.

To search a single field only, use [Query App Installations](https://dev.wix.com/docs/api-reference/app-management/app-installations/query-app-installations.md) with the appropriate filter.

---

## REST API

### Schema

```
 Method: searchAppInstallation
 Description: Retrieves a list of up to 100 app installations that match a free-text search expression.  Search matches against the site URL, business name, business email, site owner email, instance GUID, review title, and review description. Pass supported values to `fields` in the request to include those fields in the response.  Search App Installation runs with these defaults, which you can override: - `paging.limit` is `50`  The results include installations across all the apps in your developer account.  To search a single field only, use [Query App Installations](https://dev.wix.com/docs/api-reference/app-management/app-installations/query-app-installations.md) with the appropriate filter.
 URL: https://www.wixapis.com/app/installations/v1/app-installation/search
 Method: POST
 Method parameters:
   param name: fields | type: array<fields> | description: Additional fields to include in the response. `site_info.owner_email` no longer needs requesting.  | validation: maxItems 1
                 - enum:
                 -     OWNER_EMAIL: No longer needed: `siteInfo.ownerEmail` is returned without requesting it.  Note: `siteInfo.ownerEmail` is returned only while the `returnOwnerEmail` toggle is on.
   param name: search | type: CursorSearch    
     - name: cursorPaging | type: CursorPaging | description: Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`, `filter`, `sort`, or `search` can't be specified.  Learn more about [cursor paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md#cursor-paging).  
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object for narrowing search results. For example, to return only upgraded app installations: `"filter": {"planInfo.planStatus": "UPGRADED"}`.  For supported filters, see the table above.  
        - name: sort | type: array<Sorting> | description: Array of sort objects specifying result order.  For example, to sort by creation date in descending order: [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]  | validation: maxItems 10
           - 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: aggregations | type: array<Aggregation> | description: Logical groupings of data into facets, with summaries for each facet. For example, use aggregations to allow site visitors to narrow down their search results by selecting specific categories, such as site info or plan info.  | validation: maxItems 10
           - ONE-OF: 
              - name: value | type: ValueAggregation | description: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.  
                 - ONE-OF: 
                    - name: includeOptions | type: IncludeMissingValuesOptions | description: Options for including missing values in the aggregation results.  
                       - name: addToBucket | type: string | description: Custom bucket name for missing values.  Default values: - string: `N/A` - int: `0` - bool: `false`  | validation: maxLength 20
                 - name: sortType | type: SortType | description: Sort type.  
                         - enum:
                         -     COUNT: Number of matches in the results.
                         -     VALUE: Alphabetically by the field value.
                 - name: sortDirection | type: SortDirection | description: Sort direction.  
                         - enum:
                         -     DESC: Descending order.
                         -     ASC: Ascending order.
                 - name: limit | type: integer | description: Number of aggregations to return.  Min: `1`  Max: `250`  Default: `10`  | validation: format int32
                 - name: missingValues | type: MissingValues | description: Whether to include missing values in the aggregation results.  Default: `EXCLUDE`  
                         - enum:
                         -     EXCLUDE: Exclude missing values from the aggregation results.
                         -     INCLUDE: Include missing values from the aggregation results.
              - name: range | type: RangeAggregation | description: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.  
                 - name: buckets | type: array<RangeBucket> | description: List of range buckets defining the ranges for aggregation. During aggregation, each entity is placed in the first bucket where its value falls within the specified range bounds.  | validation: maxItems 50
                    - name: from | type: number | description: Inclusive lower bound of the range. Required if `to` isn't provided.  | validation: format double
                    - name: to | type: number | description: Exclusive upper bound of the range. Required if `from` isn't provided.  | validation: format double
              - name: scalar | type: ScalarAggregation | description: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.  
                 - name: type | type: ScalarType | description: Type of scalar aggregation.  
                         - enum:
                         -     COUNT_DISTINCT: Number of distinct values.
                         -     MIN: Minimum value.
                         -     MAX: Maximum value.
              - name: dateHistogram | type: DateHistogramAggregation | description: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.  
                 - name: interval | type: Interval | description: Interval for date histogram aggregation.  
                         - enum:
                         -     YEAR: Yearly interval.
                         -     MONTH: Monthly interval.
                         -     WEEK: Weekly interval.
                         -     DAY: Daily interval.
                         -     HOUR: Hourly interval.
                         -     MINUTE: Minute interval.
                         -     SECOND: Second interval.
              - name: nested | type: NestedAggregation | description: A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.  For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`.  
                 - name: nestedAggregations | type: array<NestedAggregationItem> | description: Flattened list of aggregations, where each next aggregation is nested within previous one.  | validation: minItems 2, maxItems 3
                    - ONE-OF: 
                       - name: value | type: ValueAggregation | description: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.  
                       - name: range | type: RangeAggregation | description: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.  
                       - name: scalar | type: ScalarAggregation | description: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.  
                       - name: dateHistogram | type: DateHistogramAggregation | description: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.  
                    - name: name | type: string | description: User-defined name of aggregation. Must be unique and will appear in aggregation results.  | validation: maxLength 100
                    - name: type | type: NestedAggregationType | description: Type of aggregation.  
                             - enum:
                             -     VALUE: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.
                             -     RANGE: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.
                             -     SCALAR: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.
                             -     DATE_HISTOGRAM: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.
                    - name: fieldPath | type: string | description: Path to the field to aggregate by in dot notation. For example `review.rating`.  | validation: maxLength 200
           - name: name | type: string | description: Unique, caller-defined aggregation name, returned in `aggregations.results`.  | validation: maxLength 100
           - name: type | type: AggregationType | description: Type of aggregation.  
                 - enum:
                 -     VALUE: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.
                 -     RANGE: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.
                 -     SCALAR: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.
                 -     DATE_HISTOGRAM: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.
                 -     NESTED: A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.  For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`.
           - name: fieldPath | type: string | description: Path to the field to aggregate by in dot notation. For example `review.rating`.  | validation: maxLength 200
        - name: search | type: SearchDetails | description: Free text to match in searchable fields.  
           - name: mode | type: Mode | description: Defines how separate search terms in `expression` are combined  
                 - enum:
                 -     OR: At least 1 of the search terms must be present.
                 -     AND: All search terms must be present.
           - name: expression | type: string | description: Search term or expression.  | validation: maxLength 100
           - name: fields | type: array<string> | description: Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, `siteInfo.businessCategory.primary`.  | validation: maxItems 20, maxLength 200
           - name: fuzzy | type: boolean | description: Whether to enable the search method to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions.  
        - name: timeZone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) or [ISO 8601 UTC offset format](https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC) for adjusting time fields in the specified filters and returned aggregation data. For example, `America/New_York`, `UTC`, or `+02:00`.  Default: Time zone specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties.md).  | validation: maxLength 50
 Searchable fields:
   - field: siteInfo.businessCategory.secondary | operators: $hasAll, $hasSome | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: createdDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: updatedDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: appId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: appVersion | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: firstInstallationDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: instanceId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: true
   - field: planInfo.billingCycle.cycleDuration.count | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.billingCycle.cycleDuration.unit | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.billingCycle.cycleType | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.endDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.freeTrialInfo.endDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.freeTrialInfo.status | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.planName | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.planStatus | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: review.id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: review.date | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: review.rating | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.accountId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.businessCategory.primary | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.businessEmail | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: false | searchable: true
   - field: siteInfo.businessName | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: true
   - field: siteInfo.countryCode | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.editorType | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.ownerEmail | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: false | searchable: true
   - field: siteInfo.premium | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.siteId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.siteUrl | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: true
   - field: status | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
 Return type: SearchAppInstallationResponse
  - name: appInstallations | type: array<AppInstallation> | description: Retrieved app installations.  
     - name: id | type: string | description: App installation GUID.  | read-only: true | validation: format GUID
     - name: instanceId | type: string | description: Unique identifier of the app instance on the site. Stable across uninstalls and reinstalls of the same app on the same site.  | read-only: true | validation: format GUID
     - name: createdDate | type: string | description: Date and time the app installation was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the app installation was last updated.  | read-only: true | validation: format date-time
     - name: revision | type: string | description: Revision number, which increments by 1 each time the app installation is updated.  | read-only: true | validation: format int64
     - name: firstInstallationDate | type: string | description: Date and time the app was first installed on the site. Preserved across uninstalls and reinstalls.  | validation: format date-time
     - name: siteInfo | type: SiteInfo | description: Information about the site the app is installed on.  
        - name: siteId | type: string | description: Site GUID.  | validation: format GUID
        - name: businessName | type: string | description: Business name displayed on the site.  | validation: maxLength 100
        - name: siteUrl | type: string | description: Public URL of the site.  | validation: format WEB_URL
        - name: businessEmail | type: string | description: Business email address configured on the site.  | validation: format EMAIL
        - name: countryCode | type: string | description: 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.  | validation: format COUNTRY
        - name: businessCategory | type: Categories | description: Business category the site belongs to.  
           - name: primary | type: string | description: Primary site category.  | validation: maxLength 100
           - name: secondary | type: array<string> | description: Secondary site category.  | validation: maxItems 50, maxLength 100
        - name: premium | type: boolean | description: Whether the site has an active Premium subscription.  
        - name: editorType | type: EditorType | description: Editor the site was created with.  
             - enum:
             -     EDITOR: Wix Editor.
             -     ADI: Wix ADI.
             -     EDITORX: Editor X.
             -     STUDIO: Wix Studio.
             -     HARMONY: Wix Harmony.
             -     VIBE: Wix Vibe.
             -     WIXEL: Wixel.
        - name: ownerEmail | type: string | description: Email address of the site owner. Written only for app versions permitted to read it, and returned only while the `returnOwnerEmail` toggle is on.  | validation: format EMAIL
        - name: accountId | type: string | description: GUID of the site owner's account.  | validation: format GUID
     - name: planInfo | type: PlanInfo | description: Information about the plan the site owner purchased for the app.  
        - name: planName | type: string | description: Name of the plan the site owner purchased for the app.  | validation: maxLength 100
        - name: billingCycle | type: Cycle | description: Billing cycle of the purchased plan.  
           - name: cycleType | type: CycleType | description: Type of the billing cycle.  + `"UNKNOWN_UNIT"`:  There is no information about the billing cycle. + `"ONE_TIME"`:  The customer pays for unlimited usage of the app with a single payment. + `"RECURRING"`: The customer pays for a subscription to the app on a recurring schedule.  
                 - enum: ONE_TIME, RECURRING
           - name: cycleDuration | type: Duration | description: Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`.  
              - name: unit | type: DurationUnit | description: Unit of the billing cycle.  
                     - enum:
                     -     MONTH: Month.
                     -     YEAR: Year.
              - name: count | type: integer | description: Count of units that make up the billing cycle.  | validation: minimum 0
        - name: planStatus | type: PlanStatus | description: Current status of the purchased plan.  
             - enum:
             -     UPGRADED: The site owner upgraded the app to a paid plan.
             -     CANCELED: The site owner upgraded the app to a paid plan and has since canceled it.
             -     AUTO_RENEW_OFF: The plan is still active, but auto-renewal is turned off.
        - name: freeTrialInfo | type: FreeTrialInfo | description: Free trial details for the purchased plan, if a free trial is or was active.  
           - name: status | type: FreeTrialStatus | description: Current free trial status.  
                 - enum:
                 -     IN_PROGRESS: The free trial is currently in progress.
                 -     ENDED: The free trial has ended.
           - name: endDate | type: string | description: Date and time the free trial ended.  Returned only after the free trial has ended.  | validation: format date-time
        - name: endDate | type: string | description: Date and time the plan expires.  Returned only when auto-renewal is turned off.  | validation: format date-time
     - name: appId | type: string | description: GUID of the installed app.  | read-only: true | validation: format GUID
     - name: appVersion | type: string | description: Major version of the installed app.  | validation: maxLength 6
     - name: status | type: Status | description: Current installation status of the app on the site.  
         - enum:
         -     INSTALLED: The app is currently installed on the site.
         -     UNINSTALLED: The app was installed on the site and has since been removed.
     - name: review | type: ReviewInfo | description: Information about the review the site owner left for the app, if any.  
        - name: id | type: string | description: Review GUID.  | validation: format GUID
        - name: date | type: string | description: Date and time the review was published.  | validation: format date-time
        - name: rating | type: integer | description: Rating the site owner left for the app, from 1 to 5.  | validation: format int32
        - name: title | type: string | description: Review title.  | validation: maxLength 100
        - name: description | type: string | description: Review body text.  | validation: maxLength 2500
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata, including the cursor used to retrieve the next page of results.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  
  - name: aggregationData | type: AggregationData | description: Aggregation data, returned when aggregations are requested.  
     - name: results | type: array<AggregationResults> | description: Array of aggregation results, each containing the aggregation metadata and its calculated values for the specified search criteria.  | validation: maxItems 10000
        - ONE-OF: 
           - name: values | type: ValueResults | description: Value aggregation results.  
              - name: results | type: array<ValueAggregationResult> | description: List of value aggregations.  | validation: maxItems 250
                 - name: value | type: string | description: Value of the field.  | validation: maxLength 100
                 - name: count | type: integer | description: Number of entities with this value.  
           - name: ranges | type: RangeResults | description: Range aggregation results.  
              - name: results | type: array<RangeAggregationResult> | description: Array of range aggregation results returned in the same order as requested, each containing range bounds and count of entities within that range.  | validation: maxItems 50
                 - name: from | type: number | description: Inclusive lower bound of the range.  | validation: format double
                 - name: to | type: number | description: Exclusive upper bound of the range.  | validation: format double
                 - name: count | type: integer | description: Number of entities in this range.  
           - name: scalar | type: ScalarResult | description: Scalar aggregation results.  
              - name: type | type: ScalarType | description: Type of scalar aggregation.  
                     - enum:
                     -     COUNT_DISTINCT: Number of distinct values.
                     -     MIN: Minimum value.
                     -     MAX: Maximum value.
              - name: value | type: number | description: Value of the scalar aggregation.  
           - name: groupedByValue | type: GroupByValueResults | description: Group by value aggregation results.  
              - name: results | type: array<NestedValueAggregationResult> | description: List of value aggregations.  | validation: maxItems 1000
                 - name: value | type: string | description: Value of the field.  | validation: maxLength 1000
                 - name: nestedResults | type: NestedAggregationResults | description: Nested aggregations.  
                    - ONE-OF: 
                       - name: values | type: ValueResults | description: Value aggregation results.  
                       - name: ranges | type: RangeResults | description: Range aggregation results.  
                       - name: scalar | type: ScalarResult | description: Scalar aggregation results.  
                    - name: name | type: string | description: User-defined name of aggregation, matches the one specified in the request.  | validation: maxLength 100
                    - name: type | type: AggregationType | description: Type of aggregation.  
                             - enum:
                             -     VALUE: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.
                             -     RANGE: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.
                             -     SCALAR: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.
                             -     DATE_HISTOGRAM: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.
                             -     NESTED: A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.  For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`.
                    - name: fieldPath | type: string | description: Path to the field to aggregate by in dot notation. For example `review.rating`.  | validation: maxLength 200
           - name: dateHistogram | type: DateHistogramResults | description: Date histogram aggregation results.  
              - name: results | type: array<DateHistogramResult> | description: Array of date histogram aggregation results, each containing a date bucket and its count.  | validation: maxItems 200
                 - name: value | type: string | description: Date in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601).  | validation: maxLength 100
                 - name: count | type: integer | description: Number of entities in the bucket.  
           - name: nested | type: NestedResults | description: Nested aggregation results.  
              - name: results | type: array<Results> | description: List of nested aggregations.  | validation: maxItems 1000
                 - name: results | type: Map<string,NestedResultValue> | description: List of nested aggregations.  | validation: format map
                    - ONE-OF: 
                       - name: value | type: ValueResult | description: Value aggregation result.  
                          - name: value | type: string | description: Value of the field.  | validation: maxLength 1000
                          - name: count | type: integer | description: Number of entities with this value.  | validation: format int32
                       - name: range | type: RangeResult | description: Range aggregation result.  
                          - name: from | type: number | description: Inclusive lower bound of the range.  | validation: format double
                          - name: to | type: number | description: Exclusive upper bound of the range.  | validation: format double
                          - name: count | type: integer | description: Number of entities in this range.  | validation: format int32
                       - name: scalar | type: ScalarResult | description: Scalar aggregation result.  
                          - name: value | type: number | description: Value of the scalar aggregation.  
                       - name: dateHistogram | type: ValueResult | description: Date histogram aggregation result.  
        - name: name | type: string | description: User-defined name of aggregation as derived from search request.  | validation: maxLength 100
        - name: type | type: AggregationType | description: Type of aggregation that must match the one from the search request.  
        - name: fieldPath | type: string | description: Path to the field to aggregate by in dot notation. For example `review.rating`.  | validation: maxLength 200


```

### Examples

### Search App Installation
Searches app installations by free-text expression across site URL, business name, business email, site owner email, instance ID, and review title and description.

```curl
curl -X POST \
  'https://www.wixapis.com/app/installations/v1/app-installation/search' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "search": {
      "search": {
        "expression": "example.wixsite.com"
      },
      "cursorPaging": {
        "limit": 50
      }
    }
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.appInstallations.appInstallations.searchAppInstallation(search, options)
 Description: Retrieves a list of up to 100 app installations that match a free-text search expression.  Search matches against the site URL, business name, business email, site owner email, instance GUID, review title, and review description. Pass supported values to `fields` in the request to include those fields in the response.  Search App Installation runs with these defaults, which you can override: - `paging.limit` is `50`  The results include installations across all the apps in your developer account.  To search a single field only, use [Query App Installations](https://dev.wix.com/docs/api-reference/app-management/app-installations/query-app-installations.md) with the appropriate filter.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  search
 Method parameters: 
   param name: search | type: CursorSearch   | required: true 
     - name: cursorPaging | type: CursorPaging | description: Cursor-based paging for result navigation. When requesting `cursor_paging.cursor`, `filter`, `sort`, or `search` can't be specified.  Learn more about [cursor paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md#cursor-paging).  
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object for narrowing search results. For example, to return only upgraded app installations: `"filter": {"planInfo.planStatus": "UPGRADED"}`.  For supported filters, see the table above.  
        - name: sort | type: array<Sorting> | description: Array of sort objects specifying result order.  For example, to sort by creation date in descending order: [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]  | validation: maxItems 10
           - 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: aggregations | type: array<Aggregation> | description: Logical groupings of data into facets, with summaries for each facet. For example, use aggregations to allow site visitors to narrow down their search results by selecting specific categories, such as site info or plan info.  | validation: maxItems 10
           - ONE-OF: 
              - name: value | type: ValueAggregation | description: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.  
                 - ONE-OF: 
                    - name: includeOptions | type: IncludeMissingValuesOptions | description: Options for including missing values in the aggregation results.  
                       - name: addToBucket | type: string | description: Custom bucket name for missing values.  Default values: - string: `N/A` - int: `0` - bool: `false`  | validation: maxLength 20
                 - name: sortType | type: SortType | description: Sort type.  
                         - enum:
                         -     COUNT: Number of matches in the results.
                         -     VALUE: Alphabetically by the field value.
                 - name: sortDirection | type: SortDirection | description: Sort direction.  
                         - enum:
                         -     DESC: Descending order.
                         -     ASC: Ascending order.
                 - name: limit | type: integer | description: Number of aggregations to return.  Min: `1`  Max: `250`  Default: `10`  | validation: format int32
                 - name: missingValues | type: MissingValues | description: Whether to include missing values in the aggregation results.  Default: `EXCLUDE`  
                         - enum:
                         -     EXCLUDE: Exclude missing values from the aggregation results.
                         -     INCLUDE: Include missing values from the aggregation results.
              - name: range | type: RangeAggregation | description: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.  
                 - name: buckets | type: array<RangeBucket> | description: List of range buckets defining the ranges for aggregation. During aggregation, each entity is placed in the first bucket where its value falls within the specified range bounds.  | validation: maxItems 50
                    - name: from | type: number | description: Inclusive lower bound of the range. Required if `to` isn't provided.  
                    - name: to | type: number | description: Exclusive upper bound of the range. Required if `from` isn't provided.  
              - name: scalar | type: ScalarAggregation | description: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.  
                 - name: type | type: ScalarType | description: Type of scalar aggregation.  
                         - enum:
                         -     COUNT_DISTINCT: Number of distinct values.
                         -     MIN: Minimum value.
                         -     MAX: Maximum value.
              - name: dateHistogram | type: DateHistogramAggregation | description: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.  
                 - name: interval | type: Interval | description: Interval for date histogram aggregation.  
                         - enum:
                         -     YEAR: Yearly interval.
                         -     MONTH: Monthly interval.
                         -     WEEK: Weekly interval.
                         -     DAY: Daily interval.
                         -     HOUR: Hourly interval.
                         -     MINUTE: Minute interval.
                         -     SECOND: Second interval.
              - name: nested | type: NestedAggregation | description: A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.  For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`.  
                 - name: nestedAggregations | type: array<NestedAggregationItem> | description: Flattened list of aggregations, where each next aggregation is nested within previous one.  | validation: minItems 2, maxItems 3
                    - ONE-OF: 
                       - name: value | type: ValueAggregation | description: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.  
                       - name: range | type: RangeAggregation | description: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.  
                       - name: scalar | type: ScalarAggregation | description: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.  
                       - name: dateHistogram | type: DateHistogramAggregation | description: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.  
                    - name: name | type: string | description: User-defined name of aggregation. Must be unique and will appear in aggregation results.  | validation: maxLength 100
                    - name: type | type: NestedAggregationType | description: Type of aggregation.  
                             - enum:
                             -     VALUE: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.
                             -     RANGE: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.
                             -     SCALAR: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.
                             -     DATE_HISTOGRAM: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.
                    - name: fieldPath | type: string | description: Path to the field to aggregate by in dot notation. For example `review.rating`.  | validation: maxLength 200
           - name: name | type: string | description: Unique, caller-defined aggregation name, returned in `aggregations.results`.  | validation: maxLength 100
           - name: type | type: AggregationType | description: Type of aggregation.  
                 - enum:
                 -     VALUE: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.
                 -     RANGE: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.
                 -     SCALAR: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.
                 -     DATE_HISTOGRAM: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.
                 -     NESTED: A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.  For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`.
           - name: fieldPath | type: string | description: Path to the field to aggregate by in dot notation. For example `review.rating`.  | validation: maxLength 200
        - name: search | type: SearchDetails | description: Free text to match in searchable fields.  
           - name: mode | type: Mode | description: Defines how separate search terms in `expression` are combined  
                 - enum:
                 -     OR: At least 1 of the search terms must be present.
                 -     AND: All search terms must be present.
           - name: expression | type: string | description: Search term or expression.  | validation: maxLength 100
           - name: fields | type: array<string> | description: Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, `siteInfo.businessCategory.primary`.  | validation: maxItems 20, maxLength 200
           - name: fuzzy | type: boolean | description: Whether to enable the search method to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions.  
        - name: timeZone | type: string | description: Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) or [ISO 8601 UTC offset format](https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC) for adjusting time fields in the specified filters and returned aggregation data. For example, `America/New_York`, `UTC`, or `+02:00`.  Default: Time zone specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties.md).  | validation: maxLength 50
   param name: options | type: SearchAppInstallationOptions  none  
        - name: fields | type: array<RequestedFields> | description: Additional fields to include in the response. `site_info.owner_email` no longer needs requesting.  | validation: maxItems 1
             - enum:
             -     OWNER_EMAIL: No longer needed: `siteInfo.ownerEmail` is returned without requesting it.  Note: `siteInfo.ownerEmail` is returned only while the `returnOwnerEmail` toggle is on.
 Searchable fields:
   - field: siteInfo.businessCategory.secondary | operators: $hasAll, $hasSome | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: _createdDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: _id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: _updatedDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: appId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: appVersion | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: firstInstallationDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: instanceId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: true
   - field: planInfo.billingCycle.cycleDuration.count | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.billingCycle.cycleDuration.unit | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.billingCycle.cycleType | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.endDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.freeTrialInfo.endDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.freeTrialInfo.status | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.planName | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: planInfo.planStatus | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: review._id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: review.date | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: review.rating | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.accountId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.businessCategory.primary | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.businessEmail | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: false | searchable: true
   - field: siteInfo.businessName | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: true
   - field: siteInfo.countryCode | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.editorType | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.ownerEmail | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: false | searchable: true
   - field: siteInfo.premium | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.siteId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: false
   - field: siteInfo.siteUrl | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: true | searchable: true
   - field: status | operators: $eq, $ne, $in, $exists | sort: ASC, DESC | aggregatable: true | searchable: false
 Return type: PROMISE<SearchAppInstallationResponse>
  - name: appInstallations | type: array<AppInstallation> | description: Retrieved app installations.  
     - name: _id | type: string | description: App installation GUID.  | read-only: true | validation: format GUID
     - name: instanceId | type: string | description: Unique identifier of the app instance on the site. Stable across uninstalls and reinstalls of the same app on the same site.  | read-only: true | validation: format GUID
     - name: _createdDate | type: Date | description: Date and time the app installation was created.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time the app installation was last updated.  | read-only: true 
     - name: revision | type: string | description: Revision number, which increments by 1 each time the app installation is updated.  | read-only: true | validation: format int64
     - name: firstInstallationDate | type: Date | description: Date and time the app was first installed on the site. Preserved across uninstalls and reinstalls.  
     - name: siteInfo | type: SiteInfo | description: Information about the site the app is installed on.  
        - name: siteId | type: string | description: Site GUID.  | validation: format GUID
        - name: businessName | type: string | description: Business name displayed on the site.  | validation: maxLength 100
        - name: siteUrl | type: string | description: Public URL of the site.  | validation: format WEB_URL
        - name: businessEmail | type: string | description: Business email address configured on the site.  | validation: format EMAIL
        - name: countryCode | type: string | description: 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.  | validation: format COUNTRY
        - name: businessCategory | type: Categories | description: Business category the site belongs to.  
           - name: primary | type: string | description: Primary site category.  | validation: maxLength 100
           - name: secondary | type: array<string> | description: Secondary site category.  | validation: maxItems 50, maxLength 100
        - name: premium | type: boolean | description: Whether the site has an active Premium subscription.  
        - name: editorType | type: EditorType | description: Editor the site was created with.  
             - enum:
             -     EDITOR: Wix Editor.
             -     ADI: Wix ADI.
             -     EDITORX: Editor X.
             -     STUDIO: Wix Studio.
             -     HARMONY: Wix Harmony.
             -     VIBE: Wix Vibe.
             -     WIXEL: Wixel.
        - name: ownerEmail | type: string | description: Email address of the site owner. Written only for app versions permitted to read it, and returned only while the `returnOwnerEmail` toggle is on.  | validation: format EMAIL
        - name: accountId | type: string | description: GUID of the site owner's account.  | validation: format GUID
     - name: planInfo | type: PlanInfo | description: Information about the plan the site owner purchased for the app.  
        - name: planName | type: string | description: Name of the plan the site owner purchased for the app.  | validation: maxLength 100
        - name: billingCycle | type: Cycle | description: Billing cycle of the purchased plan.  
           - name: cycleType | type: CycleType | description: Type of the billing cycle.  + `"UNKNOWN_UNIT"`:  There is no information about the billing cycle. + `"ONE_TIME"`:  The customer pays for unlimited usage of the app with a single payment. + `"RECURRING"`: The customer pays for a subscription to the app on a recurring schedule.  
                 - enum: ONE_TIME, RECURRING
           - name: cycleDuration | type: Duration | description: Duration of the billing cycle. Available only for `{"cycleType": "RECURRING"}`.  
              - name: unit | type: DurationUnit | description: Unit of the billing cycle.  
                     - enum:
                     -     MONTH: Month.
                     -     YEAR: Year.
              - name: count | type: integer | description: Count of units that make up the billing cycle.  | validation: minimum 0
        - name: planStatus | type: PlanStatus | description: Current status of the purchased plan.  
             - enum:
             -     UPGRADED: The site owner upgraded the app to a paid plan.
             -     CANCELED: The site owner upgraded the app to a paid plan and has since canceled it.
             -     AUTO_RENEW_OFF: The plan is still active, but auto-renewal is turned off.
        - name: freeTrialInfo | type: FreeTrialInfo | description: Free trial details for the purchased plan, if a free trial is or was active.  
           - name: status | type: FreeTrialStatus | description: Current free trial status.  
                 - enum:
                 -     IN_PROGRESS: The free trial is currently in progress.
                 -     ENDED: The free trial has ended.
           - name: endDate | type: Date | description: Date and time the free trial ended.  Returned only after the free trial has ended.  
        - name: endDate | type: Date | description: Date and time the plan expires.  Returned only when auto-renewal is turned off.  
     - name: appId | type: string | description: GUID of the installed app.  | read-only: true | validation: format GUID
     - name: appVersion | type: string | description: Major version of the installed app.  | validation: maxLength 6
     - name: status | type: Status | description: Current installation status of the app on the site.  
         - enum:
         -     INSTALLED: The app is currently installed on the site.
         -     UNINSTALLED: The app was installed on the site and has since been removed.
     - name: review | type: ReviewInfo | description: Information about the review the site owner left for the app, if any.  
        - name: _id | type: string | description: Review GUID.  | validation: format GUID
        - name: date | type: Date | description: Date and time the review was published.  
        - name: rating | type: integer | description: Rating the site owner left for the app, from 1 to 5.  | validation: format int32
        - name: title | type: string | description: Review title.  | validation: maxLength 100
        - name: description | type: string | description: Review body text.  | validation: maxLength 2500
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata, including the cursor used to retrieve the next page of results.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  
  - name: aggregationData | type: AggregationData | description: Aggregation data, returned when aggregations are requested.  
     - name: results | type: array<AggregationResults> | description: Array of aggregation results, each containing the aggregation metadata and its calculated values for the specified search criteria.  | validation: maxItems 10000
        - ONE-OF: 
           - name: values | type: ValueResults | description: Value aggregation results.  
              - name: results | type: array<ValueAggregationResult> | description: List of value aggregations.  | validation: maxItems 250
                 - name: value | type: string | description: Value of the field.  | validation: maxLength 100
                 - name: count | type: integer | description: Number of entities with this value.  
           - name: ranges | type: RangeResults | description: Range aggregation results.  
              - name: results | type: array<RangeAggregationResult> | description: Array of range aggregation results returned in the same order as requested, each containing range bounds and count of entities within that range.  | validation: maxItems 50
                 - name: from | type: number | description: Inclusive lower bound of the range.  
                 - name: to | type: number | description: Exclusive upper bound of the range.  
                 - name: count | type: integer | description: Number of entities in this range.  
           - name: scalar | type: ScalarResult | description: Scalar aggregation results.  
              - name: type | type: ScalarType | description: Type of scalar aggregation.  
                     - enum:
                     -     COUNT_DISTINCT: Number of distinct values.
                     -     MIN: Minimum value.
                     -     MAX: Maximum value.
              - name: value | type: number | description: Value of the scalar aggregation.  
           - name: groupedByValue | type: GroupByValueResults | description: Group by value aggregation results.  
              - name: results | type: array<NestedValueAggregationResult> | description: List of value aggregations.  | validation: maxItems 1000
                 - name: value | type: string | description: Value of the field.  | validation: maxLength 1000
                 - name: nestedResults | type: NestedAggregationResults | description: Nested aggregations.  
                    - ONE-OF: 
                       - name: values | type: ValueResults | description: Value aggregation results.  
                       - name: ranges | type: RangeResults | description: Range aggregation results.  
                       - name: scalar | type: ScalarResult | description: Scalar aggregation results.  
                    - name: name | type: string | description: User-defined name of aggregation, matches the one specified in the request.  | validation: maxLength 100
                    - name: type | type: AggregationType | description: Type of aggregation.  
                             - enum:
                             -     VALUE: A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the amount of products for each price listed in the store.
                             -     RANGE: A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more.
                             -     SCALAR: A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`.
                             -     DATE_HISTOGRAM: A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to find how many reviews were left on your app each week.
                             -     NESTED: A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy.  For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`.
                    - name: fieldPath | type: string | description: Path to the field to aggregate by in dot notation. For example `review.rating`.  | validation: maxLength 200
           - name: dateHistogram | type: DateHistogramResults | description: Date histogram aggregation results.  
              - name: results | type: array<DateHistogramResult> | description: Array of date histogram aggregation results, each containing a date bucket and its count.  | validation: maxItems 200
                 - name: value | type: string | description: Date in [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601).  | validation: maxLength 100
                 - name: count | type: integer | description: Number of entities in the bucket.  
           - name: nested | type: NestedResults | description: Nested aggregation results.  
              - name: results | type: array<Results> | description: List of nested aggregations.  | validation: maxItems 1000
                 - name: results | type: Map<string,NestedResultValue> | description: List of nested aggregations.  | validation: format map
                    - ONE-OF: 
                       - name: value | type: ValueResult | description: Value aggregation result.  
                          - name: value | type: string | description: Value of the field.  | validation: maxLength 1000
                          - name: count | type: integer | description: Number of entities with this value.  | validation: format int32
                       - name: range | type: RangeResult | description: Range aggregation result.  
                          - name: from | type: number | description: Inclusive lower bound of the range.  
                          - name: to | type: number | description: Exclusive upper bound of the range.  
                          - name: count | type: integer | description: Number of entities in this range.  | validation: format int32
                       - name: scalar | type: ScalarResult | description: Scalar aggregation result.  
                          - name: value | type: number | description: Value of the scalar aggregation.  
                       - name: dateHistogram | type: ValueResult | description: Date histogram aggregation result.  
        - name: name | type: string | description: User-defined name of aggregation as derived from search request.  | validation: maxLength 100
        - name: type | type: AggregationType | description: Type of aggregation that must match the one from the search request.  
        - name: fieldPath | type: string | description: Path to the field to aggregate by in dot notation. For example `review.rating`.  | validation: maxLength 200


```

### Examples

### searchAppInstallation
```javascript
import { appInstallations } from '@wix/app-installations';

async function searchAppInstallation(search,options) {
  const response = await appInstallations.searchAppInstallation(search,options);
};
```

### searchAppInstallation (with elevated permissions)
```javascript
import { appInstallations } from '@wix/app-installations';
import { auth } from '@wix/essentials';

async function mySearchAppInstallationMethod(search,options) {
  const elevatedSearchAppInstallation = auth.elevate(appInstallations.searchAppInstallation);
  const response = await elevatedSearchAppInstallation(search,options);
}
```

### searchAppInstallation (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 { appInstallations } from '@wix/app-installations';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function searchAppInstallation(search,options) {
  const response = await myWixClient.appInstallations.searchAppInstallation(search,options);
};
```

---