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

# Get a page by slug

**Published**: 2026-11-30
**Category**: Pages & Site Blocks

## `GET /pages/:slug`

**Get a page by slug**

Returns one published Site Builder page by slug: its page tree, the
resolved SEO bundle, the JSON-LD graph and its translations in
`alternates`. Build links and the canonical URL from `publicPath`,
which is always set; `path` is the stored value and can be null.

Without `locale`, the page is read in the site's default locale.
With `locale`, a missing translation is served from the next locale
of the site's chain.

Send `If-None-Match` with the `ETag` to get a 304. Errors: 404
`RESOURCE_NOT_FOUND` for an unknown slug.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | Yes | URL-friendly identifier, unique per site and locale |
| `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 |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `402` | The site subscription does not currently permit this operation |
| `404` | Not found |
| `422` | Validation error |


> **Notes:** Sets `ETag` and `Cache-Control: public, max-age=0, s-maxage=300`.
> Send `If-None-Match: <etag>` to get a 304 Not Modified. Rate-limit
> bucket: general.

### SDK

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

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

const page = await lynkow.pages.getBySlug('about')
console.log(page.data)        // Resolved DataSource content
console.log(page.seo)         // SEO metadata
console.log(page.alternates)  // Other locale versions
```

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

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

const result = await lynkow.legal.getBySlug(slug)
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/pages/pricing?locale=en"
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/pages/pricing?locale=en`)
const { data } = await res.json()
```

### Response Example

```json
{
  "data": {
    "id": "01J9R4QV6ZK7T0W1FH3DXB6P2Y",
    "slug": "pricing",
    "name": "Pricing",
    "path": "/pricing",
    "publicPath": "/en/pricing",
    "locale": "en",
    "tags": [
      "public",
      "conversion"
    ],
    "data": {
      "hero": {
        "title": "Simple pricing",
        "subtitle": "Start free, scale when you grow."
      },
      "tiers": [
        {
          "name": "Free",
          "price": 0,
          "features": [
            "1 site",
            "1 GB media"
          ]
        },
        {
          "name": "Pro",
          "price": 29,
          "features": [
            "Unlimited sites",
            "100 GB media"
          ]
        }
      ]
    },
    "seo": {
      "metaTitle": "Pricing | Acme",
      "metaDescription": "Transparent pricing for Acme.",
      "ogImage": "https://cdn.lynkow.com/sites/acme/og/pricing.png"
    },
    "alternates": [
      {
        "locale": "en",
        "path": "/en/pricing",
        "current": true
      },
      {
        "locale": "fr",
        "path": "/fr/tarifs",
        "current": false
      }
    ],
    "structuredData": {
      "graph": [
        {
          "@type": "WebPage",
          "name": "Pricing",
          "url": "https://docs.acme.io/pricing"
        }
      ]
    },
    "updatedAt": "2026-05-10T09:14:22.000Z"
  }
}
```

---