Skip to main content

List repositories starred by a user

Lists repositories a user has starred. You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/[email protected]/rest/overview/media-types/) via the `Accept` header:

GET/users/{username}/starred
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
username string
required
Query Parameters
sort string
optional

One of `created` (when the repository was starred) or `updated` (when it was last pushed to).

direction string
optional

One of `asc` (ascending) or `desc` (descending).

per_page integer
optional

Results per page (max 100)

page integer
optional

Page number of the results to fetch.

Responses

application/json

Response

Headers
Link string
Example:
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"