Skip to main content

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​

ParameterTypeDescription
pageIntegerPage number to return. Default is 1.
limitIntegerNumber of brands per page. Default is 10.
nameStringFilter brands whose name contains this text (case-insensitive).
isFeaturedBooleanFilter by featured status: true or false.
isShowBooleanFilter by storefront visibility: true or false.
isShowNavBarBooleanFilter by navigation bar visibility: true or false.
idStringReturn only the brand with this ID.
id:inStringComma-separated list of brand IDs to return.
date_created:minStringReturn brands created on or after this date (for example 2024-05-01).
date_created:maxStringReturn brands created on or before this date.
date_modified:minStringReturn brands last updated on or after this date.
date_modified:maxStringReturn brands last updated on or before this date.
metafields:<code>StringFilter brands whose metafield <code> equals this value, for example metafields:country_of_origin=Germany.
metafields-in:<code>StringFilter 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.

FieldTypeDescription
idStringUnique identifier of the brand.
nameStringName of the brand.
urlStringURL slug of the brand page on the storefront.
productCountNumberNumber of products assigned to the brand.
sortOrderNumberDisplay order. Lower numbers appear first.
isFeaturedBooleanWhether the brand is featured.
isShowBooleanWhether the brand is visible on the storefront.
isShowNavBarBooleanWhether the brand appears in the navigation bar.

Pagination Details​

FieldTypeDescription
pageNumberCurrent page number.
totalNumberTotal number of brands matching the filters.
countNumberNumber 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-01 or 2024-05-01T00:00:00Z) in date filters.