Get account analytics
const url = 'https://api.trueproxies.com/v1/analytics?range=24h';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.trueproxies.com/v1/analytics?range=24h' \ --header 'Authorization: Bearer <token>'Analytics across the services owned by this account.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Owned sub-customer UUID. Resellers only; reads require reseller:read and writes reseller:purchase in addition to the operation scope. X-Customer-Id header is an alternative. Not allowed for me, wallet, trial, API keys, or reseller-management routes.
Responses
Section titled “Responses”Ok
object
object
Outcomes with a proxy error, including no_response and excluding outcomes that ended on the client side.
Outcome counts by class. Proxy errors use their error class, plus no_response for outcomes recorded without an error in which the client sent a request after proxy setup and received nothing beyond the setup reply. client_reset (the client side reset the connection) and client_left_open (the client side kept the connection open after the destination finished) are listed here but are not failures.
object
Error class, or no_response, client_reset or client_left_open as described in Analytics errors.
object
Mean elapsed milliseconds of measured completed authenticated socket sessions; null when no samples exist.
Mean gateway-to-destination setup milliseconds for measured successful initial TCP tunnels; null when no samples exist.
Outcomes with a proxy error, including no_response and excluding outcomes that ended on the client side.
Number of measured completed session samples in this bucket.
Number of measured successful setup samples in this bucket.
Share of recorded proxy connection outcomes without a proxy error. Outcomes that ended on the client side (client_reset and client_left_open in errors) are not proxy errors; no_response is. This is not destination HTTP status.
Examplegenerated
{ "destinations": [ { "bytes": 1, "failures": 1, "host": "example", "requests": 1 } ], "errors": [ { "count": 1, "err_class": "example" } ], "range": "example", "series": [ { "avg_session_ms": 1, "avg_setup_ms": 1, "bytes_in": 1, "bytes_out": 1, "failures": 1, "requests": 1, "session_samples": 1, "setup_samples": 1, "ts": "2026-04-15T12:00:00Z" } ], "success_rate": 1}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}Error
object
What a client needs to act on the error (ids, flags), never display text.
object
Example
{ "code": "BAD_REQUEST"}