---
title: "List repositories"
method: GET
path: "/projects/{project_name}/repositories"
tags: ["repository"]
---

# List repositories

`GET /projects/{project_name}/repositories`

List repositories of the specified project

## Path parameters

- `project_name` string, required

## Query parameters

- `q` string
- `sort` string
- `page` integer
- `page_size` integer

## Headers

- `X-Request-Id` string

## Response `200`

Success

- Repository[]
  - `id` integer — The ID of the repository
  - `project_id` integer — The ID of the project that the repository belongs to
  - `name` string — The name of the repository
  - `description` string — The description of the repository
  - `artifact_count` integer — The count of the artifacts inside the repository
  - `pull_count` integer — The count that the artifact inside the repository pulled
  - `creation_time` string, date-time, nullable — The creation time of the repository
  - `update_time` string, date-time — The update time of the repository

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/goharbor/apis/harbor-api.md) · [All operations](https://skmtc.dev/goharbor/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goharbor/harbor-api/revisions/62d78801f8df/schema)
