> 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

# ListSitemapPages

# Package: sitemap

# Namespace: SeoHeadlessSitemapService

# Method link: https://dev.wix.com/docs/api-reference/business-management/headless/sitemap/headless-sitemap-entry-v1/list-sitemap-pages.md

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

## Introduction

Lists sitemap pages for a given item type with optional pagination.
`item_type` only covers dynamic, repeater-generated items (Stores products, Blog posts,
Bookings services, etc. - see ItemType). It does NOT cover a site's static/main pages
(e.g. classic Editor "Home", "About", "Contact" pages) - those aren't represented by any
ItemType value and are never returned here, even for a fully published site. An empty or
partial `pages` result for a given itemType is not a signal that the site's static pages
are missing or unpublished.
This method is intended for headless sites, which fetch these entries to build and serve
their own sitemap.xml. Classic Editor/Studio sites don't need it - Wix generates and serves
their sitemap.xml for them. Note that the method does not detect or reject a site's editor
type; it reads the site's live Site Structure either way. So it is not a way to distinguish
headless from classic sites, and it is not the right tool for diagnosing a classic site's
auto-generated sitemap - inspect the sitemap XML served on that site's own domain instead.

Returns NOT_FOUND when the site is not indexable or is not published.

---

## REST API

### Schema

```
 Method: listSitemapPages
 Description: Lists sitemap pages for a given item type with optional pagination. `item_type` only covers dynamic, repeater-generated items (Stores products, Blog posts, Bookings services, etc. - see ItemType). It does NOT cover a site's static/main pages (e.g. classic Editor "Home", "About", "Contact" pages) - those aren't represented by any ItemType value and are never returned here, even for a fully published site. An empty or partial `pages` result for a given itemType is not a signal that the site's static pages are missing or unpublished. This method is intended for headless sites, which fetch these entries to build and serve their own sitemap.xml. Classic Editor/Studio sites don't need it - Wix generates and serves their sitemap.xml for them. Note that the method does not detect or reject a site's editor type; it reads the site's live Site Structure either way. So it is not a way to distinguish headless from classic sites, and it is not the right tool for diagnosing a classic site's auto-generated sitemap - inspect the sitemap XML served on that site's own domain instead.  Returns NOT_FOUND when the site is not indexable or is not published.
 URL: https://www.wixapis.com/v1/list-sitemap-pages
 Method: GET
 This method is cacheable: Responses from this method are cached for optimal performance.
 Method parameters:
   param name: itemType | type: ItemType | description: Enum representing different types of items that can have sitemap entries. Covers dynamic, repeater-generated business-solution items only. A site's static/main pages (classic Editor "Home", "About", "Contact", etc.) have no corresponding value here.  
      - enum:
           STORES_PRODUCT - Stores products
           BLOG_POST - Blog posts
           BLOG_CATEGORY - Blog categories
           BLOG_TAGS - Blog tags
           BLOG_ARCHIVE - Blog archives
           FORUM_POST - Forum posts
           FORUM_CATEGORY - Forum categories
           GROUPS_POST - Groups posts
           GROUPS_PAGE - Groups pages
           EVENTS_PAGE - Events pages
           BOOKINGS_SERVICE - Bookings services
           MEMBERS_AREA_PROFILE - Members area profiles
           CHALLENGES_PAGE - Challenges/online programs pages
           STORES_CATEGORY - Store categories
           STORES_SUB_CATEGORY - Store sub-categories
           PORTFOLIO_COLLECTIONS - Portfolio collections
           PORTFOLIO_PROJECTS - Portfolio projects
           PRICING_PLANS - Pricing plans
           RESTAURANTS_MENU_PAGE - Restaurant menu pages
   param name: paging | type: CursorPaging    
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 200, 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
 Return type: ListSitemapPagesResponse
  - name: pages | type: array<SitemapEntry> | description: List of sitemap entries  
     - name: id | type: string | description: Entity identifier (e.g., productId, pageId)  | validation: minLength 1, maxLength 255
     - name: shouldBeIncludedInSitemap | type: boolean | description: Indicates if the entry should be included in the generated sitemap.  
     - name: updatedDate | type: string | description: Optional last modification date in ISO 8601 format  | validation: maxLength 50
     - name: images | type: array<Image> | description: Optional list of images  | validation: maxItems 1000
        - name: url | type: string | description: Image URL  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: altText | type: string | description: Optional image alt text  | validation: maxLength 2048
     - name: videos | type: array<Video> | description: Optional list of video data  | validation: maxItems 100
        - name: url | type: string | description: Video content location URL  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: thumbnailUrl | type: string | description: Video thumbnail location URL  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: title | type: string | description: Optional video title  | validation: maxLength 255
        - name: description | type: string | description: Optional video description  | validation: maxLength 1000
  - name: pagingMetadata | type: PagingMetadataV2 | description: Paging metadata for next page of results  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query. 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

### ListSitemapPages
```curl
~~~cURL
curl -X GET \
  'https://www.wixapis.com/v1/list-sitemap-pages?itemType=BLOG_POST&paging.limit=50' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: <AUTH>' \
  -H 'wix-site-id: <SITE_ID>'
