---
title: "Get statistics for a run's metrics"
method: GET
path: "/api/runs/statistics"
tags: ["Runs"]
---

# Get statistics for a run's metrics

`GET /api/runs/statistics`

## Request

- Base URL: `https://pluto-api.trainy.ai`
- URL: `https://pluto-api.trainy.ai/api/runs/statistics`
- Auth: HTTP bearer

Returns per-metric aggregates (count, min, max, mean, stddev, last) read from the pre-computed summaries table. Raw, no editorializing — interpretation is the caller's job.

## Query parameters

- `runId` number, nullable: Numeric run ID
- `projectName` string, required: Project name
- `logName` string: Filter by specific metric name (e.g., train/loss)
- `logGroup` string: Filter by metric group (e.g., train)

## Response `200`

Statistics for metrics

- GetStatisticsResponse
  - `runId` number, required
  - `runName` string, required
  - `projectName` string, required
  - `url` string, required: URL to view this run in the UI
  - `metrics` object[], required
    - `logName` string, required
    - `logGroup` string, required
    - `count` number, required
    - `min` number, required
    - `max` number, required
    - `mean` number, required
    - `stddev` number, required
    - `last` object, required
      - `step` number, required
      - `value` number, required

## Other responses

- `404`: Run not found

---

[API](https://skmtc.dev/trainy/apis/mlop-api.md) - [All operations](https://skmtc.dev/trainy/apis/mlop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trainy/apis/mlop-api/revisions/5d2c0b0baecb?raw)
