MLflow Metrics API

Log and retrieve metric history for runs.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mlflow-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mlflow-metrics-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: MLflow Tracking REST Artifacts Metrics API
  version: '2.0'
  summary: REST API for the MLflow tracking server, model registry, and metrics.
  description: 'MLflow is an open-source platform for the end-to-end ML and GenAI lifecycle.

    The tracking server exposes REST endpoints under `/api/2.0/mlflow` for

    experiments, runs, metrics, parameters, artifacts, and the model registry.

    See https://mlflow.org/docs/latest/rest-api.html

    '
  contact:
    name: MLflow
    url: https://mlflow.org/
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://localhost:5000
  description: Default local MLflow tracking server
- url: https://{host}
  description: Self-hosted MLflow tracking server
  variables:
    host:
      default: mlflow.example.com
      description: Hostname of the MLflow tracking server
security:
- {}
- basicAuth: []
tags:
- name: Metrics
  description: Log and retrieve metric history for runs.
paths:
  /api/2.0/mlflow/runs/log-metric:
    post:
      tags:
      - Metrics
      summary: Log a metric for a run
      operationId: logMetric
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - run_id
              - key
              - value
              - timestamp
              properties:
                run_id:
                  type: string
                key:
                  type: string
                value:
                  type: number
                timestamp:
                  type: integer
                step:
                  type: integer
      responses:
        '200':
          description: Metric logged
  /api/2.0/mlflow/runs/log-parameter:
    post:
      tags:
      - Metrics
      summary: Log a parameter for a run
      operationId: logParameter
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - run_id
              - key
              - value
              properties:
                run_id:
                  type: string
                key:
                  type: string
                value:
                  type: string
      responses:
        '200':
          description: Parameter logged
  /api/2.0/mlflow/runs/log-batch:
    post:
      tags:
      - Metrics
      summary: Log a batch of metrics, params, and tags
      operationId: logBatch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                run_id:
                  type: string
                metrics:
                  type: array
                  items:
                    type: object
                params:
                  type: array
                  items:
                    type: object
                tags:
                  type: array
                  items:
                    type: object
      responses:
        '200':
          description: Batch logged
  /api/2.0/mlflow/metrics/get-history:
    get:
      tags:
      - Metrics
      summary: Get metric history
      operationId: getMetricHistory
      parameters:
      - in: query
        name: run_id
        required: true
        schema:
          type: string
      - in: query
        name: metric_key
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Metric history
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: 'Optional HTTP Basic authentication when the MLflow tracking server is

        configured with the `mlflow-basic-auth` plugin. Default open-source

        servers run without authentication.

        '