---
title: "Get Pipeline Element Plot Data"
method: GET
path: "/pipelines/elements/{element_id}/plot_data"
tags: ["Pipeline"]
---

# Get Pipeline Element Plot Data

`GET /pipelines/elements/{element_id}/plot_data`

Return decimated trace data for one validation plot, keyed by element.

Same behaviour as ``GET /datafits/{job_id}/plot_data`` and
``GET /validations/{job_id}/plot_data`` — the element resolves to its job —
so the UI needs no job id. See those routes for the decimation contract.

## Path parameters

- `element_id` string, required

## Query parameters

- `objective_name` string, required — Objective name within validation_plot_config
- `plot_index` integer — Index into the plots list for this objective
- `max_points` integer — Maximum points per trace
- `x_min` number, nullable — Lower x-range bound (inclusive)
- `x_max` number, nullable — Upper x-range bound (inclusive)

## Response `200`

Successful Response

- ValidationPlotDataResponse — Response from GET /pipelines/{validations|datafits}/{job_id}/plot_data. Contains decimated trace data for a single validation plot, filtered to the requested x-range and downsampled to at most ``max_points`` per trace.
  - `type` string, nullable
  - `traces` ValidationPlotTrace[], required
    - `name` string, required
    - `x` number[], required
    - `y` number[], required
  - `x_full_min` number, nullable
  - `x_full_max` number, nullable
  - `layout` object, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-14** `7baccf056192` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ionworks/apis/fastapi/changes/pipelines/elements/:element_id/plot_data/get.md)

---

[API](https://skmtc.dev/ionworks/apis/fastapi.md) · [All operations](https://skmtc.dev/ionworks/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc.dev/ionworks/apis/fastapi/revisions/8ed5440390f0?raw)
