---
title: "Get all uptime check periods"
method: GET
path: "/uptime/{test_id}/periods"
tags: ["uptime"]
---

# Get all uptime check periods

`GET /uptime/{test_id}/periods`

Returns a list of uptime check periods for a given id, detailing the
creation time of the period, when it ended and the duration.

The returned results are a paginated series. Alongside the response
data is a `links` object referencing the current response document,
`self`, and the next page in the series, `next`.

## Path parameters

- `test_id` string, required

## Query parameters

- `limit` integer
- `before` integer
- `after` integer

## Response `200`

OK

- UptimeTestPeriods
  - `data` UptimeTestPeriod[], required — List of uptime check periods
    - `created_at` string, date-time, required — When the status period was created (RFC3339 format)
    - `duration` integer — Status period duration (ms)
    - `ended_at` string, date-time — When the status period ended (RFC3339 format)
    - `status` 'down' | 'up', required — The returned status of an uptime check
  - `links` Links, required
    - `self` string, uri, required — The URL that created the current response document
  - `metadata` Metadata

## Other responses

- `default` — Unexpected Error

---

[API](https://skmtc.dev/statuscake/apis/statuscake-api.md) · [All operations](https://skmtc.dev/statuscake/apis/statuscake-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/statuscake/statuscake-api/revisions/6d32a6afe2cf/schema)
