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

# GetRawStatistics

`GET https://api.gleap.io/v3/statistics/raw-data`

Get raw statistics data. Filterable fields: `actionType` (e.g. `HOME_MENU_CLICK`), `resourceType` (e.g. `WIDGET`), `actionUser`, `associatedEntity`, `description`, `first`, `rowId`, and the `data.*` fields (`data.type`, `data.tags`, `data.processingUser`, `data.ticketId`, …). Suffix a filter with `_gte`, `_lte`, `_gt`, `_lt`, `_ne`, `_in` or `_nin` for range/set operators. Rows are sorted by `actionType`, then `createdAt`, then `rowId`. One page holds at most 10000 rows (`limit`, default and max 10000). When more rows match, the response carries an `X-Next-Cursor` header: pass it back as `cursor` with the same filters for the next page, until a response has no such header. `skip` is not supported (400). Limited to 30 requests a minute per project. A filter on a field this table doesn't have is rejected with a 400 naming the field and listing the supported ones. Row timestamps are UTC; `timezone` does not apply here (it only affects bucketed endpoints).

## Authorization

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

## Query parameters

- `timezone` (string): -   Ignored on this endpoint; raw rows carry UTC timestamps
- `groupInterval` (enum<string>): One of: `hour`, `day`, `month`, `year`.
- `skip` (number<double>)
- `limit` (number<double>)
- `groupedBy` (string)
- `aggsType` (string)
- `startDate` (string): -   Start date for filtering (ISO format)
- `endDate` (string): -   End date for filtering (ISO format)
- `createdAt` (string)
- `updatedAt` (string)
- `type` (string): -   Not a filter on this endpoint (`stats_events` has no `type` column) — passing it returns 400. The per-message kind lives in `data.type` (e.g. SHARED\_COMMENT, USER\_TEXT, BOT\_REPLY).
- `cursor` (string): -   The `X-Next-Cursor` header of the previous page, unchanged

## Example request

```bash
curl --request GET \
  --url https://api.gleap.io/v3/statistics/raw-data \
  --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"
}
```
