Get a product category by slug
Returns one visible product category by its slug, with `structuredData.graph`, the page's JSON-LD graph. Its `ItemList` holds the first 20 published products of the category and its visible subcategories, newest first, without those hidden in the served language or in `market`. A subcategory also gets a `BreadcrumbList`. With `locale`, the slug can also be the translated slug, and the category is served in the requested locale or its fallback chain: base language, site default locale, then its own language. Errors: 404 `PRODUCT_CATEGORY_NOT_FOUND` for an unknown or hidden category. The slug `tree` reaches the tree read instead. > **Note:** Available only on sites with e-commerce enabled.
/product-categories/{slug}https://api.lynkow.com/storefront/{siteId}Path parameters
slugstringrequiredProduct category slug, unique per site
Query parameters
fallbackbooleanWith `locale`, `false` returns 404 when the item is not translated into the requested locale. Single-language sites ignore it
localestringBCP 47 locale code (e.g. "en", "fr")
marketstringMarket `mkt_` id: products hidden in that market are left out of `structuredData`. Unknown, draft or malformed values are ignored