Skip to content

List a gist's forks

GET/gists/{uuid}/forks

Lists the gists that fork the targeted gist, filtered to what the caller may see: public forks plus the caller's own private/unlisted forks. Anonymous callers see public forks only.

The targeted gist follows the usual visibility rules: a private gist resolves only for its owner with a gist:read-capable token, otherwise 404.

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

Request

Headers

NameTypeScopes
Authorizationoptionalstring

Path parameters

NameTypeDescription
uuidrequiredstringThe gist's UUID.

Query parameters

NameTypeDescription
pageintegerPage number, 1-based. (default: 1, min: 1)
per_pageintegerItems per page. (default: 30, min: 1, max: 100)

Responses

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