---
title: "Get Simulation Result"
method: GET
path: "/simulations/{simulation_id}/result"
tags: ["Simulations"]
---

# Get Simulation Result

`GET /simulations/{simulation_id}/result`

Get stored results for a simulation.

Handles multiple data formats:
1. Parquet files in storage (newest format) - loaded from storage
2. JSONB in simulation_data table (legacy) - migrated to parquet

Parameters
----------
simulation_id : str
    ID of the simulation
user_org_client : tuple[str, str | None, AsyncClient]
    Current user_id, organization_id, and Supabase client
simulation_repository : SimulationRepository
    Repository for simulations table
simulation_data_repository : SimulationDataRepository
    Repository for simulation_data table (legacy)
target_rows : int | None
    If set, downsample time series to at most this many rows.
x_min : float | None
    Minimum Time [s] value to filter (for zoom).
x_max : float | None
    Maximum Time [s] value to filter (for zoom).

Returns
-------
dict
    Dictionary with time_series, steps, and metrics

Raises
------
HTTPException
    404 if no results found, 400 for other errors

## Path parameters

- `simulation_id` string, required

## Query parameters

- `target_rows` integer, nullable
- `x_min` number, nullable
- `x_max` number, nullable
- `x_column` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ionworks/apis/fastapi.md) · [All operations](https://skmtc.dev/ionworks/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ionworks/fastapi/revisions/7337a3cbdaf2/schema)
