# ping

> **ping**(`serviceURL`, `options?`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<[`Response`](https://developer.mozilla.org/docs/Web/API/Response)\>

Defined in: [packages/synapse-core/src/sp/ping.ts:26](https://github.com/FilOzone/synapse-sdk/blob/a9cd57eebc930d91684976484537875a7fc5cb10/packages/synapse-core/src/sp/ping.ts#L26)

Ping the PDP API.

GET /pdp/ping

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `serviceURL` | `string` | The service URL of the PDP API. |
| `options` | [`OptionsType`](/reference/filoz/synapse-core/sp/namespaces/ping/type-aliases/optionstype/) | Optional timeout configuration. |

## Returns

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

Response [ping.OutputType](/reference/filoz/synapse-core/sp/namespaces/ping/type-aliases/outputtype/)

## Throws

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