---
title: "Get the weekly commit activity"
method: GET
path: "/repos/{owner}/{repo}/stats/code_frequency"
tags: ["repos"]
---

# Get the weekly commit activity

`GET /repos/{owner}/{repo}/stats/code_frequency`

Returns a weekly aggregate of the number of additions and deletions pushed to a repository.

## Path parameters

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

## Response `200`

Returns a weekly aggregate of the number of additions and deletions pushed to a repository.

- CodeFrequencyStat[]
  - integer[] — Code Frequency Stat

## Other responses

- `202` — Accepted
- `204` — A header with no content is returned.

---

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