# Get a monitor's uptime per day

`GET https://evohub.io/api/v1/monitors/{id}/uptime/daily`

Part of the [Uptime API](https://docs-dev.evohub.io/uptime.md) reference · operationId `getMonitorDailyUptime`.

One entry per UTC calendar day for the last `days` days, today
included, oldest first — the data behind an uptime calendar. A day
with no checks is `no_data`, never counted as up.

Requires the `uptime:monitor:read` scope.

## Authorization

Any one of:

- `bearerKey`
- `headerKey`

Where:

- `bearerKey`: HTTP Bearer — An EvoHub API key (`evohub_…`) as a bearer token.
- `headerKey`: API key in the header `X-API-Key` — An EvoHub API key (`evohub_…`).

## Path parameters

- `id` (string, required, example `mon_8c1d0b52-6f3e-4a7d-9b21-0e5c4f7a3d19`): The monitor's ID.

## Query parameters

- `days` (integer, default `90`, min 1, max 90): How many days to return. Values are clamped to 1–90; a value that is not a number is read as 90.

## Responses

### 200 — The days.

Content type: `application/json`

Type: `object`

- `data` (object)
  - `monitor_id` (string, required)
  - `days` (array of DailyUptime, required)
    - `date` (string (date), required): The UTC calendar day.
    - `up_ratio` (number | null, required): Share of up checks, 0–1; `null` with no checks.
    - `status` (string, required, one of `operational`, `degraded`, `down`, `no_data`): `operational` when every check was up, `down` when none was, `degraded` in between, `no_data` without checks.
    - `checks` (integer, required)

### 401 — No API key was sent, or it is unknown, revoked or expired (`UNAUTHORIZED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

### 403 — The key lacks the scope this endpoint needs (`FORBIDDEN`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

### 404 — The monitor does not exist, or belongs to a team the caller cannot see (`MONITOR_NOT_FOUND`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

### 429 — Too many requests (`RATE_LIMITED`). Wait for `Retry-After` seconds.

Headers:

- `Retry-After` (integer): Seconds to wait before retrying.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

### 500 — Something went wrong on EvoHub's side (`INTERNAL_ERROR`). Retry later.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

## Example request

```bash
curl -X GET 'https://evohub.io/api/v1/monitors/mon_8c1d0b52-6f3e-4a7d-9b21-0e5c4f7a3d19/uptime/daily' \
  -H 'Authorization: Bearer <TOKEN>'
```
