---
title: "Get Uptime Stats"
method: GET
path: "/api/websites/{id}/uptime-stats"
tags: ["Websites"]
---

# Get Uptime Stats

`GET /api/websites/{id}/uptime-stats`

## Request

- Base URL: `https://uptimeify.io`
- URL: `https://uptimeify.io/api/websites/{id}/uptime-stats`
- Auth: HTTP bearer

GET /api/websites/:websitePublicId/uptime-stats

## Path parameters

- `id` string, required

## Response `200`

OK

- object: 24 hours, 30 days and the calendar year; averages in ms (0 without data).
  - `day` string, required: Percent with two decimals, e.g. "99.95".
  - `month` string, required: Percent with two decimals, e.g. "99.95".
  - `year` string, required: Percent with two decimals, e.g. "99.95".
  - `blockedRatio` object, required
    - `day` number, required: Share of the window in which the monitor could not be measured.
    - `month` number, required: Share of the window in which the monitor could not be measured.
    - `year` number, required: Share of the window in which the monitor could not be measured.
  - `dayAvgResponse` number, required
  - `monthAvgResponse` number, required
  - `yearAvgResponse` number, required

## Other responses

- `400`: Invalid or missing parameters.
- `401`: Missing, invalid or expired API token.
- `404`: No such resource, or not visible to this token.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api.md) · [All operations](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/revisions/2129a771ee7e?raw)
