# ping

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

Defined in: [packages/synapse-core/src/sp/ping.ts:28](https://github.com/FilOzone/synapse-sdk/blob/840d7b2c6263846ac51b7558000e62dd68d33a44/packages/synapse-core/src/sp/ping.ts#L28)

Ping the PDP API. Resolves when the provider answers with a 2xx status.

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 and abort signal. |

## Returns

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

## Throws

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