Skip to main content
Use public ping to check your Exchanger API address. On the same origin, private ping verifies the Bearer token and HMAC v2 signature without requiring an additional scope. Both requests are read-only.

Public request with cURL

Replace your-exchange with your exchanger’s domain.
Expect state: 0 and result.status: "ok". The result.site_name and result.time fields contain the exchanger name and its current time.

Signed request

Get an API key and set these variables in the environment where you run the example. The examples send GET /api/v3/private/ping over HTTPS and generate a new nonce for each run. The signature includes the hash of an empty body, an empty query string, and an empty idempotency key. The examples below print 200 ok on success.

PHP

Save the file as ping.php and run php ping.php on PHP 8.5 with the cURL extension.
ping.php

Python

Save the file as ping.py and run python3 ping.py. The example uses the Python 3 standard library.
ping.py

JavaScript

Copy request.mjs from the quickstart and run node request.mjs on Node.js 24. The script prints HTTP status 200 and the original JSON with result.status: "ok".

TypeScript

Save the file as ping.mts and run node ping.mts on Node.js 24. The example uses Node.js built-in node:crypto and fetch.
ping.mts
For other calls, check the method, scopes, and parameters in the API reference. See the signing rules for query parameters, JSON, and files. If private ping fails, check the HTTP status and error.code.