---
title: "Fetch Results"
method: POST
path: "/method/emo/fetch"
tags: ["EMO"]
---

# Fetch Results

`POST /method/emo/fetch`

Fetches results from a completed EMO method.

Args:
    request (EMOFetchRequest): The request object containing parameters for fetching results.
    user (Annotated[User, Depends]): The current user.
    session (Annotated[Session, Depends]): The database session.

Raises:
    HTTPException: If the request is invalid or the EMO method has not completed.

Returns:
    StreamingResponse: A streaming response containing the results of the EMO method.

## Request body

- EMOFetchRequest — Model of the request to fetch solutions from an EMO method.
  - `problem_id` integer, required — Database ID of the problem to solve.
  - `session_id` integer, nullable
  - `parent_state_id` integer, nullable — State ID of the parent state, if any. Should be None if this is the first state in a session.
  - `num_solutions` integer — Number of solutions to fetch. If 0, fetch all solutions.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/industrial-optimization-group/apis/desdeo-fast-api.md) · [All operations](https://skmtc.net/industrial-optimization-group/apis/desdeo-fast-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/industrial-optimization-group/desdeo-fast-api/revisions/c24fa4e23380/schema)
