---
title: "GET /api/instance/stats"
method: GET
path: "/api/instance/stats"
tags: ["InstanceService"]
---

# GET /api/instance/stats

`GET /api/instance/stats`

## Request

- The document declares no server URL.
- Auth: none declared

GetInstanceStats gets resource usage statistics for the instance. Admin only. Results are cached for 60 seconds.

## Response `200`

OK

- InstanceStats: InstanceStats is a snapshot of the instance's resource usage.
  - `database` InstanceStatsDatabaseStats: DatabaseStats is the database size statistics.
    - `driver` string: The database driver: "sqlite", "mysql" or "postgres".
    - `sizeBytes` string: The database size in bytes. -1 if unavailable.
  - `localStorageBytes` string: The recursive size of the data directory in bytes. -1 if unavailable.
  - `generatedTime` string, date-time: The time the snapshot was generated on the server.

## Other responses

- `default`: Default error response

## Changes

- **2026-10-08** `1846a777b0ef`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usememos/apis/untitled-api/changes/api/instance/stats/get.md)

---

[API](https://skmtc.dev/usememos/apis/untitled-api.md) - [All operations](https://skmtc.dev/usememos/apis/untitled-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usememos/apis/untitled-api/revisions/f587355e35b4?raw)
