Skip to main content
Filter
What would you like to search for?
Frontend API
Retrieve product categories to display in a storefront.
Returns a list of product categories, with offset pagination using limit and page.
List categories
await swell.categories.list({
limit: 25,
page: 1
})
Returns a single category.
Get a category
// By slug
await swell.categories.get('mens-shirts')
// By ID
await swell.categories.get('5c15505200c7d14d851e510g')