> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trainy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get statistics for a run's metrics

> 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.



## OpenAPI

````yaml /pluto/api-reference/openapi.json get /api/runs/statistics
openapi: 3.0.0
info:
  title: mlop API
  version: 1.0.0
  description: API for mlop - ML experiment tracking platform
servers:
  - url: https://pluto-api.trainy.ai
    description: API Server
security:
  - bearerAuth: []
paths:
  /api/runs/statistics:
    get:
      tags:
        - Runs
      summary: Get statistics for a run's metrics
      description: >-
        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.
      parameters:
        - schema:
            type: number
            nullable: true
            description: Numeric run ID
          required: false
          name: runId
          in: query
        - schema:
            type: string
            description: Project name
          required: true
          name: projectName
          in: query
        - schema:
            type: string
            description: Filter by specific metric name (e.g., train/loss)
          required: false
          name: logName
          in: query
        - schema:
            type: string
            description: Filter by metric group (e.g., train)
          required: false
          name: logGroup
          in: query
      responses:
        '200':
          description: Statistics for metrics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetStatisticsResponse'
        '404':
          description: Run not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    GetStatisticsResponse:
      type: object
      properties:
        runId:
          type: number
        runName:
          type: string
        projectName:
          type: string
        url:
          type: string
          description: URL to view this run in the UI
        metrics:
          type: array
          items:
            type: object
            properties:
              logName:
                type: string
              logGroup:
                type: string
              count:
                type: number
              min:
                type: number
              max:
                type: number
              mean:
                type: number
              stddev:
                type: number
              last:
                type: object
                properties:
                  step:
                    type: number
                  value:
                    type: number
                required:
                  - step
                  - value
            required:
              - logName
              - logGroup
              - count
              - min
              - max
              - mean
              - stddev
              - last
      required:
        - runId
        - runName
        - projectName
        - url
        - metrics
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key obtained from the mlop dashboard

````