Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Get Project Stats

GET/v1/private/projects/statsGet Project Stats

Get Project Stats

Parameters

pageinteger · int32query

default 1 · minimum 1

sizeinteger · int32query

default 10 · minimum 1

namestringquery

Filter projects by name (partial match, case insensitive)

filtersstringquery
from_timestring · date-timequery

When set, scope the project metrics from this time (ISO-8601 format); omitted keeps the all-time aggregates

to_timestring · date-timequery

Scope the project metrics up to this time (ISO-8601 format). Must be after 'from_time'.

sortingstringquery

Responses

200Project Statsapplication/json
objectProjectStatsSummary
contentarray of object
Show child attributes
Show array items
durationobject
Show child attributes
p50number
p90number
p99number
error_countobject
Show child attributes
countinteger · int64
deviationinteger · int64
deviation_percentageinteger · int64
feedback_scoresarray of object
Show child attributes
Show array items
namestringrequired

minLength 1

valuenumberrequired
guardrails_failed_countinteger · int64
project_idstring · uuid
thread_countinteger · int64
total_estimated_costnumber · double
total_estimated_cost_sumnumber · double
trace_countinteger · int64
usageobject
Example response
{
  "content": [
    {
      "duration": {
        "p50": 0,
        "p90": 0,
        "p99": 0
      },
      "error_count": {
        "count": 0,
        "deviation": 0,
        "deviation_percentage": 0
      },
      "feedback_scores": [
        {
          "name": "string",
          "value": 0
        }
      ],
      "guardrails_failed_count": 0,
      "project_id": "00000000-0000-0000-0000-000000000000",
      "thread_count": 0,
      "total_estimated_cost": 0,
      "total_estimated_cost_sum": 0,
      "trace_count": 0,
      "usage": {
        "additionalProp1": 0
      }
    }
  ]
}
Documentation menu