> 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`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # ResolveStaticPageSeoTags # Package: viewer # Namespace: SeoTagsService # Method link: https://dev.wix.com/docs/api-reference/site/viewer/seo-tags/resolve-static-page-seo-tags.md ## Permission Scopes: View SEO Settings: SCOPE.PROMOTE.VIEW-SEO ## Introduction Resolves SEO tags for a static page using its page name and optional SEO data parameters. This method is optimized for static pages and supports SEO data parameters to customize the generated tags. It returns page-specific SEO tags that include standard meta tags and structured data appropriate for static content. --- ## REST API ### Schema ``` Method: resolveStaticPageSeoTags Description: Resolves SEO tags for a static page using its page name and optional SEO data parameters. This method is optimized for static pages and supports SEO data parameters to customize the generated tags. It returns page-specific SEO tags that include standard meta tags and structured data appropriate for static content. URL: https://www.wixapis.com/promote/seo/v1/resolve-static-page-seo-tags Method: GET Method parameters: query param name: pageName | type: pageName | description: Page name identifier used to locate the page in the site structure. query param name: pageUrl | type: pageUrl | description: Full canonical URL of the static page where the SEO tags are applied. param name: seoData | type: SeoSchema | description: The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines. The search engines use this information for ranking purposes, or to display snippets in the search results. This data will override other sources of tags (for example patterns) and will be included in the section of the HTML document, while not being displayed on the page itself. - name: tags | type: array | description: SEO tag information. - name: type | type: string | description: SEO tag type. Supported values: `title`, `meta`, `script`, `link`. - name: props | type: object | description: A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value. For example: `{"name": "description", "content": "the description itself"}`. - name: meta | type: object | description: SEO tag metadata. For example, `{"height": 300, "width": 240}`. - name: children | type: string | description: SEO tag inner content. For example, ` inner content `. - 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). - name: disabled | type: boolean | description: Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. - name: settings | type: Settings | description: SEO general settings. - name: preventAutoRedirect | type: boolean | description: Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled. Default: `false` (automatical redirect is enabled). - name: keywords | type: array | description: User-selected keyword terms for a specific page. - name: term | type: string | description: Keyword value. - name: isMain | type: boolean | description: Whether the keyword is the main focus keyword. - name: origin | type: string | description: The source that added the keyword terms to the SEO settings. Return type: ResolveStaticPageSeoTagsResponse - name: seoTags | type: SeoTags | description: The resolved SEO tags entity containing static page-specific metadata. - name: id | type: string | description: Unique identifier for the SEO tags collection. - name: tags | type: array | description: Collection of SEO tags containing the complete set of metadata for the page. - name: type | type: string | description: SEO tag type. Supported values: `title`, `meta`, `script`, `link`. - name: props | type: object | description: A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value. For example: `{"name": "description", "content": "the description itself"}`. - name: meta | type: object | description: SEO tag metadata. For example, `{"height": 300, "width": 240}`. - name: children | type: string | description: SEO tag inner content. For example, ` inner content `. - 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). - name: disabled | type: boolean | description: Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. ``` ### Examples ### Resolve Static Page SEO Tags ```curl curl -X GET "https://www.wixapis.com/promote/seo/v1/resolve-static-page-seo-tags?pageUrl=https://sneakers.com/about&pageName=about" \ -H 'Authorization: ' \ -H 'Content-Type: application/json' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.viewer.SeoTagsService.resolveStaticPageSeoTags(options) Description: Resolves SEO tags for a static page using its page name and optional SEO data parameters. This method is optimized for static pages and supports SEO data parameters to customize the generated tags. It returns page-specific SEO tags that include standard meta tags and structured data appropriate for static content. Method parameters: param name: options | type: ResolveStaticPageSeoTagsOptions none - name: pageUrl | type: string | description: Full canonical URL of the static page where the SEO tags are applied. - name: pageName | type: string | description: Page name identifier used to locate the page in the site structure. - name: seoData | type: SeoSchema | description: Custom SEO data for the static page - name: tags | type: array | description: SEO tag information. - name: type | type: string | description: SEO tag type. Supported values: `title`, `meta`, `script`, `link`. - name: props | type: object | description: A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value. For example: `{"name": "description", "content": "the description itself"}`. - name: meta | type: object | description: SEO tag metadata. For example, `{"height": 300, "width": 240}`. - name: children | type: string | description: SEO tag inner content. For example, ` inner content `. - 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). - name: disabled | type: boolean | description: Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. - name: settings | type: Settings | description: SEO general settings. - name: preventAutoRedirect | type: boolean | description: Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled. Default: `false` (automatical redirect is enabled). - name: keywords | type: array | description: User-selected keyword terms for a specific page. - name: term | type: string | description: Keyword value. - name: isMain | type: boolean | description: Whether the keyword is the main focus keyword. - name: origin | type: string | description: The source that added the keyword terms to the SEO settings. Return type: PROMISE - name: seoTags | type: SeoTags | description: The resolved SEO tags entity containing static page-specific metadata. - name: _id | type: string | description: Unique identifier for the SEO tags collection. - name: tags | type: array | description: Collection of SEO tags containing the complete set of metadata for the page. - name: type | type: string | description: SEO tag type. Supported values: `title`, `meta`, `script`, `link`. - name: props | type: object | description: A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value. For example: `{"name": "description", "content": "the description itself"}`. - name: meta | type: object | description: SEO tag metadata. For example, `{"height": 300, "width": 240}`. - name: children | type: string | description: SEO tag inner content. For example, ` inner content `. - 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). - name: disabled | type: boolean | description: Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. ``` ### Examples ### resolveStaticPageSeoTags ```javascript import { seoTags } from '@wix/seo'; async function resolveStaticPageSeoTags(options) { const response = await seoTags.resolveStaticPageSeoTags(options); }; ``` ### resolveStaticPageSeoTags (with elevated permissions) ```javascript import { seoTags } from '@wix/seo'; import { auth } from '@wix/essentials'; async function myResolveStaticPageSeoTagsMethod(options) { const elevatedResolveStaticPageSeoTags = auth.elevate(seoTags.resolveStaticPageSeoTags); const response = await elevatedResolveStaticPageSeoTags(options); } ``` ### resolveStaticPageSeoTags (self-hosted) Self-hosted 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 resolveStaticPageSeoTags(options) { const response = await myWixClient.seoTags.resolveStaticPageSeoTags(options); }; ``` ---