# Get a global block by slug

**Publié le** : 2026-05-12
**Catégorie** : Pages & Site Blocks

## `GET /global/:slug`

**Get a global block by slug**

Fetch a single global Site Builder block by slug (header, footer,
nav, CTA banner). Globals are reused across pages and resolved
once per locale. Sets `ETag` and `Cache-Control`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | Yes | URL-friendly identifier, unique per site and locale |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `404` | Not found |


> **Notes:** Sets `ETag` and `Cache-Control: public, max-age=300, stale-while-revalidate=60`.
> Rate-limit bucket: general.

### Examples

```curl
curl "https://api.lynkow.com/public/{siteId}/global/main-nav?locale=en"
```

```javascript
const res = await fetch(`https://api.lynkow.com/public/${siteId}/global/main-nav?locale=en`)
const { data } = await res.json()
```

### Response Example

```json
"{\n  \"data\": {\n    \"slug\": \"main-nav\",\n    \"name\": \"Main navigation\",\n    \"data\": {\n      \"items\": [\n        { \"label\": \"Pricing\", \"href\": \"/pricing\" },\n        { \"label\": \"Docs\", \"href\": \"/docs\" }\n      ]\n    }\n  }\n}\n"
```

---