This recipe demonstrates how to list and query all sites associated with a Wix account.
Endpoint: POST https://www.wixapis.com/site-list/v2/sites/query
Request Body:
Request:
For accounts with many sites, use cursor-based pagination:
First Request:
Next Page (using cursor from response):
Continue until hasNext is false.
Retrieve all sites without filtering - useful for account dashboards or site selection interfaces.
After querying, filter results by name or ID to locate a specific site.
After finding a site: