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

# Get a blog category

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

## `GET /categories/:slug`

**Get a blog category**

Returns a category by slug with its published contents,
paginated under `contents` (`limit` defaults to 500). Without
`locale`, a multi-language site reads the slug in its default
locale. 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 |
| `page` | query | number (min 1, default 1) | No | Page of the category's contents, starting at 1 |
| `limit` | query | number (1 to 500, default 500) | No | Number of the category's contents per page, 500 by default |
| `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:** 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 { category, contents } = await lynkow.categories.getBySlug('tech', {
  page: 1,
  limit: 10
})
console.log(category.name)             // "Tech"
console.log(contents.data.length)      // Number of articles on this page
console.log(contents.meta.currentPage < contents.meta.lastPage) // Whether more pages exist
```

### Examples

```curl
curl "https://api.lynkow.com/storefront/{siteId}/categories/engineering?page=1&limit=10&locale=en"
```

```javascript
const res = await fetch(`https://api.lynkow.com/storefront/${siteId}/categories/engineering?page=1&limit=10&locale=en`)
const { data: { category, contents, locale } } = await res.json()
```

### Response Example

```json
{
  "data": {
    "category": {
      "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",
      "displayOrder": 1,
      "locale": "en"
    },
    "contents": {
      "data": [
        {
          "id": "01J9P1B5N4XZRWQEKM2H6A3T8C",
          "title": "How we set our pricing",
          "slug": "how-we-set-our-pricing",
          "locale": "en",
          "publishedAt": "2026-05-05T08:00:00.000Z"
        }
      ],
      "meta": {
        "total": 12,
        "perPage": 10,
        "currentPage": 1,
        "lastPage": 2
      }
    },
    "locale": "en"
  }
}
```

---