> 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

# ListAccessibilityScanPageCollections

# Package: accessibility

# Namespace: AccessibilityScansService

# Method link: https://dev.wix.com/docs/api-reference/site/accessibility/accessibility-scans-v1/list-accessibility-scan-page-collections.md

## Permission Scopes:
Read Accessibility Scans: SCOPE.ACCESSIBILITY.SCANS_READ

## Introduction

Lists the supported page collections currently available on the
authenticated site. Use the returned collection ID unchanged when the
user asks to scan a page type such as all products, blog posts, booking
services, events, or restaurant menu pages.

---

## REST API

### Schema

```
 Method: listAccessibilityScanPageCollections
 Description: Lists the supported page collections currently available on the authenticated site. Use the returned collection GUID unchanged when the user asks to scan a page type such as all products, blog posts, booking services, events, or restaurant menu pages.
 URL: https://www.wixapis.com/accessibility/v1/accessibility-scans/page-collections
 Method: GET
 Method parameters:
   param name: paging | type: CursorPaging    
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, 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: ListAccessibilityScanPageCollectionsResponse
  - name: pageCollections | type: array<AccessibilityScanPageCollection> | description: Collections supported and currently available on the selected site.  | validation: maxItems 100
     - name: collectionId | type: string | description: Stable public GUID accepted by PageCollectionScanTarget.  | read-only: true | validation: minLength 1, maxLength 200
     - name: displayName | type: string | description: User-facing collection name, for example "Store products".  | read-only: true | validation: minLength 1, maxLength 500
  - name: pagingMetadata | type: CursorPagingMetadata | description: Cursor metadata for retrieving the next page.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - 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
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  


```

### Examples

### List page collections available to scan
Retrieves the stable collection IDs supported on the selected site.

```curl
curl -X GET \
'https://www.wixapis.com/accessibility/v1/accessibility-scans/page-collections?paging.limit=100' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.accessibility.accessibilityScans.listAccessibilityScanPageCollections(options)
 Description: Lists the supported page collections currently available on the authenticated site. Use the returned collection GUID unchanged when the user asks to scan a page type such as all products, blog posts, booking services, events, or restaurant menu pages.
 Method parameters:
   param name: options | type: ListAccessibilityScanPageCollectionsOptions  none  
        - name: paging | type: CursorPaging | description: Cursor paging. The server default and maximum page size is 100.  
           - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, 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<ListAccessibilityScanPageCollectionsResponse>
  - name: pageCollections | type: array<AccessibilityScanPageCollection> | description: Collections supported and currently available on the selected site.  | validation: maxItems 100
     - name: collectionId | type: string | description: Stable public GUID accepted by PageCollectionScanTarget.  | read-only: true | validation: minLength 1, maxLength 200
     - name: displayName | type: string | description: User-facing collection name, for example "Store products".  | read-only: true | validation: minLength 1, maxLength 500
  - name: pagingMetadata | type: CursorPagingMetadata | description: Cursor metadata for retrieving the next page.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - 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
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  


```

### Examples

### List page collections available to scan
Retrieve stable collection IDs supported on the selected site.

```javascript
import { accessibilityScans } from "@wix/accessibility";

async function listPageCollections() {
  const response =
    await accessibilityScans.listAccessibilityScanPageCollections({
      paging: {
        limit: 100,
      },
    });

  return response;
}

/* Promise resolves to:
 * {
 *   "pageCollections": [
 *     {
 *       "collectionId": "wix.site.pages",
 *       "displayName": "Site pages"
 *     },
 *     {
 *       "collectionId": "wix.stores.products",
 *       "displayName": "Store product pages"
 *     }
 *   ],
 *   "pagingMetadata": {
 *     "count": 5,
 *     "hasNext": false,
 *     "total": 5
 *   }
 * }
 */

```

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

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


async function listAccessibilityScanPageCollections(options) {
  const response = await myWixClient.accessibilityScans.listAccessibilityScanPageCollections(options);
};
```

---