---
title: "Find experiments by project"
method: GET
path: "/v1/private/projects/{projectId}/experiments"
tags: ["Projects"]
---

# Find experiments by project

`GET /v1/private/projects/{projectId}/experiments`

Find experiments scoped to a project

## Path parameters

- `projectId` string, uuid, required

## Query parameters

- `page` integer
- `size` integer
- `datasetId` string, uuid
- `optimization_id` string, uuid
- `types` string
- `name` string — Filter experiments by name (partial match, case insensitive)
- `dataset_deleted` boolean
- `sorting` string
- `filters` string
- `experiment_ids` string — Filter experiments by a list of experiment IDs
- `force_sorting` boolean — Force sorting even when exceeding the endpoint result set limit. May result in slower queries

## Response `200`

Experiments page

- ExperimentPagePublic
  - `page` integer
  - `size` integer
  - `total` integer
  - `content` ExperimentPublic[]
    - `id` string, uuid
    - `dataset_name` string, nullable, required
    - `dataset_id` string, uuid
    - `project_id` string, uuid — Project ID. Takes precedence over project_name when both are provided.
    - `project_name` string — Project name. Creates project if it doesn't exist. Ignored when project_id is provided.
    - `name` string
    - `metadata` JsonListStringPublic
    - `tags` string[]
    - `type` 'regular' | 'trial' | 'mini-batch' | 'mutation'
    - `evaluation_method` 'dataset' | 'evaluation_suite'
    - `optimization_id` string, uuid
    - `feedback_scores` FeedbackScoreAveragePublic[]
      - `name` string, required
      - `value` number, required
    - `comments` CommentPublic[]
      - `id` string, uuid
      - `text` string, required
      - `source_queue_id` string, uuid
      - `created_at` string, date-time
      - `last_updated_at` string, date-time
      - `created_by` string
      - `last_updated_by` string
    - `trace_count` integer
    - `dataset_item_count` integer
    - `created_at` string, date-time
    - `duration` PercentageValuesPublic
      - `p50` number
      - `p90` number
      - `p99` number
    - `total_estimated_cost` number
    - `total_estimated_cost_avg` number
    - `usage` object
    - `last_updated_at` string, date-time
    - `created_by` string
    - `last_updated_by` string
    - `status` 'running' | 'completed' | 'cancelled'
    - `experiment_scores` ExperimentScorePublic[]
      - `name` string, required
      - `value` number, required
    - `prompt_version` PromptVersionLinkPublic
      - `prompt_version_id` string, uuid
      - `commit` string
      - `prompt_id` string, uuid
      - `prompt_name` string
    - `prompt_versions` PromptVersionLinkPublic[]
      - `prompt_version_id` string, uuid
      - `commit` string
      - `prompt_id` string, uuid
      - `prompt_name` string
    - `dataset_version_id` string, uuid — ID of the dataset version this experiment is linked to. If not provided at creation, experiment will be automatically linked to the latest version.
    - `dataset_version_summary` DatasetVersionSummaryPublic — Summary of the latest dataset version
      - `id` string, uuid — Unique identifier of the version
      - `version_hash` string — Hash of the version content
      - `version_name` string — Sequential version name formatted as 'v1', 'v2', etc.
      - `change_description` string — Description of changes in this version
      - `tags` string[] — Tags associated with this version
    - `pass_rate` number — Pass rate for test suite experiments (0.0-1.0). Null for regular experiments.
    - `passed_count` integer — Number of items that passed for test suite experiments. Null for regular experiments.
    - `total_count` integer — Total number of items for test suite experiments. Null for regular experiments.
    - `assertion_scores` AssertionScoreAveragePublic[] — Per-assertion average pass rates for test suite experiments. Null for regular experiments.
      - `name` string, required
      - `value` number, required
  - `sortableBy` string[]

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
