---
title: "List repository activities"
method: GET
path: "/repos/{owner}/{repo}/activity"
tags: ["repos"]
---

# List repository activities

`GET /repos/{owner}/{repo}/activity`

Lists a detailed history of changes to a repository, such as pushes, merges, force pushes, and branch changes, and associates these changes with commits and users.

For more information about viewing repository activity,
see "[Viewing activity and data for your repository](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository)."

## Path parameters

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

## Query parameters

- `direction` 'asc' | 'desc'
- `per_page` integer
- `before` string
- `after` string
- `ref` string
- `actor` string
- `time_period` 'day' | 'week' | 'month' | 'quarter' | 'year'
- `activity_type` 'push' | 'force_push' | 'branch_creation' | 'branch_deletion' | 'pr_merge' | 'merge_queue_merge'

## Response `200`

Response

- Activity[]
  - `id` integer, required
  - `node_id` string, required
  - `before` string, required — The SHA of the commit before the activity.
  - `after` string, required — The SHA of the commit after the activity.
  - `ref` string, required — The full Git reference, formatted as `refs/heads/<branch name>`.
  - `timestamp` string, date-time, required — The time when the activity occurred.
  - `activity_type` 'push' | 'force_push' | 'branch_deletion' | 'branch_creation' | 'pr_merge' | 'merge_queue_merge', required — The type of the activity that was performed.
  - `actor` NullableSimpleUser, nullable, required — A GitHub user.
    - `name` string, nullable
    - `email` string, nullable
    - `login` string, required
    - `id` integer, required
    - `node_id` string, required
    - `avatar_url` string, uri, required
    - `gravatar_id` string, nullable, required
    - `url` string, uri, required
    - `html_url` string, uri, required
    - `followers_url` string, uri, required
    - `following_url` string, required
    - `gists_url` string, required
    - `starred_url` string, required
    - `subscriptions_url` string, uri, required
    - `organizations_url` string, uri, required
    - `repos_url` string, uri, required
    - `events_url` string, required
    - `received_events_url` string, uri, required
    - `type` string, required
    - `site_admin` boolean, required
    - `starred_at` string
    - `user_view_type` string

## Other responses

- `422` — Validation failed, or the endpoint has been spammed.

---

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