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
POST /api/v1/testsstarts a test and returns its id.GET /api/v1/tests/{id}/eventsstreams results over SSE; reconnect withLast-Event-ID. Every connection first replays the stored results; deduplicate bytask_id.GET /api/v1/tests/{id}returns the results;GET /api/v1/tests/{id}/export?format=csv|jsonexports them.POST /api/v1/tests/{id}/cancelstops 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.