> ## Documentation Index
> Fetch the complete documentation index at: https://community.pqabelian.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Daily Transaction Metrics

> Retrieve daily transaction counts grouped by output privacy level.

Returns daily transaction counts for the selected window. Transactions are classified by the highest privacy level among their outputs: levels `0` and `1` have hidden amounts, while levels `2` and `3` are observable. The response includes the entire UTC date containing the cutoff.

> [!NOTE]
>
> Example response values are illustrative and may differ from the live network.

## Request parameters

**days** `number` (default: 90)

Number of days in the window. Must be an integer from 1 to 365.

## Response fields

**type** `string` *required*

Response type: `metrics-daily-txs`.

**payload** `object` *required*

**since** `string` *required*

UTC cutoff timestamp in RFC 3339 format.

**days** `object[]` *required*

Daily transaction counts.
**day** `string` *required* UTC date.
**total** `integer` *required* Total transactions across privacy levels 0 through 3, including coinbase transactions.
**byLevel** `object` *required* Counts keyed by maximum output privacy level. Levels with zero transactions are omitted.
**coinbase** `integer` *required* Number of coinbase transactions counted that day.

**levelNote** `string` *required*

Explanation of the output privacy-level classification.

Invalid `days` values return HTTP `400` with a `type` of `error` and a string `payload` describing the error.

```bash Request theme={null}
curl --request GET \
  --url 'https://pqabelian.io/api/v2/metrics/daily-txs?days=30'
```

```json Response theme={null}
{
  "type": "metrics-daily-txs",
  "payload": {
    "since": "2026-10-25T12:00:00Z",
    "days": [
      {
        "day": "2026-11-23",
        "total": 100,
        "byLevel": {"0": 10, "1": 30, "2": 40, "3": 20},
        "coinbase": 5
      }
    ],
    "levelNote": "a tx is classified by the max privacy level of its outputs; 0/1 = hidden-amount outputs, 2/3 = observable outputs"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.