---
title: "Get run trace"
method: GET
path: "/run/trace/{id}"
tags: ["run"]
---

# Get run trace

`GET /run/trace/{id}`

Returns the optimization trace of run. The trace contains every setup tried, its evaluation, and whether it was selected.

## Path parameters

- `id` number, required

## Query parameters

- `api_key` string

## Response `200`

A run trace description

- RunTrace
  - `trace` RunTraceTrace
    - `run_id` string — run ID
    - `trace_iteration` RunTraceTraceTraceIteration[]
      - `repeat` string — The number of the repeat in the outer cross-valudation
      - `fold` string — The number of the fold in the inner cross-validation
      - `iteration` string — A number of the optimization iteration
      - `setup_string` string — A JSON representation of the setup (configuration)
      - `evaluation` string — The evaluation score of the setup
      - `selected` string — Whether this setup was selected as the best one (true or false)

## Other responses

- `412` — Precondition failed. An error code and message are returned. 570 - No successful trace associated with this run

---

[API](https://skmtc.net/openml/apis/openml-api.md) · [All operations](https://skmtc.net/openml/apis/openml-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openml/openml-api/versions/263d3d6ee586/schema)
