
# Read a tag

Read one tag: the pages carrying it, and the display metadata set for it.

```sh
GET https://sitepaste.com/api/v1/public/sites/{siteId}/tags/{slug}
```

Requires the `content` scope.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/sites/default/tags/guide" \
  -H "Authorization: Bearer $TOKEN"
```

## Authorizations

| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token (`Authorization: Bearer sp_...`). Created in the dashboard under Account > Tokens. See [authentication](/api/authentication). |

## Response

200 OK with the same record [the collection](/api/tags/get-tags) lists and [PATCH](/api/tags/patch-tags-slug) answers with.

```json
{
  "slug": "guide",
  "title": "Guides",
  "description": "How-to articles",
  "pageCount": 12
}
```

A tag exists while a page carries it or while it has a title or description, so a tag with neither is a 404. Setting a title or description with [PATCH](/api/tags/patch-tags-slug) brings such a tag into being.