---
title: "GET /api/v1/sla-reports/{pk}/stats/"
method: GET
path: "/api/v1/sla-reports/{pk}/stats/"
tags: ["sla-reports"]
---

# GET /api/v1/sla-reports/{pk}/stats/

`GET /api/v1/sla-reports/{pk}/stats/`

## Request

- Base URL: `https://uptime.com` (the document declares no server; this is the origin it was published from)
- URL: `https://uptime.com/api/v1/sla-reports/{pk}/stats/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/sla-reports/:pk/stats/get.ts> (a function with typed inputs; its response is checked against the schema)

Generates the report for the specified time period

## Path parameters

- `pk` string, required

## Query parameters

- `start_date` string
- `end_date` string
- `output` 'json' | 'pdf' | 'xls'

## Response `200`

- SLAReportStats
  - `start_date` string, date-time: The first day to show statistics for in ISO 8601 (YYYY-MM-DDTHH:MM:SSZ) format.
  - `end_date` string, date-time: The last day to show statistics for in ISO 8601 (YYYY-MM-DDTHH:MM:SSZ) format.
  - `output` 'json' | 'pdf' | 'xls': The output format of the report: [json, pdf, xls]
  - `has_response_time_data` boolean
  - `uses_daily_response_time_data` boolean
  - `uptime` object
  - `groups` object[]
  - `response_time` object[]

---

[API](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema.md) - [All operations](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/llms.txt) - [OpenAPI document](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/revisions/e1e4a57a60d8?raw)
