> 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

# SearchMarketListings

# Package: marketListing

# Namespace: MarketListingService

# Method link: https://dev.wix.com/docs/api-reference/app-management/market-listing/search-market-listings.md

## Introduction

Searches published market listings by keyword or app name.

Intended for AI agents and automation tools that need to find published app listings before taking action, such as installing an app. Defaults to listings in English (`en`).

---

## REST API

### Schema

```
 Method: searchMarketListings
 Description: Searches published market listings by keyword or app name.  Intended for AI agents and automation tools that need to find published app listings before taking action, such as installing an app. Defaults to listings in English (`en`).
 URL: https://www.wixapis.com/devcenter/app-market-listing/v1/market-listings/search
 Method: POST
 Method parameters:
   param name: languageCode | type: languageCode | description: 2-letter language code in ISO 639-1 alpha-2 format. Returns listings in this language.  Default: `en`  | validation: format LANGUAGE
   param name: paging | type: Paging    
        - 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
   param name: searchTerm | type: searchTerm | description: Text to search by app name or keyword.  | validation: maxLength 100
 Return type: SearchMarketListingsResponse
  - name: marketListings | type: array<MarketListing> | description: Published market listings matching the search.  | validation: maxItems 50
     - name: id | type: string | description: Market listing GUID.  | validation: format GUID
     - name: appId | type: string | description: GUID of the app the listing belongs to.  | validation: format GUID
     - name: languageCode | type: string | description: 2-letter language code in ISO 639-1 alpha-2 format. For example, `en` for English.  | validation: format LANGUAGE
     - name: basicInfo | type: BasicInfo | description: Basic marketing information about the app, including its name, description, and categories.  
        - name: name | type: string | description: Display name of the app shown in the Wix App Market.  
        - name: teaser | type: string | description: Short description of the app shown in listing previews.  
        - name: longDescription | type: string | description: Full description of the app shown on the listing detail page.  
        - name: benefits | type: array<Benefits> | description: Key benefits of the app displayed on its listing page.  
           - name: title | type: string | description: Benefit title.  
        - name: searchKeywords | type: array<string> | description: Keywords used to improve the app's discoverability in search.  
        - name: demoUrl | type: string | description: URL of a demo page or video for the app.  | validation: format WEB_URL
        - name: categories | type: array<string> | description: App Market categories the app belongs to.  
     - name: assetsMap | type: Map<string,Assets> | description: Map of marketing assets keyed by asset type. JSON field name is `assetsMap`. Common keys include `appIcon`, `screenshots`, and `banners`. The platform may add other keys over time.  | validation: format map
        - name: assets | type: array<Asset> | description:   
           - name: url | type: string | description:   | validation: format WEB_URL
           - name: mediaType | type: MediaType | description:   
                 - enum: VIDEO, IMAGE, YOUTUBE
     - name: contactInfo | type: ContactInfo | description: Developer contact and legal information for the app.  
        - name: website | type: string | description: URL of the developer's website.  | validation: format WEB_URL
        - name: developerMetaSiteId | type: string | description: GUID of the developer's Wix development site associated with the app.  
        - name: supportEmail | type: string | description: Support email address for the app.  | validation: format EMAIL
        - name: privacyPolicyUrl | type: string | description: URL of the app's privacy policy.  | validation: format WEB_URL
        - name: termsOfUseUrl | type: string | description: URL of the app's terms of use.  | validation: format WEB_URL
     - name: installationRequirement | type: InstallationRequirement | description: Conditions that control where and how the app can be installed.  
        - name: requiredApps | type: array<RequiredApp> | description: Apps created by Wix that must already be installed for this app to function. For example, Wix Stores.  
           - name: id | type: string | description: Required app GUID.  | validation: format GUID
           - name: slug | type: string | description: URL-friendly identifier for the required app, as it appears in the Wix App Market URL. For example, in `https://www.wix.com/app-market/wix-stores`, the slug is `wix-stores`. Optional — use `id` alone if you have the app's GUID.  
        - name: includeCountries | type: array<string> | description: 2-letter country codes in ISO-3166 alpha-2 format for countries where this app is available for installation. Empty means available in all countries not listed in `excludeCountries`.  | validation: format COUNTRY
        - name: excludeCountries | type: array<string> | description: 2-letter country codes in ISO-3166 alpha-2 format for countries where this app is not available for installation.  | validation: format COUNTRY
        - name: includeLanguages | type: array<string> | description: 2-letter language codes in ISO 639-1 alpha-2 format for languages supported by this app. Empty means all languages are supported, except those in `excludeLanguages`.  | validation: format LANGUAGE
        - name: excludeLanguages | type: array<string> | description: 2-letter language codes in ISO 639-1 alpha-2 format for languages not supported by this app.  | validation: format LANGUAGE
        - name: allowLanguageCustomization | type: boolean | description: Whether the user can choose their preferred language when installing the app.  
        - name: requiredWixPremium | type: boolean | description: Whether a Wix Premium plan is required to install this app.  
     - name: revision | type: string | description: Revision number, which increments by 1 each time the market listing is updated. To prevent conflicting changes, the current revision must be passed when updating the market listing.  | validation: format uint64
     - name: createdDate | type: string | description: Date and time the market listing was created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the market listing was updated.  | read-only: true | validation: format date-time
     - name: status | type: Status | description: Lifecycle status of the listing.  
         - enum:
         -     DRAFT: Editable working copy of the listing in the app dashboard.
         -     PUBLISHED: Live listing visible to users in the Wix App Market.
         -     APPROVED: Post-review, pre-publication state. The listing has passed review but hasn't been promoted to `PUBLISHED` yet. Status transitions are handled manually and can't be set directly.
     - name: classification | type: Classification | description: How the app integrates with Wix and who can install it. Each app has exactly one classification.  
         - enum:
         -     SITE_APP: A publicly listed app that users install on their Wix sites.
         -     API_KEY: An app that authenticates using an API key to access Wix services, without installing on a site.
         -     VELO_APP: An app built for the Velo development environment.
         -     PRIVATE_APP: An app restricted to the owner account and its sub-accounts. Not available in the public App Market.
         -     HEADLESS: A headless app that accesses Wix public services without installing on a site.
         -     FUNCTION_ACTIVATION_APP: An app scoped to a specific site that tracks activated functions on that site.
     - name: pricingData | type: PricingData | description: Pricing and free trial information for the app.  
        - name: externalPricingPageUrl | type: string | description: URL of the app's external pricing page, when hosted outside Wix.  | validation: format WEB_URL
        - name: externalCheckout | type: boolean | description: Whether checkout for this app happens on an external site instead of in Wix.  
        - name: freeTrialDays | type: integer | description: Number of free trial days offered by the app developer.  | validation: format int32
        - name: internalFreeTrialDays | type: integer | description: Number of free trial days provided and managed by Wix.  | validation: minimum 0, maximum 30, format int32
        - name: openPremiumPage | type: boolean | description: Whether the app's upgrade button opens the Wix premium page directly. Not translatable. The value is shared by all of the app's listings in the same `status`, and is taken from the English listing.  
     - name: llmContext | type: LLMContext | description: Custom description used by LLM-based tools for AI-generated content and recommendations. Available only with the `APP_MARKET.LLM_CONTEXT` permission.  
        - name: instructions | type: string | description: Custom description of the app used by LLM-based tools for AI-generated content and recommendations.  | validation: maxLength 10000
     - name: llmMetadata | type: LlmMetadata | description: Structured metadata for AI-powered app discovery and recommendations. Available only with the `APP_MARKET.LLM_CONTEXT` permission.  
        - name: primaryUseCases | type: array<string> | description: Primary use cases for the app, used by AI tools for app discovery and recommendations.  | validation: maxItems 20, maxLength 100
        - name: capabilities | type: Capabilities | description: Functional capabilities of the app.  
           - name: coreFeatures | type: array<string> | description: Core features of the app.  | validation: maxItems 20, maxLength 100
           - name: advancedFeatures | type: array<string> | description: Advanced features of the app.  | validation: maxItems 20, maxLength 100
           - name: apiCapabilities | type: array<string> | description: API capabilities exposed by the app.  | validation: maxItems 20, maxLength 100
        - name: platformFeatures | type: PlatformFeatures | description: Platform and technical constraints of the app.  
           - name: headlessCapable | type: boolean | description: Whether the app supports headless deployments.  
           - name: requiresWixPremium | type: boolean | description: Whether the app requires Wix Premium to function.  
  - name: paging | type: PagingMetadataV2 | description: Paging metadata for the search result set.  
     - 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. Returned if offset paging is used and the `tooManyToCount` flag is not set.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  
     - name: cursors | type: Cursors | description: Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.  
        - 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


