Get a content by slug

Fetches a published content entry by slug, with its rendered body, SEO fields, custom data and structured data. Only published entries are served. With `locale`, the entry is served through the locale chain, so a missing translation is a 200 with the fallback row. A fallback item has empty `alternates`, and its `canonicalPath` is the URL of the default-locale version. On a multi-language site, `fallback=false` returns 404 `RESOURCE_NOT_FOUND` when no published row holds the slug in the requested locale. Without `locale`, a slug shared by several translations returns the default-locale one, else the oldest.

Required access
No credentialOptional: publishable keySite access
GET/contents/slug/{slug}
Base URLhttps://api.lynkow.com/storefront/{siteId}

Path parameters

slug
string
required

URL-friendly identifier, unique per site and locale

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")

Feedback

Was this page helpful?