---
title: "GetFactData"
url: https://docs.gleap.ai/en/reference/rest-api/get-fact-data
method: GET
path: "/statistics/facts"
api: "API Reference"
tag: "Statistics"
operationId: "GetFactData"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# GetFactData

`GET https://api.gleap.io/v3/statistics/facts`

Get fact data for various statistics

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Query parameters

- `chartType` (any, required): -   Type of fact data to retrieve (e.g., NEW\_TICKETS\_COUNT, MEDIAN\_TIME\_TO\_CLOSE)
- `timezone` (string): -   Timezone for date calculations
- `groupInterval` (enum<string>): One of: `hour`, `day`, `month`, `year`.
- `skip` (number<double>)
- `limit` (number<double>)
- `groupedBy` (string)
- `aggsType` (string): -   Aggregation type ("MEDIAN", "AVERAGE")
- `startDate` (string): -   Start date for filtering (ISO format)
- `endDate` (string): -   End date for filtering (ISO format)
- `createdAt` (string)
- `updatedAt` (string)
- `outbound` (string)

## Example request

```bash
curl --request GET \
  --url 'https://api.gleap.io/v3/statistics/facts?chartType=<chartType>' \
  --header 'Authorization: Bearer <token>'
```

## Responses

### 200 (`application/json`)

Ok

### 403 (`application/json`)

Report locked

- `code` (enum<string>, required): One of: `REPORT_LOCKED`.
- `reason` (enum<string>, required): One of: `colleague_performance`, `review_scores`, `reviews`, `help_center`, `ai_cost`, `export`, `board_access`.

```json
{
  "code": "REPORT_LOCKED",
  "reason": "colleague_performance"
}
```
