Query Sites

Download skill
Copy

This recipe demonstrates how to list and query all sites associated with a Wix account.

Prerequisites

  • Account-level API access
  • Authorization for site listing permissions

Required APIs

  • Query Sites API: REST

Query All Sites

Endpoint: POST https://www.wixapis.com/site-list/v2/sites/query

Request Body:

Copy

Request:

Copy

Response Structure

Copy

Pagination

For accounts with many sites, use cursor-based pagination:

First Request:

Copy

Next Page (using cursor from response):

Copy

Continue until hasNext is false.


Common Use Cases

List All Sites

Retrieve all sites without filtering - useful for account dashboards or site selection interfaces.

Find a Specific Site

After querying, filter results by name or ID to locate a specific site.


Next Steps

After finding a site:

Did this help?