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

# List distinct metric names in a project

> Returns distinct metric names from the pre-computed metric summaries table. Useful for discovering available metrics before querying leaderboard or statistics. Optionally filter by a search substring or specific run IDs.



## OpenAPI

````yaml /pluto/api-reference/openapi.json get /api/runs/metric-names
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/metric-names:
    get:
      tags:
        - Runs
      summary: List distinct metric names in a project
      description: >-
        Returns distinct metric names from the pre-computed metric summaries
        table. Useful for discovering available metrics before querying
        leaderboard or statistics. Optionally filter by a search substring or
        specific run IDs.
      parameters:
        - schema:
            type: string
            description: Project name
          required: true
          name: projectName
          in: query
        - schema:
            type: string
            description: Substring search to filter metric names (e.g., 'loss')
          required: false
          name: search
          in: query
        - schema:
            type: string
            description: Comma-separated run IDs to scope the search (e.g., '1,2,5')
          required: false
          name: runIds
          in: query
        - schema:
            type: number
            nullable: true
            default: 500
            description: 'Maximum number of metric names to return (default: 500)'
          required: false
          name: limit
          in: query
      responses:
        '200':
          description: List of distinct metric names
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMetricNamesResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ListMetricNamesResponse:
      type: object
      properties:
        projectName:
          type: string
        metricNames:
          type: array
          items:
            type: string
      required:
        - projectName
        - metricNames
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key obtained from the mlop dashboard

````