Get aggregate counts of monitors and their statuses for the account, plus 24h uptime and response-time aggregates with previous-24h values for trend deltas.
const url = 'https://api.siteqwality.com/monitors/totals';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.siteqwality.com/monitors/totals \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Account-wide monitor totals with 24h aggregates
Account-wide monitor totals with optional 24h aggregates.
The aggregate fields (uptime, response times, and their previous-24h counterparts for trend deltas) are omitted from the JSON when no HTTP performance data exists in the window.
object
The same four counts split per monitor type.
Additive: the four fields above are unchanged, and still mean every monitor type added together. This exists so a per-type counter tile can read an account-wide number instead of counting the rows of one page of the (paged) monitor list. Never omitted, and never partial.
object
HTTP / uptime monitors.
object
Heartbeat (cron) monitors.
object
Synthetic browser checks.
object
Aggregate uptime percentage across all HTTP checks over the last 24h.
Average HTTP response time (ms) over the last 24h.
95th-percentile HTTP response time (ms) over the last 24h.
Aggregate uptime percentage for the previous 24h window (24-48h ago).
Average HTTP response time (ms) for the previous 24h window.
95th-percentile HTTP response time (ms) for the previous 24h window.
Example generated
{ "total": 1, "online": 1, "down": 1, "paused": 1, "by_type": { "http": { "total": 1, "online": 1, "down": 1, "paused": 1 }, "cron": { "total": 1, "online": 1, "down": 1, "paused": 1 }, "browser": { "total": 1, "online": 1, "down": 1, "paused": 1 } }, "uptime_24h": 1, "avg_response_time_ms": 1, "p95_response_time_ms": 1, "prev_uptime_24h": 1, "prev_avg_response_time_ms": 1, "prev_p95_response_time_ms": 1}Missing or invalid authentication
Internal server error