---
title: "Aggregated Usage"
method: GET
path: "/v1/groups/{group_id}/aggregated_usage"
tags: ["DatabaseGroup"]
---

# Aggregated Usage

`GET /v1/groups/{group_id}/aggregated_usage`

## Request

- Base URL: `https://api.bunny.net/database`
- URL: `https://api.bunny.net/database/v1/groups/{group_id}/aggregated_usage`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-database-backend-api/docs/v1/groups/:group_id/aggregated_usage/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the aggregated usage for the time period for a Database Group.

## Path parameters

- `group_id` string, required: [DatabaseGroupId] is a `group_<ulid>`

## Query parameters

- `from` string, date-time, required
- `to` string, date-time, required

## Response `200`

- UsageDatabaseGroupResponse
  - `rows_read` integer, required: Rows read this month
  - `rows_written` integer, required: Rows written this month
  - `avg_latency_ms` number, double, required: Average Latency this month

## Other responses

- `4XX`: A default error response for most API errors.
- `5XX`: A default error response for most API errors.

---

[API](https://skmtc.dev/bunny/apis/bunny-database-backend-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-database-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-database-backend-api/revisions/f3bb69bad6b6?raw)
