Products > Categories > storefrontCategories
Storefront APIProductsCategoriesstorefrontCategories
storefrontCategories
GET:storefront/categories.json

Description

Get top level or specific categories.

Topic: Categories

Arguments

children_of: String

Unique category identifier. See also: Unique Identifiers

Example: "ca_EQzGqWoY"


featured: Boolean

If set, show only featured categories


ids: [String!]

List of category ids. See also: Unique Identifiers

Example: ["ca_EQzGqWoY"]


loose: Boolean

When asking for multiple items, allow returning less than was asked (in case some are missing)


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Result

[StorefrontCategory!]

Preview (typescript)

function storefrontCategories(
children_of?: string
featured?: boolean
ids?: string[]
loose?: boolean
shop_id: string
): StorefrontCategory[]