---
title: "Get the last year of commit activity"
method: GET
path: "/repos/{owner}/{repo}/stats/commit_activity"
tags: ["repos"]
---

# Get the last year of commit activity

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

Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`.

## Path parameters

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

## Response `200`

Response

- CommitActivity[]
  - `days` integer[], required
  - `total` integer, required
  - `week` integer, required

## Other responses

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

---

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