---
title: "Active stats"
method: GET
path: "/v2/databases/active_usage"
tags: ["Database (v2)"]
---

# Active stats

`GET /v2/databases/active_usage`

## Request

- Base URL: `https://api.bunny.net/database`
- URL: `https://api.bunny.net/database/v2/databases/active_usage`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `AccessKey`

Get active stats for Databases.

A database is active while it is deployed on the cluster. An idle database is
stopped and is not active until its next request starts it again. Suspended
databases are not active.

## Response `200`

- ActiveStatsResponse
  - `active_db` integer, required: Number of databases deployed on the cluster. An idle database is stopped and is not counted until its next request starts it again. Suspended databases are not counted.
  - `total_db` integer, required: Total number of DB
  - `total_db_size` string, required: Total used storage for DBs

## 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)
