Skip to content

Open API ​

The website and the open API share the same endpoints under /api/v1; see the reference.

Authentication ​

  • Create keys in the member center under "API keys", at most 5 per account. A key is shown in full only once; the server stores a hash.
  • Scopes: read only, start tests, manage monitors. A key can be bound to an IP allowlist.
  • Send it with every request:
http
Authorization: Bearer <your API key>

API calls need no second factor. Guests cannot use the API.

Quota ​

  • The API shares the 5-hour and 7-day point windows with the website; when either runs out, test credits are used.
  • There is also a per-minute request limit, 60 by default.
  • Every response carries the remaining quota: X-Quota-5h-Remaining, X-Quota-5h-Reset, X-Quota-7d-Remaining, X-Quota-7d-Reset.

Starting a test and live results ​

  1. POST /api/v1/tests starts a test and returns its id.
  2. GET /api/v1/tests/{id}/events streams results over SSE; reconnect with Last-Event-ID. Every connection first replays the stored results; deduplicate by task_id.
  3. GET /api/v1/tests/{id} returns the results; GET /api/v1/tests/{id}/export?format=csv|json exports them.
  4. POST /api/v1/tests/{id}/cancel stops a test (mostly for continuous PING).

PING, continuous PING, traceroute and MTR default to IPv4 when no address family is given; choose IPv6 explicitly.

Errors ​

Errors carry code, message_key and details; the website shows the text in your language, programs should use code.