# Get the weekly commit activity

From **GitHub v3 REST API**.

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

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

## Parameters

### `owner`

- Location: path
- Required: true
- Type: `string`

### `repo`

- Location: path
- Required: true
- Type: `string`

## Responses

### `200`

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

### `application/json`

- Type: `array`

```json
[
  [
    1302998400,
    1124,
    -435
  ]
]
```

```json
{"items":{"$ref":"#/components/schemas/code-frequency-stat"},"type":"array"}
```

### `202`

Accepted

### `application/json`

- Type: `object`

```json
{"type":"object"}
```

### `204`

A header with no content is returned.

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/stats/code_frequency
```
