---
title: "Retrieve usage statistics for an application"
method: GET
path: "/stats"
tags: ["Stats"]
---

# Retrieve usage statistics for an application

`GET /stats`

The Ably system can be queried to obtain usage statistics for a given application, and results are provided aggregated across all channels in use in the application in the specified period. Stats may be used to track usage against account quotas.

## Query parameters

- `start` string
- `limit` integer
- `end` string
- `direction` 'forwards' | 'backwards'
- `unit` 'minute' | 'hour' | 'day' | 'month'

## Response `2XX`

OK

- object

## Other responses

- `default` — Error

---

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