Skip to content

List gists liked by a user

GET/users/{username}/liked

Lists gists the named user has liked, filtered to what the caller may see. The user's own private/unlisted liked gists only surface when the caller IS that user AND their token holds the gist:read scope; any other caller sees public liked gists only.

Results are a JSON array; pagination is conveyed via the Link and X-* response headers (see the response headers below).

This liked endpoint also accept starred in the path as aliases to try to keep a GitHub compatibility - e.g. /user/{username}/starred. The behavior is the same.

Request

Headers

NameTypeScopes
Authorizationoptionalstring

Path parameters

NameTypeDescription
usernamerequiredstringThe user's username.

Query parameters

NameTypeDescription
pageintegerPage number, 1-based. (default: 1, min: 1)
per_pageintegerItems per page. (default: 30, min: 1, max: 100)
sincestring <date-time>Only return gists updated at or after this RFC 3339 timestamp.

Responses

StatusBodyDescription
200GistSimple[]A list of liked gists.
Headers:LinkX-PageX-Per-PageX-TotalX-Total-Pages
400ErrorThe request was malformed.
404ErrorThe requested resource does not exist (or is not visible to the caller).