# List tags

**Publié le** : 2026-05-08
**Catégorie** : Core CMS

## `GET /tags`

**List tags**

Returns all tags for your site with content counts.

Required permissions: `tags.view`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `page` | query | number | No | Number |
| `limit` | query | number | No | Number <= 100 |
| `search` | query | string | No | Full-text search query |
| `sortBy` | query | "created_at" \| "updated_at" \| "name" \| "slug" | No | One of: created_at, updated_at, name, slug |
| `sortOrder` | query | "asc" \| "desc" | No | One of: asc, desc |
| `dateFrom` | query | string | No | Filter from date (ISO 8601) |
| `dateTo` | query | string | No | Filter until date (ISO 8601) |
| `slug` | query | string | No | URL-friendly identifier, unique per site and locale |
| `slugs` | query | string[] | No | Array of strings |
| `ids` | query | string[] | No | Array of strings |
| `excludeIds` | query | string[] | No | Array of strings |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |


### Examples

```bash
curl https://api.lynkow.com/v1/tags \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "data": [
    {
      "id": 1,
      "name": "JavaScript",
      "slug": "javascript",
      "locale": "en",
      "contentCount": 15,
      "createdAt": "2025-01-08T10:00:00.000Z"
    },
    {
      "id": 2,
      "name": "Tutorial",
      "slug": "tutorial",
      "locale": "en",
      "contentCount": 23,
      "createdAt": "2025-01-08T10:05:00.000Z"
    },
    {
      "id": 3,
      "name": "API",
      "slug": "api",
      "locale": "en",
      "contentCount": 9,
      "createdAt": "2025-01-15T14:30:00.000Z"
    }
  ],
  "meta": {
    "total": 18,
    "perPage": 15,
    "currentPage": 1,
    "lastPage": 2
  }
}
```

---