> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Get a product collection by slug

**Published**: 2026-11-30
**Category**: Commerce

## `GET /product-collections/:slug`

**Get a product collection by slug**

Returns one product collection by its slug, with `structuredData.graph`, the page's
JSON-LD graph. Its `ItemList` holds the collection's first 20 published products,
newest first, without those hidden in the served language or in `market`.

With `locale`, the slug can also be the translated slug, and the collection is served
in the requested locale or its fallback chain: base language, site default locale,
then its own language.

Errors: 404 `PRODUCT_COLLECTION_NOT_FOUND` for an unknown slug.

> **Note:** Available only on sites with e-commerce enabled.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | Yes | Product collection slug, unique per site |
| `locale` | query | string | No | BCP 47 locale code (e.g. "en", "fr") |
| `fallback` | query | boolean (default true) | No | With `locale`, `false` returns 404 when the item is not translated into the requested locale. Single-language sites ignore it |
| `market` | query | string | No | Market `mkt_` id: products hidden in that market are left out of `structuredData`. Unknown, draft or malformed values are ignored |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Missing or invalid storefront publishable key |
| `402` | The site subscription does not currently permit this operation |
| `403` | The storefront key origin is not allowed |
| `404` | Not found |
| `422` | Validation error |


> **Notes:** Cache: `Cache-Control: public, max-age=0, s-maxage=300`. Rate-limit
> bucket: general.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({
  siteId: process.env.LYNKOW_SITE_ID!,
  publishableKey: process.env.LYNKOW_PK,
})

import { renderJsonLdGraph } from 'lynkow'

const collection = await lynkow.productCollections.getBySlug('summer', { locale: 'fr' })
// <div dangerouslySetInnerHTML={{ __html: renderJsonLdGraph(collection.structuredData?.graph) }} />
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/product-collections/summer-2026" \
  -H "X-Lynkow-Pk: lkw_pk_..."
```

```javascript
const res = await fetch(
  `https://api.lynkow.com/storefront/${siteId}/product-collections/summer-2026`,
  { headers: { 'X-Lynkow-Pk': publishableKey } }
)
const { data } = await res.json()
// data.structuredData.graph is ready for an application/ld+json script
```

### Response Example

```json
{
  "data": {
    "id": "col_01j9pa0nzk7bx4hq7m2dc9v5t8",
    "slug": "summer-2026",
    "path": "/collections/summer-2026",
    "title": "Summer 2026",
    "description": "Light pieces for the warm season.",
    "image": "https://cdn.lynkow.com/sites/acme/collections/summer-2026.jpg",
    "imageAlt": "Linen shirts on a beach towel",
    "seoTitle": null,
    "seoDescription": null,
    "keywords": "summer, linen",
    "canonicalUrl": null,
    "ogTitle": null,
    "ogDescription": null,
    "ogImage": null,
    "ogImageAlt": null,
    "twitterCard": "summary_large_image",
    "noIndex": false,
    "noFollow": false,
    "structuredData": {
      "graph": [
        {
          "@context": "https://schema.org",
          "@id": "https://www.acme.io/collections/summer-2026#auto:collectionpage",
          "@type": "CollectionPage",
          "name": "Summer 2026",
          "inLanguage": "en",
          "description": "Light pieces for the warm season.",
          "url": "https://www.acme.io/collections/summer-2026",
          "mainEntity": {
            "@type": "ItemList",
            "itemListElement": [
              {
                "@type": "ListItem",
                "position": 1,
                "url": "https://www.acme.io/products/linen-shirt",
                "name": "Linen shirt"
              }
            ]
          }
        }
      ]
    }
  }
}
```

---