# Collection metrics

> Live face/selfie counts straight from the engine's vector store. (GET /v1/collections/{id}/metrics)

Source: https://sightradar.com/docs/api/collections/collection-metrics

Live face/selfie counts straight from the engine's vector store. Free.

### Example request

```bash
curl -X GET "https://api.sightradar.com/v1/collections/$ID/metrics" \
  -H "Authorization: Bearer $SR_API_KEY"
```

### Parameters

| Name              | In   | Type     | Description |
| ----------------- | ---- | -------- | ----------- |
| `id` **required** | path | `string` |             |

### Response body

| Field           | Type      | Description |
| --------------- | --------- | ----------- |
| `collection_id` | `string`  |             |
| `status`        | `string`  |             |
| `photo_count`   | `integer` |             |
| `face_count`    | `integer` |             |
| `selfie_count`  | `integer` |             |

### Status codes

| Status | Meaning                     |
| ------ | --------------------------- |
| `200`  | Counts.                     |
| `401`  | Missing or invalid API key. |
| `404`  | Resource not found.         |
| `502`  | Engine metrics unavailable. |
