GET/users/{username}/starred

List repositories starred by a user

Lists repositories a user has starred.

If the specified user has a private profile, this endpoint returns an empty list unless the request is authenticated as that user. A request authenticated as the specified user returns starred repositories visible to the token even if the token has no OAuth scopes.

This endpoint supports the following custom media types. For more information, see "Media types."

  • application/vnd.github.star+json: Includes a timestamp of when the star was created.
  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

5 parameters
usernamestringrequired
The handle for the GitHub user account.
sortstringoptional
The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed to.
Allowed:createdupdatedDefault:created
directionstringoptional
The direction to sort the results by.
Allowed:ascdescDefault:desc
per_pageintegeroptional
The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:30
pageintegeroptional
The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:1

1 status code
200Response
starred_atstringrequired
repoobjectrequired
A repository on GitHub.

Was this helpful?