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_PRODUCTorREAD_WRITE_PRODUCT
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | Integer | Page number to retrieve. Default is 1. |
limit | Integer | Number of products per page. Default is 10. |
entityId | String | Comma-separated list of product entity IDs, for example 101,102. |
status | String | Comma-separated list of statuses: active, inactive. |
name | String | Filter products whose name contains this text (not case-sensitive). |
sku | String | Filter products whose SKU, or any variant SKU, contains this text (not case-sensitive). |
sku:in | String | Comma-separated list of exact SKUs. A variant SKU returns its parent product. |
isFeatured | Boolean | Filter by featured products (true or false). |
isFreeShipping | Boolean | Filter by products with free shipping (true or false). |
minPrice | Number | Return products with a price greater than or equal to this value. |
maxPrice | Number | Return products with a price less than or equal to this value. |
date_created:min | String | Return products created on or after this date (ISO 8601). |
date_created:max | String | Return products created on or before this date (ISO 8601). |
date_modified:min | String | Return products updated on or after this date (ISO 8601). |
date_modified:max | String | Return products updated on or before this date (ISO 8601). |
categories | String | Comma-separated list of category IDs. |
productGroups | String | Return products in this product group. See Product Groups. |
outOfStock | Boolean | Set to true to return only products that are out of stock. |
metaCode | String | Metafield code to filter by. Use together with metaValue. |
metaValue | String | Metafield value to match for metaCode. |
metafields:<code> | String | Return products whose metafield <code> has this value, for example metafields:material=steel. |
metafields-in:<code> | String | Comma-separated list of values. Return products whose metafield <code> has any of them. |
excludeFields | String | Comma-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
| Field | Type | Description |
|---|---|---|
page | Number | Current page number. |
total | Number | Total number of products matching the filters. |
count | Number | Number of products returned on this page. |
Notes
- Use
sku:into look up products by SKU after creating them in bulk. - Use
excludeFieldsto make responses smaller when you do not need every field.