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

# Get trace thread stats

`GET /v1/private/traces/threads/stats`

Get trace thread stats

## Query parameters

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

## Response `200`

Trace thread 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)
