> 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

# ResolveItemSeoTags

# Package: viewer

# Namespace: SeoTagsService

# Method link: https://dev.wix.com/docs/api-reference/site/viewer/seo-tags/resolve-item-seo-tags.md

## Permission Scopes:
View SEO Settings: SCOPE.PROMOTE.VIEW-SEO

## Introduction

Resolves SEO tags for a Wix product using its slug and item type.

---

## REST API

### Schema

```
 Method: resolveItemSeoTags
 Description: Resolves SEO tags for a Wix product using its slug and item type.
 URL: https://www.wixapis.com/promote/seo/v1/resolve-item-seo-tags
 Method: GET
 This method is cacheable: Responses from this method are cached for optimal performance.
 Method parameters:
   query param name: collectionId | type: collectionId | description: GUID of the CMS (Wix Data) collection the item belongs to. Used by Wix Data item pages on sites without a Wix editor, together with `slug`, to load the item and its collection fields for the default pattern. When `page_id` is omitted, the pattern override is looked up by this GUID.  | validation: maxLength 256
   param name: itemType | type: ItemType | description: Enum representing different types of items that can have SEO tags resolved. Each item type corresponds to a specific Wix product and determines which product-specific optimization rules and schema are applied during SEO tag generation.  
      - enum:
           UNKNOWN_ITEM_TYPE - Unknown item type. This value isn't used.
           STORES_PRODUCT - Item type for e-commerce products.
           BOOKINGS_SERVICE - Item type for service-based businesses.
           STORES_CATEGORY - Item type for e-commerce categories.
           BLOG_POST - Item type for blog posts.
           BLOG_CATEGORY - Item type for blog categories.
           CHALLENGES_PAGE - Item type for online programs / challenges pages.
           EVENTS_PAGE - Item type for events pages.
           PORTFOLIO_COLLECTIONS - Item type for portfolio collections.
           PORTFOLIO_PROJECTS - Item type for portfolio projects.
           RESTAURANTS_MENU_PAGE - Item type for restaurants menu pages.
           STORES_SUB_CATEGORY - Item type for stores sub-categories.
           TABLE_RESERVATIONS_EXPERIENCE - Item type for table reservations experiences.
           WIX_DATA_PAGE_ITEM - Item type for Wix Data dynamic pages.
Generates SEO tags from default patterns and Wix Data page-specific pattern overrides.
           PRICING_PLANS - Item type for Pricing Plans pages.
Generates SEO tags from default patterns and Pricing Plans pattern overrides.
   query param name: pageId | type: pageId | description: Dynamic page identifier used by item types whose pattern overrides are page-specific, such as Wix Data.  | validation: maxLength 255
   query param name: pageName | type: pageName | description: Display name of the page, used by default patterns when item data is not fetched from a slug-backed API.  | validation: maxLength 255
   query param name: pageUrl | type: pageUrl | description: Full canonical URL of the item page where the SEO tags are applied.  | validation: minLength 1, maxLength 2048, format WEB_URL
   param name: pagination | type: Pagination    
        - name: prevUrl | type: string | description: URL for the previous page  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: nextUrl | type: string | description: URL for the next page  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: totalPages | type: integer | description: Total number of pages  
        - name: currentPage | type: integer | description: Current page number  
   query param name: slug | type: slug | description: URL-friendly version of the item's name or title. Required for slug-backed item types. For example, if the site URL is `https://www.nike.com/shoes/air-jordans`, then the slug is `air-jordans`.  | validation: minLength 1, maxLength 255
   query param name: slugFieldKey | type: slugFieldKey | description: Key of the collection field that holds the item's slug. Default: `slug`.  | validation: maxLength 1000
 Return type: ResolveItemSeoTagsResponse
  - name: seoTags | type: SeoTags | description: The resolved SEO tags entity containing product-specific optimized metadata.  
     - name: id | type: string | description: Unique identifier for the SEO tags collection.  | validation: maxLength 100
     - name: tags | type: array<Tag> | description: Collection of SEO tags containing the complete set of metadata for the page.  | validation: maxItems 100
        - name: type | type: string | description: Legacy. Was a free-form string: "title" | "meta" | "script" | "link". The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes the invalid combinations unrepresentable rather than merely discouraged.  Which of these an API actually accepts depends on where the tag is being set: this list is not a blanket guarantee across every API that reuses this message. Site SEO Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation error even though they appear here — check the field description of the specific `tags`-typed field you are writing to.  Limitation: `title` and `script` (e.g. a `script` tag with `props.type` "application/ld+json" carrying structured data) are supported only when `custom` is unset or `false`. Setting `custom: true` on a `title` or `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the write through the site's Advanced/Custom Tags list. To write structured data, omit `custom` (or set it to `false`).  No length limit: this field holds data written years ago by writers we are not migrating. A constraint here could reject a record that is already stored, which is exactly the promise this design makes.  
        - name: props | type: object | description: Legacy. Was an untyped bag of HTML attributes. Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.  
        - name: meta | type: object | description: Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2` its contents are split by purpose: per-page structured-data state moves to StructuredDataTag, authorship to `written_by`, and render-time preset logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the stored document entirely — it belongs to the preset definition, not to the page. See the design log for the full key-by-key mapping.  
        - name: children | type: string | description: Legacy. Was the tag's inner content, doubling as the JSON-LD payload for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and `StructuredDataTag.json_ld`. No length limit, for the same reason as `type` above.  
        - name: custom | type: boolean | description: Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) — i.e. an entry from the site's Advanced/Custom Tags list.  Setting this to `true` on a write restricts which `type` values are accepted — the same restriction the Advanced/Custom Tags UI enforces. `title` and `script` tags (including JSON-LD structured data) must be sent with `custom` omitted or `false`; sending them with `custom: true` is rejected with `TAG_TYPE_NOT_ALLOWED`.  Note this is a separate restriction from Site SEO Tags' own type restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g. for site-wide structured data) unconditionally. There is currently no way to set site-wide, every-page structured data through any of these APIs — write a per-page `script` tag through the Item SEO Tags API instead.  This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed default/pattern — standard tags always resolve with `custom: false`, even when their content comes from a page's manually saved SEO title/description override. Don't use this field to verify whether a live page reflects a manual per-page SEO edit.  Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the response entirely — there, `false` means this API could not tell, not that no custom tag exists. Pass `seoData` explicitly to resolve against a known set of tags.  `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.  
        - name: disabled | type: boolean | description: Whether the tag is excluded from the rendered <head>.  A disabled tag is still stored, so the user can re-enable it and so a pattern-provided tag stays suppressed on this page. Default false.  


```

