# getDataSet

> **getDataSet**(`options`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReturnType`](/reference/filoz/synapse-core/sp/namespaces/getdataset/type-aliases/returntype/)\>

Defined in: [packages/synapse-core/src/sp.ts:301](https://github.com/FilOzone/synapse-sdk/blob/32f86959b0bf15557657ea412e31a0897440ca98/packages/synapse-core/src/sp.ts#L301)

Get a data set from the PDP API.

GET /pdp/data-sets/{dataSetId}

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | [`OptionsType`](/reference/filoz/synapse-core/sp/namespaces/getdataset/type-aliases/optionstype/) | [getDataSet.OptionsType](/reference/filoz/synapse-core/sp/namespaces/getdataset/type-aliases/optionstype/) |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`ReturnType`](/reference/filoz/synapse-core/sp/namespaces/getdataset/type-aliases/returntype/)\>

The data set from the PDP API. [getDataSet.ReturnType](/reference/filoz/synapse-core/sp/namespaces/getdataset/type-aliases/returntype/)

## Throws

Errors [getDataSet.ErrorType](/reference/filoz/synapse-core/sp/namespaces/getdataset/type-aliases/errortype/)