---
title: "Get HTTP uptime metrics"
description: "GET /monitors/{monitor}/http-uptime-metrics"
---

- **Method:** `GET`
- **Path:** `/monitors/{monitor}/http-uptime-metrics`
- **Operation ID:** `httpUptimeMetrics`
- **Tags:** Uptime

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`.

## Effective servers

- `/api`

## Authentication

- **bearerAuth**: HTTP bearer

  Personal access token from **Settings → API tokens**, sent as `Authorization: Bearer <token>`. Abilities are independent: write does not imply read. New tokens name their abilities: `*` is no longer issued. Existing `*` tokens still match every ability, limited by the current role and client access. `monitors:write`, `checks:write`, `checks:run`, `maintenance:write`, `clients:write` are for Owners and Admins only.
  Servers (experimental): `servers:read`, `servers:snooze` belong to the experimental servers addon: Owners and Admins only, never on a token limited to a client, and only while servers are switched on.

  Frozen presets of the settings endpoint:
  - `read`: `identity:read`, `monitors:read`, `checks:read`, `incidents:read`, `uptime:read`, `downtime:read`, `tags:read`, `clients:read`, `maintenance:read`
  - `write` and `manage`: `identity:read`, `monitors:read`, `monitors:write`, `checks:read`, `checks:write`, `checks:snooze`, `incidents:read`, `incidents:note`, `uptime:read`, `downtime:read`, `tags:read`, `tags:write`, `maintenance:read`, `maintenance:write`
  - `agent-read`: `identity:read`, `monitors:read`, `checks:read`, `incidents:read`, `activity:read`, `upcoming:read`

  Starting points of the token form (they fill the checklist; the checked abilities are the grant):
  - Read everything: every `:read` ability
  - Deploy automation (Owners and Admins): `monitors:read`, `checks:read`, `checks:run`, `maintenance:read`, `maintenance:write`

  Operations per ability (see `x-sanctum-abilities` of each operation):
  - `identity:read`: getMe
  - `monitors:read`: listMonitors, getMonitorByUrl, getMonitor
  - `monitors:write`: createMonitor, updateMonitor, deleteMonitor
  - `checks:read`: findings, listCheckRuns, getRun, getCheckSummary, listCronChecks
  - `checks:write`: createCheckRun, requestCheckRun, enableCheck, disableCheck, snoozeCheck, unsnoozeCheck, createCronCheck, syncCronChecks, updateCronCheck, deleteCronCheck, snoozeCronCheck, unsnoozeCronCheck, internal.snoozeIncident, internal.unsnoozeIncident
  - `checks:snooze`: snoozeCheck, unsnoozeCheck, snoozeCronCheck, unsnoozeCronCheck, internal.snoozeIncident, internal.unsnoozeIncident
  - `incidents:read`: internal.getIncidentNote, listIncidents, getIncident
  - `incidents:note`: internal.saveIncidentNote
  - `uptime:read`: getUptime, httpUptimeMetrics
  - `downtime:read`: getDowntime
  - `tags:read`: listTags
  - `tags:write`: createTag
  - `maintenance:read`: listMaintenancePeriods
  - `maintenance:write`: startMaintenance, stopMaintenance, createMaintenancePeriod, updateMaintenancePeriod, deleteMaintenancePeriod
  - `activity:read`: listActivity
  - `upcoming:read`: listUpcoming
  - `checks:run`: createCheckRun, requestCheckRun
  - `clients:read`: listClients, getClient
  - `clients:write`: createClient, updateClient, archiveClient, restoreClient
  - `servers:read`: listServers, getServer, listServerIssues
  - `servers:snooze`: snoozeServer, unsnoozeServer

## Path parameters

- **`monitor` (required)**: `integer`

  The monitor ID

## Query parameters

- **`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`, possible values: `"minute", "hour", "day", "week", "month"`

  Bucket size (default `hour`). `minute` needs a window of at most 24 hours within raw retention.
- **`split`**: `string`, possible values: `"hour", "day", "month"`

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

## Responses

### 200 OK.

**Headers:**

- **`X-RateLimit-Limit`**

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

  `integer`
- **`X-RateLimit-Remaining`**

  Requests left in the current minute.

  `integer`, minimum: `0`

**Content type:** `application/json`

no additional properties

- **`data` (required)**: `array`

  **Items:**
  - **`date` (required)**: `string`

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

  **Additional properties:**

  **Any of:**
  - `number`
  - `object`

    **Additional properties:**

    `number`

  Timing averages in seconds (`*_time_in_seconds`) and the nested `curl` metrics object.

**Example:**

```json
{
  "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
    }
  ]
}
```

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

**Content type:** `application/json`

schema: `Unauthenticated`

- **`error` (required)**: `string`

**Example: Unauthenticated**

Missing or invalid token

```json
{
  "error": "Unauthenticated."
}
```

### 403 The token lacks a required ability, or the user's role or client access does not allow this action.

**Content type:** `application/json`

schema: `ErrorMessage`

- **`message` (required)**: `string`

**Example: Forbidden**

The token lacks the ability

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

### 404 Not found or not visible to this token.

**Content type:** `application/json`

*Schema `ErrorMessage` is shown above.*

**Example: NotFound**

Missing or hidden

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

### 422 Invalid input.

**Content type:** `application/json`

schema: `ValidationError`

- **`errors` (required)**: `object`

  Field name => messages.

  **Additional properties:**

  `array of string`
- **`message` (required)**: `string`

**Example: ValidationFailed**

Invalid input

```json
{
  "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."
}
```

### 429 Rate limited: 60 requests per minute per source IP before authentication, and 60 per minute per user and per token. See Retry-After.

**Headers:**

- **`Retry-After`**

  Seconds to wait before retrying.

  `integer`, minimum: `0`
- **`X-RateLimit-Reset`**

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

  `integer`

**Content type:** `application/json`

schema: `TooManyRequests`

- **`error` (required)**: `string`

**Example: TooManyRequests**

Rate limited

```json
{
  "error": "Too Many Attempts."
}
```

## Schemas

- `ErrorMessage` — shown above.
- `TooManyRequests` — shown above.
- `Unauthenticated` — shown above.
- `ValidationError` — shown above.
