---
title: "Get trace stats"
method: GET
path: "/v1/private/traces/stats"
tags: ["Traces"]
---

# Get trace stats

`GET /v1/private/traces/stats`

Get trace stats

## Query parameters

- `project_id` string, uuid
- `project_name` string
- `filters` string
- `search` string — Full-text search across trace fields
- `from_time` string, date-time — Filter traces created from this time (ISO-8601 format).
- `to_time` string, date-time — Filter traces created up to this time (ISO-8601 format). If not provided, defaults to current time. Must be after 'from_time'.

## Response `200`

Trace stats resource

- ProjectStatsPublic
  - `stats` ProjectStatItemObjectPublic[]
    - `name` string
    - `type` 'COUNT' | 'PERCENTAGE' | 'AVG'

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
