Skip to main content

Get All Products

Retrieves a paginated list of products. You can filter the list by SKU, name, status, price, dates, categories, stock status or metafield values.

HTTP Request​

  • URL: /products
  • Method: GET
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: READ_PRODUCT or READ_WRITE_PRODUCT

Query Parameters​

ParameterTypeDescription
pageIntegerPage number to retrieve. Default is 1.
limitIntegerNumber of products per page. Default is 10.
entityIdStringComma-separated list of product entity IDs, for example 101,102.
statusStringComma-separated list of statuses: active, inactive.
nameStringFilter products whose name contains this text (not case-sensitive).
skuStringFilter products whose SKU, or any variant SKU, contains this text (not case-sensitive).
sku:inStringComma-separated list of exact SKUs. A variant SKU returns its parent product.
isFeaturedBooleanFilter by featured products (true or false).
isFreeShippingBooleanFilter by products with free shipping (true or false).
minPriceNumberReturn products with a price greater than or equal to this value.
maxPriceNumberReturn products with a price less than or equal to this value.
date_created:minStringReturn products created on or after this date (ISO 8601).
date_created:maxStringReturn products created on or before this date (ISO 8601).
date_modified:minStringReturn products updated on or after this date (ISO 8601).
date_modified:maxStringReturn products updated on or before this date (ISO 8601).
categoriesStringComma-separated list of category IDs.
productGroupsStringReturn products in this product group. See Product Groups.
outOfStockBooleanSet to true to return only products that are out of stock.
metaCodeStringMetafield code to filter by. Use together with metaValue.
metaValueStringMetafield value to match for metaCode.
metafields:<code>StringReturn products whose metafield <code> has this value, for example metafields:material=steel.
metafields-in:<code>StringComma-separated list of values. Return products whose metafield <code> has any of them.
excludeFieldsStringComma-separated list of fields to leave out of the response, for example variants,specifications.

cURL Example​

curl --location '<BASE_URL>/products?page=1&limit=10&status=active&sku:in=C3200-E,F-96-100' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The list of products was returned successfully.
  • 400 Bad Request: The access token is missing or invalid, or a query parameter is not valid.

Sample JSON Response​

{
"success": true,
"data": [
{
"id": "67bb23803b6220fb83f2a1c2",
"entityId": 1042,
"name": "Contractor Trash Bags 60 Gal",
"sku": "C3200",
"productType": "configurable",
"hasOptions": true,
"status": "active",
"visibility": true,
"price": 48.5,
"priceRange": { "minPrice": 48.5, "maxPrice": 52 },
"customUrl": "contractor-trash-bags-60-gal",
"brand": "65b0d13f98539a33577ac4ce",
"categories": ["696a558b2c0b334070270d81"],
"trackInventory": true,
"inventory": { "stock": 340, "minStock": 20 },
"mediaGallery": [
{
"id": "67bb23803b6220fb83f2a1d3",
"url": "https://cdn.example.com/products/c3200.webp",
"type": "image",
"label": "Front",
"isDefault": true
}
],
"variants": [
{
"_id": "67bb23803b6220fb83f2a1dc",
"sku": "C3200-E",
"name": "Each",
"price": 48.5,
"options": [
{ "optionName": "Unit", "optionValueLabel": "Each", "optionValue": "EA" }
],
"isActive": true
}
],
"createdAt": "2025-02-23T13:28:00.512Z",
"updatedAt": "2025-09-14T08:02:41.118Z"
}
],
"pagination": {
"page": 1,
"total": 1,
"count": 1
}
}

Response Details​

Product Data​

Each item in data is a product. The sample above is shortened. For the full list of product fields, see Get Product.

Pagination Details​

FieldTypeDescription
pageNumberCurrent page number.
totalNumberTotal number of products matching the filters.
countNumberNumber of products returned on this page.

Notes​

  • Use sku:in to look up products by SKU after creating them in bulk.
  • Use excludeFields to make responses smaller when you do not need every field.