Behio Storefront SDK
Catalog & Products

Products & Search

Browse, filter, and search products

List Products

const result = await client.catalog.getProducts({
  page: 1,
  limit: 24,
  sort: 'price_asc',
  inStock: true,
});
// { items: ProductListItem[], total, page, totalPages }

Filter Options

ParamTypeDescription
pagenumberPage number (1-based)
limitnumberItems per page (default 24)
categorystringFilter by category slug
labelstringFilter by label slug
priceMinnumberMinimum price
priceMaxnumberMaximum price
sortstringprice_asc, price_desc, name_asc, newest
inStockbooleanOnly in-stock items
searchstringFull-text search
idsstring[]Filter by product IDs
slugsstring[]Filter by slugs
labelsstring[]Multiple labels (OR)
categoriesstring[]Multiple categories (OR)
hasDiscountbooleanOnly discounted products
isFeaturedbooleanOnly featured products
customFieldsobjectCustom field filters

Product Detail

const product = await client.catalog.getProduct('wireless-headphones', {
  locale: 'cs',
  currency: 'CZK',
});
const results = await client.catalog.search('bluetooth speaker', {
  page: 1,
  limit: 10,
});

Dynamic Filters

Build filter UI from available filter fields:

const { filters } = await client.catalog.getFilters();
// [{ key: 'color', label: 'Color', type: 'select', options: [...] }]

On this page