### Examples

### Resolve Item SEO Tags
```curl
curl -X GET "https://www.wixapis.com/promote/seo/v1/resolve-item-seo-tags?pageUrl=https://sneakers.com/about&itemType=STORES_PRODUCT&slug=about" \
    -H 'Authorization: <AUTH>' \
    -H 'Content-Type: application/json'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.seo.seoTags.resolveItemSeoTags(options)
 Description: Resolves SEO tags for a Wix product using its slug and item type.
 This method is cacheable: Responses from this method are cached for optimal performance.
 Method parameters:
   param name: options | type: ResolveItemSeoTagsOptions  none  
        - name: pageUrl | type: string | description: Full canonical URL of the item page where the SEO tags are applied.  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: itemType | type: ItemType | description: Item type identifier specifying the product and content type for SEO tag generation. This determines which product-specific optimization rules and schema are applied.  
             - enum:
             -     UNKNOWN_ITEM_TYPE: Unknown item type. This value isn't used.
             -     STORES_PRODUCT: Item type for e-commerce products.
             -     BOOKINGS_SERVICE: Item type for service-based businesses.
             -     STORES_CATEGORY: Item type for e-commerce categories.
             -     BLOG_POST: Item type for blog posts.
             -     BLOG_CATEGORY: Item type for blog categories.
             -     CHALLENGES_PAGE: Item type for online programs / challenges pages.
             -     EVENTS_PAGE: Item type for events pages.
             -     PORTFOLIO_COLLECTIONS: Item type for portfolio collections.
             -     PORTFOLIO_PROJECTS: Item type for portfolio projects.
             -     RESTAURANTS_MENU_PAGE: Item type for restaurants menu pages.
             -     STORES_SUB_CATEGORY: Item type for stores sub-categories.
             -     TABLE_RESERVATIONS_EXPERIENCE: Item type for table reservations experiences.
             -     WIX_DATA_PAGE_ITEM: Item type for Wix Data dynamic pages. Generates SEO tags from default patterns and Wix Data page-specific pattern overrides.
             -     PRICING_PLANS: Item type for Pricing Plans pages. Generates SEO tags from default patterns and Pricing Plans pattern overrides.
        - name: slug | type: string | description: URL-friendly version of the item's name or title. Required for slug-backed item types. For example, if the site URL is `https://www.nike.com/shoes/air-jordans`, then the slug is `air-jordans`.  | validation: minLength 1, maxLength 255
        - name: pagination | type: Pagination | description: Pagination information for the item page  
           - name: prevUrl | type: string | description: URL for the previous page  | validation: minLength 1, maxLength 2048, format WEB_URL
           - name: nextUrl | type: string | description: URL for the next page  | validation: minLength 1, maxLength 2048, format WEB_URL
           - name: totalPages | type: integer | description: Total number of pages  
           - name: currentPage | type: integer | description: Current page number  
        - name: pageId | type: string | description: Dynamic page identifier used by item types whose pattern overrides are page-specific, such as Wix Data.  | validation: maxLength 255
        - name: pageName | type: string | description: Display name of the page, used by default patterns when item data is not fetched from a slug-backed API.  | validation: maxLength 255
        - name: collectionId | type: string | description: GUID of the CMS (Wix Data) collection the item belongs to. Used by Wix Data item pages on sites without a Wix editor, together with `slug`, to load the item and its collection fields for the default pattern. When `page_id` is omitted, the pattern override is looked up by this GUID.  | validation: maxLength 256
        - name: slugFieldKey | type: string | description: Key of the collection field that holds the item's slug. Default: `slug`.  | validation: maxLength 1000
 Return type: PROMISE<ResolveItemSeoTagsResponse>
  - name: seoTags | type: SeoTags | description: The resolved SEO tags entity containing product-specific optimized metadata.  
     - name: _id | type: string | description: Unique identifier for the SEO tags collection.  | validation: maxLength 100
     - name: tags | type: array<Tag> | description: Collection of SEO tags containing the complete set of metadata for the page.  | validation: maxItems 100
        - name: type | type: string | description: Legacy. Was a free-form string: "title" | "meta" | "script" | "link". The typed replacement is the `kind` oneof on `SeoSchemaV2.Tag`, which makes the invalid combinations unrepresentable rather than merely discouraged.  Which of these an API actually accepts depends on where the tag is being set: this list is not a blanket guarantee across every API that reuses this message. Site SEO Tags in particular accepts only `meta` (see `SiteSeoTags.tags`) and rejects `title`/`script`/`link` with a validation error even though they appear here — check the field description of the specific `tags`-typed field you are writing to.  Limitation: `title` and `script` (e.g. a `script` tag with `props.type` "application/ld+json" carrying structured data) are supported only when `custom` is unset or `false`. Setting `custom: true` on a `title` or `script` tag is rejected with `TAG_TYPE_NOT_ALLOWED`, because `custom: true` routes the write through the site's Advanced/Custom Tags list. To write structured data, omit `custom` (or set it to `false`).  No length limit: this field holds data written years ago by writers we are not migrating. A constraint here could reject a record that is already stored, which is exactly the promise this design makes.  
        - name: props | type: object | description: Legacy. Was an untyped bag of HTML attributes. Typed replacement: `SeoSchemaV2.TitleTag` / `MetaTag` / `LinkTag`.  
        - name: meta | type: object | description: Legacy. Was an untyped bag of 16 mixed-purpose keys. In `SeoSchemaV2` its contents are split by purpose: per-page structured-data state moves to StructuredDataTag, authorship to `written_by`, and render-time preset logic (variants, enabledByExperiment, removeSchemaIf*) moved out of the stored document entirely — it belongs to the preset definition, not to the page. See the design log for the full key-by-key mapping.  
        - name: children | type: string | description: Legacy. Was the tag's inner content, doubling as the JSON-LD payload for script tags. Typed replacement: `SeoSchemaV2.TitleTag.text` and `StructuredDataTag.json_ld`. No length limit, for the same reason as `type` above.  
        - name: custom | type: boolean | description: Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) — i.e. an entry from the site's Advanced/Custom Tags list.  Setting this to `true` on a write restricts which `type` values are accepted — the same restriction the Advanced/Custom Tags UI enforces. `title` and `script` tags (including JSON-LD structured data) must be sent with `custom` omitted or `false`; sending them with `custom: true` is rejected with `TAG_TYPE_NOT_ALLOWED`.  Note this is a separate restriction from Site SEO Tags' own type restriction on `SiteSeoTags.tags`: even with `custom` unset, Site SEO Tags rejects `script` (e.g. for site-wide structured data) unconditionally. There is currently no way to set site-wide, every-page structured data through any of these APIs — write a per-page `script` tag through the Item SEO Tags API instead.  This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed default/pattern — standard tags always resolve with `custom: false`, even when their content comes from a page's manually saved SEO title/description override. Don't use this field to verify whether a live page reflects a manual per-page SEO edit.  Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the response entirely — there, `false` means this API could not tell, not that no custom tag exists. Pass `seoData` explicitly to resolve against a known set of tags.  `SeoSchemaV2.Tag` expresses this as `written_by = USER_CUSTOM`.  
        - name: disabled | type: boolean | description: Whether the tag is excluded from the rendered <head>.  A disabled tag is still stored, so the user can re-enable it and so a pattern-provided tag stays suppressed on this page. Default false.  


```

### Examples

### resolveItemSeoTags
```javascript
import { seoTags } from '@wix/seo';

async function resolveItemSeoTags(options) {
  const response = await seoTags.resolveItemSeoTags(options);
};
```

### resolveItemSeoTags (with elevated permissions)
```javascript
import { seoTags } from '@wix/seo';
import { auth } from '@wix/essentials';

async function myResolveItemSeoTagsMethod(options) {
  const elevatedResolveItemSeoTags = auth.elevate(seoTags.resolveItemSeoTags);
  const response = await elevatedResolveItemSeoTags(options);
}
```

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

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


async function resolveItemSeoTags(options) {
  const response = await myWixClient.seoTags.resolveItemSeoTags(options);
};
```

---