---
title: "Get repository star history"
method: GET
path: "/repos/{owner}/{repo}/stargazers/history"
tags: ["activity"]
---

# Get repository star history

`GET /repos/{owner}/{repo}/stargazers/history`

Returns repository stars grouped by calendar weeks, most recent first. Pages move backward toward the repository's creation week, and weeks within a page are ordered newest to oldest, so concatenating pages produces one continuous series. Weeks without stars contain zero counts. Week and day boundaries are not guaranteed to align with UTC. The `days` array contains the number of stars created on each day of the week, starting on Sunday.

## Path parameters

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

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Repository star history

- StargazerHistory[]
  - `days` integer[], required — The number of stars created on each day of the week, starting on Sunday.
  - `total` integer, required — The number of stars created during the week.
  - `week` integer, required — The start of the week, given as a Unix timestamp.

## Other responses

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

## Changes

- **2026-09-10** `a4865748553e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/github/apis/enterprise-cloud/changes/repos/:owner/:repo/stargazers/history/get.md)

---

[API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.dev/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/github/apis/enterprise-cloud/revisions/e9af1ee5b414?raw)
