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

# List blog categories

**Published**: 2026-11-30
**Category**: Content

## `GET /categories`

**List blog categories**

Lists the site's categories as a flat list, each with its
`path` under the site's `blogUrlMode` and its published content
count. Use `GET /categories/tree` for the nested form.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `locale` | query | string | No | BCP 47 locale code (e.g. "en", "fr") |
| `fallback` | query | boolean (default true) | No | With `locale`, `false` leaves out the items 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:** 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 { categories, blogUrlMode } = await lynkow.categories.list()
categories.forEach(cat => {
  console.log(`${cat.name} (${cat.contentCount} articles)`)
})
```

### Examples

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

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

### Response Example

```json
{
  "data": {
    "categories": [
      {
        "id": "01J9PA0NZK7BX4HQ7M2DC9V5T8",
        "name": "Engineering",
        "slug": "engineering",
        "path": "/blog/engineering",
        "description": "Posts about the engineering team.",
        "image": "https://cdn.lynkow.com/sites/acme/cat/engineering.jpg",
        "contentMode": "standard",
        "schema": null,
        "schemaSource": null,
        "displayOrder": 1,
        "locale": "en",
        "contentCount": 12
      }
    ],
    "blogUrlMode": "with-categories",
    "locale": "en"
  }
}
```

---