# getDataSet

```ts
function getDataSet(options): Promise<GetDataSetResponse>;
```

Defined in: [packages/synapse-core/src/sp.ts:297](https://github.com/FilOzone/synapse-sdk/blob/1d6c4b9fe34534bf1087dfe41491b72be0b46858/packages/synapse-core/src/sp.ts#L297)

Get a data set from the PDP API.

GET /pdp/data-sets/{dataSetId}

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | [`GetDataSetOptions`](/reference/filoz/synapse-core/sp/type-aliases/getdatasetoptions/) | The options for the get data set from the PDP API. |

## Returns

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

The data set from the PDP API.