# Get an experiment by name

Launch stage: GA

`GET /api/2.0/mlflow/experiments/get-by-name`

Gets metadata for an experiment.

 This endpoint will return deleted experiments, but prefers the active experiment
 if an active and deleted experiment share the same name. If multiple deleted
 experiments share the same name, the API will return one of them.

 Throws `RESOURCE_DOES_NOT_EXIST` if no experiment with the specified name exists.

API scopes: mlflow

## Query parameters

- `experiment_name` (string, required)
  Name of the associated experiment.

## Returns

- `experiment` (object, optional)
  Experiment details.
  - `experiment_id` (string, optional)
    Unique identifier for the experiment.
  - `name` (string, optional)
    Name of the experiment. A workspace experiment is named by its absolute path in the
     workspace; a notebook experiment has the path of its notebook.
  - `artifact_location` (string, optional)
    URI of the location where the artifacts of the experiment's runs are stored. Experiments
     created without an explicit location use MLflow-managed storage under
     `dbfs:/databricks/mlflow-tracking/<experiment_id>`.
  - `lifecycle_stage` (string, optional)
    Current life cycle stage of the experiment: `active` or `deleted`. Deleted experiments are
     excluded from list and search results unless `view_type` requests them, and can be restored
     until they are permanently deleted.
  - `last_update_time` (int64, optional)
    Time when the experiment metadata was last updated, as a Unix timestamp in milliseconds.
  - `creation_time` (int64, optional)
    Time when the experiment was created, as a Unix timestamp in milliseconds.
  - `tags` (array of object, optional)
    Tags set on the experiment, as key-value pairs, including system tags such as
     `mlflow.ownerId` that MLflow maintains.
    - `key` (string, optional)
      The tag key. Keys are at most 255 characters long.
    - `value` (string, optional)
      The tag value. Values are at most 65535 characters long.

## Response

```json
{
  "experiment": {
    "experiment_id": "string",
    "name": "string",
    "artifact_location": "string",
    "lifecycle_stage": "string",
    "last_update_time": 0,
    "creation_time": 0,
    "tags": [
      {}
    ]
  }
}
```

