activity

Get repository star 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.

get/repos/{owner}/{repo}/stargazers/history

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Query parameters

per_pageinteger

The number of results per page (max 30). For more information, see "Using pagination in the REST API."

pageinteger

The page number of the results to fetch (max 100). For more information, see "Using pagination in the REST API."

Response

Repository star history

daysinteger[] required

The number of stars created on each day of the week, starting on Sunday.

totalinteger required

The number of stars created during the week.

weekinteger required

The start of the week, given as a Unix timestamp.

Example response

[
  {
    "days": [
      0,
      12,
      7,
      0,
      0,
      0,
      0
    ],
    "total": 19,
    "week": 1754784000
  }
]

Changes