---
title: "Ping.make()"
description: "Method for measuring Bitrix24 REST API response speed. Performs a test request and returns response time in milliseconds."
canonical_url: "https://bitrix24.github.io/b24jssdk/docs/working-with-the-rest-api/tools-ping"
last_updated: "2026-05-08"
---
# Ping.make()

> Method for measuring Bitrix24 REST API response speed. Performs a test request and returns response time in milliseconds.

> [!WARNING]
> We are still updating this page. Some data may be missing here — we will complete it shortly.

## Overview

Use `Ping.make()` to measure the response time of Bitrix24 REST API. The method returns a `Promise` with a numeric value of the response time in milliseconds.

```ts
// Basic usage
const responseTime = await $b24.tools.ping.make()

if (responseTime >= 0) {
  console.log(`API response time: ${responseTime}ms`)
} else {
  console.error('Failed to measure API response time')
}
```

## Method Signature

```ts-type
make(
  options?: { requestId?: string }
): Promise<number>
```

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| **`requestId`** | `string` | No | Unique request identifier for tracking. Used for request deduplication and debugging. |

### Return Value

`Promise<number>` — a promise that resolves to a numeric value:

- **Positive number** — response time in milliseconds from sending the request to receiving the response.
- **-1** — in case of error or timeout.

## Examples

### Measuring response time

```ts [tools-ping.ts]
? visitAndReplace ?
```

## Alternatives and Recommendations

- **For availability check**: Use [`HealthCheck`](https://bitrix24.github.io/b24jssdk/raw/docs/working-with-the-rest-api/tools-health-check.md).
- **For measuring operation performance**: Perform time measurements for specific API methods.
- **On the client-side (browser):** Use the built-in [`B24Frame`](https://bitrix24.github.io/b24jssdk/raw/docs/getting-started/installation/vue.md#init) object.

## Sitemap

See the full [sitemap](/b24jssdk/sitemap.md) for all pages.
