---
title: "Get repository clones"
method: GET
path: "/repos/{owner}/{repo}/traffic/clones"
tags: ["repos"]
---

# Get repository clones

`GET /repos/{owner}/{repo}/traffic/clones`

Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `per` 'day' | 'week'

## Response `200`

Response

- CloneTraffic — Clone Traffic
  - `count` integer, required
  - `uniques` integer, required
  - `clones` Traffic[], required
    - `timestamp` string, date-time, required
    - `uniques` integer, required
    - `count` integer, required

## Other responses

- `403` — Forbidden

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
