# Count contacts in a segment

`GET /v1/segments/{id}/count`

Requires an API key with the `segments:read` scope. [About keys and scopes](/docs/api/authentication)

Evaluates a saved segment and returns only the number of matching contacts — cheaper than listing them when all you need is the size.

## Path parameters

- `id` (string, required, uuid)

## Returns

Returns `200 OK` with a `AudienceCount` in `data`. Otherwise returns an error; [Errors](/docs/api/errors) lists every code and which to retry.

- `count` (integer, required, min 0, max 9007199254740991) — Contacts the rules match, counted up to 10000.
- `countExact` (boolean, required) — False when `count` is the cap and more contacts match.

## Example

```bash
curl https://api.kirora.io/v1/segments/018f2a4e-6b1c-7d3e-9f40-37386ae05a6b/count \
  -H "Authorization: Bearer $KIRORA_API_KEY"
```

Response `200`:

```json
{
  "data": {
    "count": 0,
    "countExact": true
  }
}
```
