Website API overview
Current version: 1.0
For versioning details, read the Versioning guide.
Use the Website API to retrieve fundamental details about a Squarespace merchant site, the active website member authenticated via OAuth, and organizational units such as the website store pages. This API is essential for apps that need to identify the merchant site they are interacting with and discover commerce-enabled pages to sync data like products and orders.
API resources
The Website API provides read-only access to several core resource objects:
Website: Represents the Squarespace merchant site itself. It provides essential metadata such as the site's unique identifier, the primary domain, the site title, and locale/currency information.
Member: Represents the Squarespace user authenticated via an OAuth token. It provides basic details about the user interacting with your application.
StorePage: Represents a single commerce-enabled page (formerly known as a Products Page) on the merchant site. It provides basic metadata about that page, such as its name, URL slug, and unique ID.
For example, each Product on a merchant site belongs to a single StorePage. To successfully interact with the Products API or sync catalog data, you often need to retrieve the available StorePage IDs first.
Store pages and product visibility
A Store Page is a commerce-enabled collection of products on a Squarespace merchant site. Every product details page is a child of a Store Page, and a product cannot belong to more than one Store Page.
Read the How Squarespace organizes products knowledge base article for more context on how merchants organize and display products on their site.
Store Page and product settings directly impact whether a product is visible for purchase. A product is unavailable for purchase if its Store Page is "Disabled" and/or if the product's status is "Hidden". How a merchant configures their site navigation (e.g., "Not linking" the Store Page, grouping products under a category) has no effect on product visibility for purchases.
Settings that affect visibility
Enabled or disabled page setting
Squarespace UI > Pages > any Store Page > gear icon > Store Settings editor > General
A newly added Store Page is enabled by default. Enabled Store Pages are immediately available on the merchant site and can be indexed by search engines. A disabled Store Page can't be accessed by site visitors — this applies to all products within the Store Page.
Visible or hidden product status
Squarespace UI > Pages > any Store Page > any product card > product editor
OR
Squarespace UI > Commerce > Inventory > any product row > product editor
Each product has a "Visible" or "Hidden" status. A "Hidden" product is unavailable to customers while browsing products on a Store Page or via its direct URL.
What information isn't available?
- Configuration settings for non-commerce pages (like blogs or galleries).
- Design, layout, or styling configurations of the website.
- Billing or subscription details for the Squarespace merchant account.
Supported endpoints
The Website API supports the following requests to retrieve site and page information.
- Retrieve basic details about the website
- Retrieve basic details about the Squarespace member who owns the provided OAuth token
- Get information on store pages
When retrieving store pages, results are returned as a paginated list of up to 50 store pages per request. Use the cursor query parameter to retrieve subsequent pages of results. An empty array is returned if the site has no store pages.
Further reading
- Learn how to manage products within Store Pages using the Products API
- Become familiar with common commerce terms and how they're related to the API
- Obtain an API key or use OAuth to authenticate your requests
- Read the FAQ guide for answers to common questions