# download

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

Defined in: [packages/synapse-core/src/piece/download.ts:55](https://github.com/FilOzone/synapse-sdk/blob/7004ea9b9f1577216826ff17bb7f17f4873d9057/packages/synapse-core/src/piece/download.ts#L55)

Download a piece from a URL.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | `RequestOptions` | [download.OptionsType](/reference/filoz/synapse-core/piece/namespaces/download/type-aliases/optionstype/) |

## Returns

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

Data [download.ReturnType](/reference/filoz/synapse-core/piece/namespaces/download/type-aliases/returntype/)

## Throws

Errors [download.ErrorType](/reference/filoz/synapse-core/piece/namespaces/download/type-aliases/errortype/)