---
title: "GET /api/repos/{namespace}/{repository}/stats"
method: GET
path: "/api/repos/{namespace}/{repository}/stats"
tags: ["repository"]
---

# GET /api/repos/{namespace}/{repository}/stats

`GET /api/repos/{namespace}/{repository}/stats`

## Path parameters

- `namespace` string, required
- `repository` string, required

## Response `200`

Statistics about the repository

- RepoStatsStarsResponse — Statistics for a repository
  - `forks` RepoStatsDetailResponse, required — Details about a statistic like Stars, Forks or Watchers
    - `count` integer, required — Total number
    - `self` boolean, required — Whether the authenticated user has itself has given it for the repository
  - `size` integer, required — Size of the repository in bytes
  - `stars` RepoStatsDetailResponse, required — Details about a statistic like Stars, Forks or Watchers
    - `count` integer, required — Total number
    - `self` boolean, required — Whether the authenticated user has itself has given it for the repository
  - `watchers` RepoStatsDetailResponse, required — Details about a statistic like Stars, Forks or Watchers
    - `count` integer, required — Total number
    - `self` boolean, required — Whether the authenticated user has itself has given it for the repository

## Other responses

- `404` — Repository not found or access denied

---

[API](https://skmtc.dev/mari/apis/gitarena.md) · [All operations](https://skmtc.dev/mari/apis/gitarena/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mari/gitarena/revisions/b3640d5600df/schema)
