> ## 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.

# getDatasetVersionHistory

***

# Function: getDatasetVersionHistory()

```ts theme={null}
function getDatasetVersionHistory(
  options: object,
): Promise<DatasetVersionHistory>;
```

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

Gets the version history of a dataset.
Delegates to Datasets.getVersionHistory().

## Parameters

### options

The options used to locate the dataset.

#### datasetId?

`string`

(Optional) The ID of the dataset.

#### datasetName?

`string`

(Optional) The name of the dataset.

## Returns

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

A promise that resolves to the version history for the dataset.
