List Products
GET
/store/productsRetrieves a list of products. The products can be filtered by fields such as id
or q
. The products can also be sorted or paginated.
This API Route can also be used to retrieve a product by its handle.
For accurate and correct pricing of the products based on the customer's context, it's highly recommended to pass fields such asregion_id
, currency_code
, and cart_id
when available.
Passing sales_channel_id
ensures retrieving only products available in the specified sales channel.
You can alternatively use a publishable API key in the request header instead of passing a sales_channel_id
.
Request
term used to search products' title, description, variant's title, variant's sku, and collection's title.
Filter by IDs.
Filter by sales channel IDs. When provided, only products available in the selected sales channels are retrieved. Alternatively, you can pass a publishable API key in the request header and this will have the same effect.
Filter by product collection IDs. When provided, only products that belong to the specified product collections are retrieved.
Filter by product type IDs. When provided, only products that belong to the specified product types are retrieved.
Filter by product tag IDs. When provided, only products that belong to the specified product tags are retrieved.
Filter by title.
Filter by description
Filter by handle.
Whether to retrieve regular products or gift-card products.
filter by dates less than this date
filter by dates greater than this date
filter by dates less than or equal to this date
filter by dates greater than or equal to this date
Filter by product category IDs. When provided, only products that belong to the specified product categories are retrieved.
Whether to include child product categories when filtering using the category_id
field.
The number of products to skip when retrieving the products.
Limit the number of products returned.
Comma-separated relations that should be expanded in the returned products.
Comma-separated fields that should be included in the returned products.
A product field to sort-order the retrieved products by.
The ID of the cart. This is useful for accurate pricing based on the cart's context.
The ID of the region. This is useful for accurate pricing based on the selected region.
A 3 character ISO currency code. This is useful for accurate pricing based on the selected currency.