---
title: "Get repository size"
method: GET
path: "/api/repos/{namespace}/{repo_name}/size"
tags: ["Repositories"]
---

# Get repository size

`GET /api/repos/{namespace}/{repo_name}/size`

## Request

- Base URL: `https://hub.oxen.ai`
- URL: `https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/size`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oxen/apis/oxen-server/docs/api/repos/:namespace/:repo_name/size/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the cached size of the repository in bytes.

## Path parameters

- `namespace` string, required
- `repo_name` string, required

## Response `200`

Repository size in bytes

- RepoSizeFile: A repository's size in bytes together with the state of the calculation behind it. The figure is the last one a pass completed, or zero when none has.
  - `size` integer, required
  - `status` 'pending' | 'done' | 'error', required

## Other responses

- `404`: Repository not found

---

[API](https://skmtc.dev/oxen/apis/oxen-server.md) - [All operations](https://skmtc.dev/oxen/apis/oxen-server/llms.txt) - [OpenAPI document](https://skmtc.dev/oxen/apis/oxen-server/revisions/2ae578129949?raw)
