---
title: "Get namespaces with sorting by size."
method: GET
path: "/stats/namespace/usage"
tags: ["stats"]
---

# Get namespaces with sorting by size.

`GET /stats/namespace/usage`

Returns the top N namespaces sorted by total blob size in descending order. Namespaces outside the top N are aggregated into a single 'others' entry showing the remaining total size.

## Query parameters

- `top` integer

## Response `200`

OK

- ResponsesNamespaceUsage[]
  - `name` string, string
  - `namespace_id` string, binary
  - `size` number
  - `version` integer

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.dev/celenium-io/apis/celenium-api.md) · [All operations](https://skmtc.dev/celenium-io/apis/celenium-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/celenium-io/celenium-api/revisions/117307f84924/schema)
