Skip to content

List public gists

GET/gists/public

Lists every public gist on the instance, regardless of the caller's authentication state. Unlisted and private gists are never returned.

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

Request

Headers

NameTypeScopes
Authorizationoptionalstring

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 public gists.
Headers:LinkX-PageX-Per-PageX-TotalX-Total-Pages
400ErrorThe request was malformed.