Products
List Product Categories
Retrieve active, public product categories.
GET
Returns a paginated list of product categories; inactive and internal categories are always excluded.
Query parameters
number
default:"50"
Maximum number of categories to return.
number
default:"0"
Number of categories to skip before collecting results.
string
Field to sort by, prefixed with
- for descending order.string
Comma-separated fields and relations to include; prefix with
+/- to add to or remove from the defaults.string
Free-text search term applied to category fields.
string | string[]
Filter by one or more category IDs.
string | string[]
Filter by one or more category handles.
string | string[]
Filter by parent category ID; pass
null to fetch top-level categories.boolean
Include each category’s ancestors in
parent_category.boolean
Include each category’s descendants in
category_children.object
Filter by creation date using operators like
$gt, $gte, $lt, $lte.object
Filter by update date using operators like
$gt, $gte, $lt, $lte.object[]
Join multiple filter objects with a logical AND.
object[]
Join multiple filter objects with a logical OR.
Response
object[]
number
Total number of matching categories.
number
Number of skipped categories.
number
Maximum number of returned categories.