Skip to content

Get HTTP uptime metrics

GET
/monitors/{monitor}/http-uptime-metrics
curl --request GET \
--url 'https://example.com/api/monitors/1/http-uptime-metrics?filter%5Bgroup_by%5D=minute&split=hour' \
--header 'Authorization: Bearer <token>'

Average HTTP timings in seconds (DNS, TCP, TLS handshake, server processing, download, total) per minute, hour, day, week or month (filter[group_by]). Minute buckets cover at most 24 hours of retained raw runs. Buckets without complete timings are left out.

Token abilities: uptime:read.

monitor
required
integer

The monitor ID

filter[start]
string

Window start (default: 24 hours ago). UTC time, format YmdHis (for example 20261020220000).

filter[end]
string

Window end, after the start (default: now). UTC time, format YmdHis (for example 20261020220000).

filter[started_at]
string

Accepted for compatibility; the window is set by filter[start]. UTC time, format YmdHis (for example 20261020220000).

filter[ended_at]
string

Accepted for compatibility; the window is set by filter[end]. UTC time, format YmdHis (for example 20261020220000).

filter[group_by]
string
Allowed values: minute hour day week month

Bucket size (default hour). minute needs a window of at most 24 hours within raw retention.

split
string
Allowed values: hour day month

Accepted for compatibility; the bucket size is set by filter[group_by].

OK.

Media typeapplication/json
object
data
required
Array<object>
object
date
required

UTC, Y-m-d H:i:s.

string
key
additional properties
Any of:
number

Example

{
"data": [
{
"curl": {
"header_size": 412,
"size_download": 18234,
"speed_download": 69594
},
"date": "2026-10-01 07:00:00",
"dns_time_in_seconds": 0.012,
"download_time_in_seconds": 0.004,
"remote_server_processing_time_in_seconds": 0.18,
"ssl_handshake_time_in_seconds": 0.045,
"tcp_time_in_seconds": 0.021,
"total_time_in_seconds": 0.262
}
]
}
X-RateLimit-Limit
integer

Requests per minute allowed by the limit this response counts against.

X-RateLimit-Remaining
integer

Requests left in the current minute.

Missing, invalid, expired or session-only credentials, or a disabled user.

Media typeapplication/json
Unauthenticated
object
error
required
string

Examples

ExampleUnauthenticated

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.

Media typeapplication/json
ErrorMessage
object
message
required
string

Examples

ExampleForbidden

The token lacks the ability

{
"message": "Invalid ability provided."
}

Not found or not visible to this token.

Media typeapplication/json
ErrorMessage
object
message
required
string

Examples

ExampleNotFound

Missing or hidden

{
"message": "No query results for model [Heptapod\\Models\\Site] 12"
}

Invalid input.

Media typeapplication/json
ValidationError
object
errors
required

Field name => messages.

object
key
additional properties
Array<string>
message
required
string

Examples

ExampleValidationFailed

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.

Media typeapplication/json
TooManyRequests
object
error
required
string

Examples

ExampleTooManyRequests

Rate limited

{
"error": "Too Many Attempts."
}
Retry-After
integer

Seconds to wait before retrying.

X-RateLimit-Reset
integer

Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.