Get uptime
const url = 'https://example.com/api/monitors/1/uptime?filter%5Bgroup_by%5D=minute&split=hour';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://example.com/api/monitors/1/uptime?filter%5Bgroup_by%5D=minute&split=hour' \ --header 'Authorization: Bearer <token>'Uptime percentage per hour, day or month (split) from the uptime check of the monitor: the share of monitored time that was not Down. The list is empty until the monitor’s uptime check has its first measured result; buckets without monitored time are left out.
Token abilities: uptime:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The monitor ID
Query Parameters
Section titled “Query Parameters”Accepted for compatibility; the window is set by filter[started_at]. UTC time, format YmdHis (for example 20261020220000).
Accepted for compatibility; the window is set by filter[ended_at]. UTC time, format YmdHis (for example 20261020220000).
Window start (default: 24 hours ago), within the retained history. UTC time, format YmdHis (for example 20261020220000).
Window end, after the start (default: now). UTC time, format YmdHis (for example 20261020220000).
Accepted for compatibility; the bucket size is set by split.
Bucket size (default hour). Buckets align outward to whole hours, days or months in the instance time zone.
Responses
Section titled “Responses”OK.
object
UTC, Y-m-d H:i:s.
Example
[ { "datetime": "2026-10-01 06:00:00", "uptime_percentage": 100 }, { "datetime": "2026-10-01 07:00:00", "uptime_percentage": 98.75 }]Headers
Section titled “Headers”Requests per minute allowed by the limit this response counts against.
Requests left in the current minute.
Missing, invalid, expired or session-only credentials, or a disabled user.
object
Examples
Missing or invalid token
{ "error": "Unauthenticated."}The token lacks a required ability, or the user’s role or client access does not allow this action.
object
Examples
The token lacks the ability
{ "message": "Invalid ability provided."}Not found or not visible to this token.
object
Examples
Missing or hidden
{ "message": "No query results for model [Heptapod\\Models\\Site] 12"}Invalid input.
object
Field name => messages.
object
Examples
Invalid input
{ "errors": { "starts_at": [ "The starts at field must match the format Y-m-d H:i." ] }, "message": "The starts at field must match the format Y-m-d H:i."}Rate limited: 60 requests per minute per source IP before authentication, and 60 per minute per user and per token. See Retry-After.
object
Examples
Rate limited
{ "error": "Too Many Attempts."}Headers
Section titled “Headers”Seconds to wait before retrying.
Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.