# getPiecesForDataSet

```ts
function getPiecesForDataSet(options): Promise<object[]>;
```

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

Get the pieces for a data set from the PDP API.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | [`GetPiecesForDataSetOptions`](/reference/filoz/synapse-core/sp/type-aliases/getpiecesfordatasetoptions/) | The options for the get pieces for data set. |

## Returns

[`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`object`[]\>