```

### Examples

### Search Market Listings
Searches published market listings by keyword or app name. Intended for finding apps before taking actions such as installing them.

```curl
curl -X POST \
  'https://www.wixapis.com/app-market-listing/v1/market-listings/search' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "searchTerm": "analytics",
    "languageCode": "en"
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.appMarketListing.appMarketListing.searchMarketListings(options)
 Description: Searches published market listings by keyword or app name.  Intended for AI agents and automation tools that need to find published app listings before taking action, such as installing an app. Defaults to listings in English (`en`).
 Method parameters:
   param name: options | type: SearchMarketListingsOptions  none  
        - name: searchTerm | type: string | description: Text to search by app name or keyword.  | validation: maxLength 100
        - name: paging | type: Paging | description: Paging options. Returns up to 50 results per page.  
           - 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: languageCode | type: string | description: 2-letter language code in ISO 639-1 alpha-2 format. Returns listings in this language.  Default: `en`  | validation: format LANGUAGE
 Return type: PROMISE<SearchMarketListingsResponse>
  - name: marketListings | type: array<MarketListing> | description: Published market listings matching the search.  | validation: maxItems 50
     - name: _id | type: string | description: Market listing GUID.  | validation: format GUID
     - name: appId | type: string | description: GUID of the app the listing belongs to.  | validation: format GUID
     - name: languageCode | type: string | description: 2-letter language code in ISO 639-1 alpha-2 format. For example, `en` for English.  | validation: format LANGUAGE
     - name: basicInfo | type: BasicInfo | description: Basic marketing information about the app, including its name, description, and categories.  
        - name: name | type: string | description: Display name of the app shown in the Wix App Market.  
        - name: teaser | type: string | description: Short description of the app shown in listing previews.  
        - name: longDescription | type: string | description: Full description of the app shown on the listing detail page.  
        - name: benefits | type: array<Benefits> | description: Key benefits of the app displayed on its listing page.  
           - name: title | type: string | description: Benefit title.  
        - name: searchKeywords | type: array<string> | description: Keywords used to improve the app's discoverability in search.  
        - name: demoUrl | type: string | description: URL of a demo page or video for the app.  | validation: format WEB_URL
        - name: categories | type: array<string> | description: App Market categories the app belongs to.  
     - name: assetsMap | type: Map<string,Assets> | description: Map of marketing assets keyed by asset type. JSON field name is `assetsMap`. Common keys include `appIcon`, `screenshots`, and `banners`. The platform may add other keys over time.  | validation: format map
        - name: assets | type: array<Asset> | description:   
           - name: url | type: string | description:   | validation: format WEB_URL
           - name: mediaType | type: MediaType | description:   
                 - enum: VIDEO, IMAGE, YOUTUBE
     - name: contactInfo | type: ContactInfo | description: Developer contact and legal information for the app.  
        - name: website | type: string | description: URL of the developer's website.  | validation: format WEB_URL
        - name: developerMetaSiteId | type: string | description: GUID of the developer's Wix development site associated with the app.  
        - name: supportEmail | type: string | description: Support email address for the app.  | validation: format EMAIL
        - name: privacyPolicyUrl | type: string | description: URL of the app's privacy policy.  | validation: format WEB_URL
        - name: termsOfUseUrl | type: string | description: URL of the app's terms of use.  | validation: format WEB_URL
     - name: installationRequirement | type: InstallationRequirement | description: Conditions that control where and how the app can be installed.  
        - name: requiredApps | type: array<RequiredApp> | description: Apps created by Wix that must already be installed for this app to function. For example, Wix Stores.  
           - name: _id | type: string | description: Required app GUID.  | validation: format GUID
           - name: slug | type: string | description: URL-friendly identifier for the required app, as it appears in the Wix App Market URL. For example, in `https://www.wix.com/app-market/wix-stores`, the slug is `wix-stores`. Optional — use `id` alone if you have the app's GUID.  
        - name: includeCountries | type: array<string> | description: 2-letter country codes in ISO-3166 alpha-2 format for countries where this app is available for installation. Empty means available in all countries not listed in `excludeCountries`.  | validation: format COUNTRY
        - name: excludeCountries | type: array<string> | description: 2-letter country codes in ISO-3166 alpha-2 format for countries where this app is not available for installation.  | validation: format COUNTRY
        - name: includeLanguages | type: array<string> | description: 2-letter language codes in ISO 639-1 alpha-2 format for languages supported by this app. Empty means all languages are supported, except those in `excludeLanguages`.  | validation: format LANGUAGE
        - name: excludeLanguages | type: array<string> | description: 2-letter language codes in ISO 639-1 alpha-2 format for languages not supported by this app.  | validation: format LANGUAGE
        - name: allowLanguageCustomization | type: boolean | description: Whether the user can choose their preferred language when installing the app.  
        - name: requiredWixPremium | type: boolean | description: Whether a Wix Premium plan is required to install this app.  
     - name: revision | type: string | description: Revision number, which increments by 1 each time the market listing is updated. To prevent conflicting changes, the current revision must be passed when updating the market listing.  | validation: format uint64
     - name: _createdDate | type: Date | description: Date and time the market listing was created.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time the market listing was updated.  | read-only: true 
     - name: status | type: Status | description: Lifecycle status of the listing.  
         - enum:
         -     DRAFT: Editable working copy of the listing in the app dashboard.
         -     PUBLISHED: Live listing visible to users in the Wix App Market.
         -     APPROVED: Post-review, pre-publication state. The listing has passed review but hasn't been promoted to `PUBLISHED` yet. Status transitions are handled manually and can't be set directly.
     - name: classification | type: Classification | description: How the app integrates with Wix and who can install it. Each app has exactly one classification.  
         - enum:
         -     SITE_APP: A publicly listed app that users install on their Wix sites.
         -     API_KEY: An app that authenticates using an API key to access Wix services, without installing on a site.
         -     VELO_APP: An app built for the Velo development environment.
         -     PRIVATE_APP: An app restricted to the owner account and its sub-accounts. Not available in the public App Market.
         -     HEADLESS: A headless app that accesses Wix public services without installing on a site.
         -     FUNCTION_ACTIVATION_APP: An app scoped to a specific site that tracks activated functions on that site.
     - name: pricingData | type: PricingData | description: Pricing and free trial information for the app.  
        - name: externalPricingPageUrl | type: string | description: URL of the app's external pricing page, when hosted outside Wix.  | validation: format WEB_URL
        - name: externalCheckout | type: boolean | description: Whether checkout for this app happens on an external site instead of in Wix.  
        - name: freeTrialDays | type: integer | description: Number of free trial days offered by the app developer.  | validation: format int32
        - name: internalFreeTrialDays | type: integer | description: Number of free trial days provided and managed by Wix.  | validation: minimum 0, maximum 30, format int32
        - name: openPremiumPage | type: boolean | description: Whether the app's upgrade button opens the Wix premium page directly. Not translatable. The value is shared by all of the app's listings in the same `status`, and is taken from the English listing.  
     - name: llmContext | type: LLMContext | description: Custom description used by LLM-based tools for AI-generated content and recommendations. Available only with the `APP_MARKET.LLM_CONTEXT` permission.  
        - name: instructions | type: string | description: Custom description of the app used by LLM-based tools for AI-generated content and recommendations.  | validation: maxLength 10000
     - name: llmMetadata | type: LlmMetadata | description: Structured metadata for AI-powered app discovery and recommendations. Available only with the `APP_MARKET.LLM_CONTEXT` permission.  
        - name: primaryUseCases | type: array<string> | description: Primary use cases for the app, used by AI tools for app discovery and recommendations.  | validation: maxItems 20, maxLength 100
        - name: capabilities | type: Capabilities | description: Functional capabilities of the app.  
           - name: coreFeatures | type: array<string> | description: Core features of the app.  | validation: maxItems 20, maxLength 100
           - name: advancedFeatures | type: array<string> | description: Advanced features of the app.  | validation: maxItems 20, maxLength 100
           - name: apiCapabilities | type: array<string> | description: API capabilities exposed by the app.  | validation: maxItems 20, maxLength 100
        - name: platformFeatures | type: PlatformFeatures | description: Platform and technical constraints of the app.  
           - name: headlessCapable | type: boolean | description: Whether the app supports headless deployments.  
           - name: requiresWixPremium | type: boolean | description: Whether the app requires Wix Premium to function.  
  - name: paging | type: PagingMetadataV2 | description: Paging metadata for the search result set.  
     - 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. Returned if offset paging is used and the `tooManyToCount` flag is not set.  | validation: format int32
     - name: tooManyToCount | type: boolean | description: Flag that indicates the server failed to calculate the `total` field.  
     - name: cursors | type: Cursors | description: Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.  
        - 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


```

### Examples

### searchMarketListings
```javascript
import { appMarketListing } from '@wix/app-market-listing';

async function searchMarketListings(options) {
  const response = await appMarketListing.searchMarketListings(options);
};
```

### searchMarketListings (with elevated permissions)
```javascript
import { appMarketListing } from '@wix/app-market-listing';
import { auth } from '@wix/essentials';

async function mySearchMarketListingsMethod(options) {
  const elevatedSearchMarketListings = auth.elevate(appMarketListing.searchMarketListings);
  const response = await elevatedSearchMarketListings(options);
}
```

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

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


async function searchMarketListings(options) {
  const response = await myWixClient.appMarketListing.searchMarketListings(options);
};
```

---