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

# getDatasetVersion

***

# Function: getDatasetVersion()

```ts theme={null}
function getDatasetVersion(options: object): Promise<DatasetContent>;
```

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

Gets a specific version of a dataset.
Delegates to Datasets.getVersion().

## Parameters

### options

The options used to locate the dataset version.

#### datasetId?

`string`

(Optional) The ID of the dataset.

#### datasetName?

`string`

(Optional) The name of the dataset.

#### versionIndex

`number`

The version index to retrieve.

## Returns

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

A promise that resolves to the dataset content at the specified version.
