---
title: "Retrieves app stats"
method: GET
path: "/apps/{id}/stats"
tags: ["apps"]
---

# Retrieves app stats

`GET /apps/{id}/stats`

## Path parameters

- `id` string, required

## Query parameters

- `start` integer
- `end` integer
- `unit` string
- `direction` string
- `limit` integer

## Response `200`

Returns app stats

- AppStatsResponse[]
  - `intervalId` string, required — The identifier for the stats interval.
  - `unit` string, required — The time unit for the stats. Can be `minute`, `hour`, `day`, or `month`.
  - `schema` string, required — The schema URL defining the structure of the stats.
  - `entries` object, required — Contains the actual statistics entries for this interval.
  - `inProgress` string — The last sub-interval included in this entry in the format yyyy-mm-dd:hh:mm:ss, else undefined. For entries that are still in progress, such as the current month.
  - `appId` string, required — The ID of the application the stats are associated with.

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `404` — App not found
- `500` — Internal server error

---

[API](https://skmtc.net/ably/apis/api-v1.md) · [All operations](https://skmtc.net/ably/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ably/api-v1/revisions/2b049ae2733f/schema)
