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

# Get a published product

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

## `GET /products/:idOrSlug`

**Get a published product**

Returns one published product by its `prod_` id or its slug, with
`structuredData.graph`, the page's JSON-LD graph.

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

Prices include VAT where it applies, for a delivery to `country`, else to the
merchant's country, which bookable products always use.

Errors: 404 `PRODUCT_NOT_FOUND` for an unknown or unpublished product, or one hidden
in the language read (the default locale without `locale`) or in `market`.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `idOrSlug` | path | string | Yes | Product identifier (prod_ prefixed id) or product slug. Only a product published on the site resolves |
| `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: a product hidden in that market returns 404. An unknown, draft or malformed value is ignored |
| `country` | query | string | No | Delivery country (ISO 3166-1 alpha-2) the prices include VAT for. An unusable value falls back to the merchant's country |


### 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 |


### SDK

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

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

const product = await lynkow.products.getBySlug('classic-tee', { locale: 'fr', country: 'FR' })
for (const variant of product.variants) {
  const label = variant.optionValues.map((ov) => ov.value).join(' / ')
  console.log(label, variant.priceGrossCents, variant.availability)
}
```

---