> 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

# ListSitemaps

# Package: bingWebmasterTools

# Namespace: BwtService

# Method link: https://dev.wix.com/docs/api-reference/business-management/seo/bing-webmaster-tools/site-readiness-v1/list-sitemaps.md

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

## Introduction

Retrieves the sitemaps submitted for the site, with Bing's processing
details for each: status, URL count, and submission and crawl dates.

---

## REST API

### Schema

```
 Method: listSitemaps
 Description: Retrieves the sitemaps submitted for the site, with Bing's processing details for each: status, URL count, and submission and crawl dates.
 URL: https://www.wixapis.com/gsc/connection/v1/bing/sitemaps
 Method: GET
 Return type: ListSitemapsResponse
  - name: sitemaps | type: array<Sitemap> | description: The sitemaps submitted for the site, with Bing's processing details.  | validation: maxItems 1000
     - name: url | type: string | description: URL of the sitemap.  | read-only: true | validation: maxLength 2000
     - name: type | type: string | description: Type of the sitemap, in Bing's vocabulary. For example, `Sitemap` or `Sitemap Index`. Unset when Bing doesn't report it.  | read-only: true | validation: maxLength 100
     - name: status | type: string | description: Bing's processing status of the sitemap, in Bing's vocabulary. For example, `Success` or `Pending`. Unset when Bing doesn't report it.  | read-only: true | validation: maxLength 100
     - name: submittedDate | type: string | description: Date and time the sitemap was submitted.  | read-only: true | validation: format date-time
     - name: lastCrawledDate | type: string | description: Date and time Bing last crawled the sitemap.  | read-only: true | validation: format date-time
     - name: urlCount | type: string | description: Number of URLs in the sitemap. Unset when Bing doesn't report it.  | read-only: true | validation: format int64
     - name: fileSize | type: string | description: Size of the sitemap file in bytes. Unset when Bing doesn't report it.  | read-only: true | validation: format int64
     - name: compressed | type: boolean | description: Whether the sitemap file is compressed. Unset when Bing doesn't report it.  | read-only: true 

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SITE_PROPERTY_NOT_OWNED | Description: The connected Bing account hasn't added and verified the site. Add it with Add Site and verify it with Verify Site first.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: MISSING_TOKEN | Description: No Bing account is connected for this site. Connect one with the BWT Connection API first.
   HTTP Code: 429 | Status Code: RESOURCE_EXHAUSTED | Application Code: BING_QUOTA_EXCEEDED | Description: Bing throttled the request. Retry after the throttling window.
   HTTP Code: 503 | Status Code: UNAVAILABLE | Application Code: BING_UNAVAILABLE | Description: Bing answered with a temporary server error. Retry with backoff.


```

### Examples

### List Sitemaps
```curl
curl -X GET \
'https://www.wixapis.com/bwt/v1/bing/sitemaps' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.bwt.siteReadiness.listSitemaps()
 Description: Retrieves the sitemaps submitted for the site, with Bing's processing details for each: status, URL count, and submission and crawl dates.
 Return type: PROMISE<ListSitemapsResponse>
  - name: sitemaps | type: array<Sitemap> | description: The sitemaps submitted for the site, with Bing's processing details.  | validation: maxItems 1000
     - name: url | type: string | description: URL of the sitemap.  | read-only: true | validation: maxLength 2000
     - name: type | type: string | description: Type of the sitemap, in Bing's vocabulary. For example, `Sitemap` or `Sitemap Index`. Unset when Bing doesn't report it.  | read-only: true | validation: maxLength 100
     - name: status | type: string | description: Bing's processing status of the sitemap, in Bing's vocabulary. For example, `Success` or `Pending`. Unset when Bing doesn't report it.  | read-only: true | validation: maxLength 100
     - name: submittedDate | type: Date | description: Date and time the sitemap was submitted.  | read-only: true 
     - name: lastCrawledDate | type: Date | description: Date and time Bing last crawled the sitemap.  | read-only: true 
     - name: urlCount | type: string | description: Number of URLs in the sitemap. Unset when Bing doesn't report it.  | read-only: true | validation: format int64
     - name: fileSize | type: string | description: Size of the sitemap file in bytes. Unset when Bing doesn't report it.  | read-only: true | validation: format int64
     - name: compressed | type: boolean | description: Whether the sitemap file is compressed. Unset when Bing doesn't report it.  | read-only: true 

 Possible Errors:
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: SITE_PROPERTY_NOT_OWNED | Description: The connected Bing account hasn't added and verified the site. Add it with Add Site and verify it with Verify Site first.
   HTTP Code: 428 | Status Code: FAILED_PRECONDITION | Application Code: MISSING_TOKEN | Description: No Bing account is connected for this site. Connect one with the BWT Connection API first.
   HTTP Code: 429 | Status Code: RESOURCE_EXHAUSTED | Application Code: BING_QUOTA_EXCEEDED | Description: Bing throttled the request. Retry after the throttling window.
   HTTP Code: 503 | Status Code: UNAVAILABLE | Application Code: BING_UNAVAILABLE | Description: Bing answered with a temporary server error. Retry with backoff.


```

### Examples

### List the sitemaps submitted for the site
```javascript
import { siteReadiness } from "@wix/bwt";

async function listSitemaps() {
  const response = await siteReadiness.listSitemaps();
}

/* Promise resolves to:
 * {
 *   "sitemaps": [
 *     {
 *       "url": "https://www.my-fashion-store.com/sitemap.xml",
 *       "type": "Sitemap Index",
 *       "status": "Success",
 *       "submittedDate": "2026-10-13T10:47:12.000Z",
 *       "lastCrawledDate": "2026-10-14T03:21:40.000Z",
 *       "urlCount": "2",
 *       "fileSize": "1842",
 *       "compressed": false
 *     },
 *     {
 *       "url": "https://www.my-fashion-store.com/blog-posts-sitemap.xml",
 *       "status": "Pending",
 *       "submittedDate": "2026-10-16T08:05:31.000Z",
 *       "urlCount": "0",
 *       "fileSize": "0"
 *     }
 *   ]
 * }
 */

```

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

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


async function listSitemaps() {
  const response = await myWixClient.siteReadiness.listSitemaps();
};
```

---