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

# getDatasetContent

***

# Function: getDatasetContent()

```ts theme={null}
function getDatasetContent(options: object): Promise<DatasetRow[]>;
```

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

Gets dataset content for a dataset identified by ID or name.

## 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`\<[`DatasetRow`](/sdk-api/typescript/reference/README/type-aliases/DatasetRow)\[]>

A promise that resolves to the rows of the dataset.
