---
title: "Get Eval Results Trend"
method: GET
path: "/api/v1/eval_results/trend"
tags: ["collections"]
---

# Get Eval Results Trend

`GET /api/v1/eval_results/trend`

Eval score trend from the evalresult fact table — one series per
(source step, rubric), one point per scored execution, across EVERY
path that scores (workspace runs, API runs with run_evals, batch runs,
and later policy sampling).

pl_-prefixed targets chart the pipeline's executions; anything else
charts the custom processor's. Both hit their composite index
((team, pipeline|processor, created)). Capped at 5000 rows per window;
total_points reports the pre-group count so callers can see truncation.

Cached in Redis DB 3 for 5 minutes per (team, target, window).

## Query parameters

- `target_id` string, required — pl_ pipeline id or custom-processor id to chart
- `days` integer — Trailing window in days

## Cookies

- `wos-session` string
- `datalab_active_team` string

## Response `200`

Successful Response

- EvalResultTrendResponse
  - `series` EvalResultTrendSeries[], required
    - `kind` string
    - `source_step_type` string, required
    - `eval_rubric_id` integer, nullable, required
    - `rubric_name` string, nullable, required
    - `points` EvalResultTrendPoint[], required
      - `created` string, date-time, required
      - `score` number, required
      - `pipeline_version` integer, nullable, required
      - `eval_rubric_version` integer, nullable, required
      - `source` string, required
      - `apirequest_id` integer, required
      - `eval_batch_run_id` integer, nullable, required
      - `n` integer, nullable
      - `lookup_key` string, nullable
      - `input_filename` string, nullable
      - `pipeline_execution_id` string, nullable
      - `parse_quality` number, nullable
  - `total_points` integer, required

## Other responses

- `422` — Validation Error

---

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