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

# Get a page by path

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

## `GET /page-by-path`

**Get a page by path**

Returns the published page at a public path, such as `/pricing` or
`/fr/tarifs`, with the same shape and cache headers as
`GET /pages/{slug}`.

Without `locale`, a leading locale segment of `path` selects the
locale. With `locale`, a missing translation is served from the next
locale of the site's chain.

When no page matches but a redirect covers the path, the response is
a 200 with `type: redirect`, as `GET /redirects/match` answers. With
`locale`, so is a fallback page whose translation has its own URL.

Errors: 400 `VALIDATION_FIELD_REQUIRED` without `path`, 404
`PATH_NOT_FOUND`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `path` | query | string | Yes | The page's public URL path, such as `/about` or `/fr/a-propos`. Only a non-default locale carries a prefix |
| `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 |
| `422` | Validation error |


> **Notes:** Same caching contract as `/pages/{slug}`. Rate-limit bucket: general.

### SDK

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

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

import { isRedirectResponse } from 'lynkow'

// Resolve a page from the current URL
const page = await lynkow.pages.getByPath('/services/consulting')
if (isRedirectResponse(page)) {
  // Send the visitor to page.redirect.target with page.redirect.statusCode
} else {
  console.log(page.name) // "Consulting"
}
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/page-by-path?path=/pricing&locale=en"
```

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

### Response Example

```json
{
  "data": {
    "id": "01J9R4QV6ZK7T0W1FH3DXB6P2Y",
    "slug": "pricing",
    "name": "Pricing",
    "path": "/pricing",
    "publicPath": "/pricing",
    "locale": "en",
    "requestedLocale": "en",
    "isFallback": false,
    "canonicalPath": "/pricing",
    "tags": [
      "public",
      "conversion"
    ],
    "data": {
      "hero": {
        "title": "Simple pricing"
      }
    },
    "seo": {
      "metaTitle": "Pricing | Acme"
    },
    "alternates": [
      {
        "locale": "en",
        "path": "/pricing",
        "current": true
      },
      {
        "locale": "fr",
        "path": "/fr/tarifs",
        "current": false
      }
    ],
    "structuredData": {
      "graph": []
    },
    "updatedAt": "2026-05-10T09:14:22.000Z"
  }
}
```

---