~~~
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.seo.seoSitemapEntries.listSitemapPages(options)
 Description: Lists sitemap pages for a given item type with optional pagination. `item_type` only covers dynamic, repeater-generated items (Stores products, Blog posts, Bookings services, etc. - see ItemType). It does NOT cover a site's static/main pages (e.g. classic Editor "Home", "About", "Contact" pages) - those aren't represented by any ItemType value and are never returned here, even for a fully published site. An empty or partial `pages` result for a given itemType is not a signal that the site's static pages are missing or unpublished. This method is intended for headless sites, which fetch these entries to build and serve their own sitemap.xml. Classic Editor/Studio sites don't need it - Wix generates and serves their sitemap.xml for them. Note that the method does not detect or reject a site's editor type; it reads the site's live Site Structure either way. So it is not a way to distinguish headless from classic sites, and it is not the right tool for diagnosing a classic site's auto-generated sitemap - inspect the sitemap XML served on that site's own domain instead.  Returns NOT_FOUND when the site is not indexable or is not published.
 This method is cacheable: Responses from this method are cached for optimal performance.
 Method parameters:
   param name: options | type: ListSitemapPagesOptions  none  
        - name: itemType | type: ItemType | description: Item type identifier - must be a valid enum value  
             - enum:
             -     STORES_PRODUCT: Stores products
             -     BLOG_POST: Blog posts
             -     BLOG_CATEGORY: Blog categories
             -     BLOG_TAGS: Blog tags
             -     BLOG_ARCHIVE: Blog archives
             -     FORUM_POST: Forum posts
             -     FORUM_CATEGORY: Forum categories
             -     GROUPS_POST: Groups posts
             -     GROUPS_PAGE: Groups pages
             -     EVENTS_PAGE: Events pages
             -     BOOKINGS_SERVICE: Bookings services
             -     MEMBERS_AREA_PROFILE: Members area profiles
             -     CHALLENGES_PAGE: Challenges/online programs pages
             -     STORES_CATEGORY: Store categories
             -     STORES_SUB_CATEGORY: Store sub-categories
             -     PORTFOLIO_COLLECTIONS: Portfolio collections
             -     PORTFOLIO_PROJECTS: Portfolio projects
             -     PRICING_PLANS: Pricing plans
             -     RESTAURANTS_MENU_PAGE: Restaurant menu pages
        - name: paging | type: CursorPaging | description: Optional cursor for pagination  
           - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 200, 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
 Return type: PROMISE<ListSitemapPagesResponse>
  - name: pages | type: array<SitemapEntry> | description: List of sitemap entries  
     - name: _id | type: string | description: Entity identifier (e.g., productId, pageId)  | validation: minLength 1, maxLength 255
     - name: shouldBeIncludedInSitemap | type: boolean | description: Indicates if the entry should be included in the generated sitemap.  
     - name: _updatedDate | type: string | description: Optional last modification date in ISO 8601 format  | validation: maxLength 50
     - name: images | type: array<Image> | description: Optional list of images  | validation: maxItems 1000
        - name: url | type: string | description: Image URL  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: altText | type: string | description: Optional image alt text  | validation: maxLength 2048
     - name: videos | type: array<Video> | description: Optional list of video data  | validation: maxItems 100
        - name: url | type: string | description: Video content location URL  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: thumbnailUrl | type: string | description: Video thumbnail location URL  | validation: minLength 1, maxLength 2048, format WEB_URL
        - name: title | type: string | description: Optional video title  | validation: maxLength 255
        - name: description | type: string | description: Optional video description  | validation: maxLength 1000
  - name: pagingMetadata | type: PagingMetadataV2 | description: Paging metadata for next page of results  
     - name: count | type: integer | description: Number of items returned in the response.  | validation: format int32
     - name: offset | type: integer | description: Offset that was requested.  | validation: format int32
     - name: total | type: integer | description: Total number of items that match the query. 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

### listSitemapPages
```javascript
import { seoSitemapEntries } from '@wix/seo';

async function listSitemapPages(options) {
  const response = await seoSitemapEntries.listSitemapPages(options);
};
```

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

async function myListSitemapPagesMethod(options) {
  const elevatedListSitemapPages = auth.elevate(seoSitemapEntries.listSitemapPages);
  const response = await elevatedListSitemapPages(options);
}
```

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

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


async function listSitemapPages(options) {
  const response = await myWixClient.seoSitemapEntries.listSitemapPages(options);
};
```

---