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.

Required access
Send
  • Publishable keyX-Lynkow-Pk
Site access
GET/product-categories/{slug}
Base URLhttps://api.lynkow.com/storefront/{siteId}

Path parameters

slug
string
required

Product category slug, unique per site

Query parameters

fallback
boolean

With `locale`, `false` returns 404 when the item is not translated into the requested locale. Single-language sites ignore it

Default: true

locale
string

BCP 47 locale code (e.g. "en", "fr")

market
string

Market `mkt_` id: products hidden in that market are left out of `structuredData`. Unknown, draft or malformed values are ignored

Feedback

Was this page helpful?