Get All Brands
Retrieves a list of brands. You can filter the list by name, visibility, IDs, dates and metafield values. Brands are sorted by sortOrder, then by name.
HTTP Request
- URL:
/brands - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope: None. Any valid access token can call this endpoint.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | Integer | Page number to return. Default is 1. |
limit | Integer | Number of brands per page. Default is 10. |
name | String | Filter brands whose name contains this text (case-insensitive). |
isFeatured | Boolean | Filter by featured status: true or false. |
isShow | Boolean | Filter by storefront visibility: true or false. |
isShowNavBar | Boolean | Filter by navigation bar visibility: true or false. |
id | String | Return only the brand with this ID. |
id:in | String | Comma-separated list of brand IDs to return. |
date_created:min | String | Return brands created on or after this date (for example 2024-05-01). |
date_created:max | String | Return brands created on or before this date. |
date_modified:min | String | Return brands last updated on or after this date. |
date_modified:max | String | Return brands last updated on or before this date. |
metafields:<code> | String | Filter brands whose metafield <code> equals this value, for example metafields:country_of_origin=Germany. |
metafields-in:<code> | String | Filter brands whose metafield <code> matches any of these comma-separated values, for example metafields-in:country_of_origin=Germany,Japan. |
cURL Example
curl --location '<BASE_URL>/brands?page=1&limit=20&isShow=true' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The list of brands was returned successfully.
- 400 Bad Request: The access token is missing or invalid, or a filter value is not valid.
Sample JSON Response
{
"success": true,
"data": [
{
"id": "663a0f1e4587085935a4fa21",
"name": "Acme Tools",
"url": "acme-tools",
"description": "Professional-grade hand and power tools.",
"image": "https://cdn.example.com/brands/acme-tools.webp",
"productCount": 128,
"sortOrder": 0,
"isFeatured": true,
"isShow": true,
"isShowNavBar": false,
"seo": {
"pageTitle": "Acme Tools",
"metaKeywords": "acme, tools",
"metaDescription": "Shop Acme Tools products."
},
"metaFields": [],
"createdAt": "2024-05-07T11:13:02.066Z",
"updatedAt": "2024-10-09T13:05:59.036Z"
}
],
"pagination": {
"page": 1,
"total": 1,
"count": 1
}
}
Response Details
Brand Data
Each item in data is a brand. See Get Single Brand for the full list of brand fields.
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier of the brand. |
name | String | Name of the brand. |
url | String | URL slug of the brand page on the storefront. |
productCount | Number | Number of products assigned to the brand. |
sortOrder | Number | Display order. Lower numbers appear first. |
isFeatured | Boolean | Whether the brand is featured. |
isShow | Boolean | Whether the brand is visible on the storefront. |
isShowNavBar | Boolean | Whether the brand appears in the navigation bar. |
Pagination Details
| Field | Type | Description |
|---|---|---|
page | Number | Current page number. |
total | Number | Total number of brands matching the filters. |
count | Number | Number of brands returned on this page. |
Notes
- Metafield values are matched as text. If you pass more than one metafield filter, brands matching any of them are returned. See Metafields for the available codes.
- Use ISO 8601 dates (for example
2024-05-01or2024-05-01T00:00:00Z) in date filters.