---
title: "Get statistics from a ledger"
method: GET
path: "/{ledger}/stats"
tags: ["ledger.v1"]
---

# Get statistics from a ledger

`GET /{ledger}/stats`

Get statistics from a ledger. (aggregate metrics on accounts and transactions)

## Path parameters

- `ledger` string, required

## Response `200`

OK

- StatsResponse
  - `data` Stats, required
    - `accounts` integer, required
    - `transactions` integer, required

## Other responses

- `default` — Error

---

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