> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# getExperiments

***

# Function: getExperiments()

```ts theme={null}
function getExperiments(
  projectName?: string,
  projectId?: string,
): Promise<ExperimentResponseType[]>;
```

Defined in: [src/utils/experiments.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/experiments.ts)

Gets all experiments.

## Parameters

### projectName?

`string`

(Optional) The name of the project.

### projectId?

`string`

(Optional) The id of the project.

## Returns

`Promise`\<[`ExperimentResponseType`](/sdk-api/typescript/reference/types/type-aliases/ExperimentResponseType)\[]>

A promise that resolves to an array of experiments.
