---
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 — Aggregate counts for a ledger
    - `accounts` integer, required — Total number of accounts in the ledger
    - `transactions` integer, required — Total number of transactions in the ledger

## 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/fe945da1b75d/schema)
