---
title: "Get bucketed status data for a monitor using TimescaleDB"
method: GET
path: "/monitors/{monitor_id}/bucketed"
tags: ["Status Page"]
---

# Get bucketed status data for a monitor using TimescaleDB

`GET /monitors/{monitor_id}/bucketed`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/monitors/{monitor_id}/bucketed`
- Auth: HTTP bearer

## Path parameters

- `monitor_id` integer, required

## Query parameters

- `interval` string
- `start_time` string
- `end_time` string

## Response `200`

Successfully retrieved bucketed status data

- StatusBucketedResponse
  - `buckets` StatusBucket[], required
    - `avg_response_time_ms` number, double, nullable
    - `bucket_start` string, date-time, required
    - `degraded_count` integer, required
    - `down_count` integer, required
    - `max_response_time_ms` number, double, nullable
    - `min_response_time_ms` number, double, nullable
    - `operational_count` integer, required
    - `p50_response_time_ms` number, double, nullable
    - `p95_response_time_ms` number, double, nullable
    - `p99_response_time_ms` number, double, nullable
    - `status` string, required: "operational", "degraded", "down", or "unknown" -- the last for a bucket no check landed in. Every bucket of the requested range is returned, so a stretch without checks shows up as "unknown" rather than disappearing from the timeline.
    - `total_checks` integer, required
    - `uptime_percentage` number, double, nullable: `None` for a bucket without checks.
  - `interval` string, required
  - `monitor_id` integer, required

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Monitor not found
- `500`: Internal server error

## Changes

- **2026-10-23** `3d4dc1f5748b`: 2 breaking
  - the response property `buckets/items/uptime_percentage` became nullable for the status `200`
  - the response property `buckets/items/uptime_percentage` became optional for the status `200`
- **2026-10-23** `24af93ff5379`: 1 info
  - the response property `buckets/items/uptime_percentage` became required for the status `200`
- **2026-10-22** `0647d8f737b5`: 2 breaking
  - the response property `buckets/items/uptime_percentage` became nullable for the status `200`
  - the response property `buckets/items/uptime_percentage` became optional for the status `200`
- **2026-10-22** `add7f7b41ae2`: 1 info
  - the response property `buckets/items/uptime_percentage` became required for the status `200`
- **2026-10-22** `2b6a033a7458`: 2 breaking
  - the response property `buckets/items/uptime_percentage` became nullable for the status `200`
  - the response property `buckets/items/uptime_percentage` became optional for the status `200`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/monitors/:monitor_id/bucketed/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
