# Search experiments

Launch stage: GA

`POST /api/2.0/mlflow/experiments/search`

Searches for experiments that satisfy specified search criteria.

API scopes: mlflow

## Request body

- `max_results` (int64, optional)
  Maximum number of experiments to return per page. Larger values are capped by the server, so
   use `page_token` to retrieve further pages.
- `page_token` (string, optional)
  Page token returned as `next_page_token` by a previous call. Omit it to fetch the first page.
- `filter` (string, optional)
  Filter condition on the experiment name and tags. The `name` attribute and `tags.<key>`
   support the operators `=`, `!=`, `LIKE` and `ILIKE` (case-insensitive `LIKE`), string values
   are wrapped in single quotes, and several conditions can be combined with `AND`. No wildcard
   is added automatically, so include `%` in a `LIKE` pattern where you need one.
  Example: `name ILIKE '/Users/jane.doe@example.com/%' AND tags.team = 'growth'`
- `order_by` (array of string, optional)
  Columns to order the results by, each given as `name`, `basename` (the last segment of the
   name), `experiment_id`, `creation_time` or `last_update_time` with an optional `ASC` or `DESC`
   suffix, where `ASC` is the default. If omitted, results are ordered by last update time with
   the most recently updated experiment first. Tiebreaks are done by experiment id DESC.
  Example: `last_update_time DESC`
- `view_type` (string, optional)
  Qualifier for type of experiments to be returned.
   If unspecified, return only active experiments.
  Possible values:
  - `ACTIVE_ONLY`
  - `DELETED_ONLY`
  - `ALL`

## Returns

Returns a list of Experiment objects.

## Request

```json
{
  "filter": "name ILIKE '/Users/jane.doe@example.com/%' AND tags.team = 'growth'",
  "order_by": [
    "last_update_time DESC"
  ],
  "max_results": 25,
  "view_type": "ACTIVE_ONLY"
}
```

## Response

```json
{
  "experiments": [
    {
      "experiment_id": "4150739527164012",
      "name": "/Users/jane.doe@example.com/churn-prediction",
      "artifact_location": "dbfs:/Volumes/main/ml/experiment_artifacts/churn-prediction",
      "lifecycle_stage": "active",
      "last_update_time": 1762868400000,
      "creation_time": 1762004800000,
      "tags": [
        {
          "key": "team",
          "value": "growth"
        },
        {
          "key": "mlflow.note.content",
          "value": "Weekly retraining of the customer churn model."
        },
        {
          "key": "mlflow.ownerId",
          "value": "7083912345678901"
        },
        {
          "key": "mlflow.ownerEmail",
          "value": "jane.doe@example.com"
        },
        {
          "key": "mlflow.experimentType",
          "value": "MLFLOW_EXPERIMENT"
        }
      ]
    },
    {
      "experiment_id": "4150739527164377",
      "name": "/Users/jane.doe@example.com/churn-prediction-baseline",
      "artifact_location": "dbfs:/databricks/mlflow-tracking/4150739527164377",
      "lifecycle_stage": "active",
      "last_update_time": 1761572400000,
      "creation_time": 1761572400000,
      "tags": [
        {
          "key": "team",
          "value": "growth"
        },
        {
          "key": "mlflow.ownerId",
          "value": "7083912345678901"
        },
        {
          "key": "mlflow.ownerEmail",
          "value": "jane.doe@example.com"
        },
        {
          "key": "mlflow.experimentType",
          "value": "MLFLOW_EXPERIMENT"
        }
      ]
    }
  ],
  "next_page_token": "ChIKEDQxNTA3Mzk1MjcxNjQzNzcQAQ"
}
```

