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

# Get a page's JSON-LD

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

## `GET /pages/:slug/json-ld`

**Get a page's JSON-LD**

Returns the JSON-LD graph of a published page as a JSON array of
schema.org nodes under `data`, the same graph as
`structuredData.graph` on `GET /pages/{slug}`. To publish it, wrap
the array in a `<script type="application/ld+json">` tag.

### 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:** Content type: `application/json`. 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! })

const graph = await lynkow.pages.getJsonLd('about')
const webPage = graph.find(
  (node) => (node as { '@type'?: unknown })['@type'] === 'WebPage'
)
// Embed the graph in your HTML <head> through a serializer that escapes
// `<`, as renderJsonLdGraph(graph) does, never a raw JSON.stringify()
// inside a <script>: a `<!--` or `</script>` in a value would reach the
// HTML parser.
```

### Examples

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

### Response Example

```json
{
  "data": [
    {
      "@context": "https://schema.org",
      "@id": "https://acme.io/#organization",
      "@type": "Organization",
      "name": "Acme Inc.",
      "url": "https://acme.io"
    },
    {
      "@context": "https://schema.org",
      "@id": "https://acme.io/pricing#webpage",
      "@type": "WebPage",
      "name": "Pricing",
      "url": "https://acme.io/pricing",
      "inLanguage": "en"
    }
  ]
}
```

---