GET
/users/{username}/gistsList public gists for a user
Lists public gists for the specified user. Use since to filter by last-updated time, and use page and per_page to paginate the results. per_page accepts up to 100 results per page.
usernamestringrequired
The handle for the GitHub user account whose public gists to list.
sincestringoptional
Return gists updated after this timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
per_pageintegeroptional
Number of results per page, up to 100. Defaults to 30 when omitted.
pageintegeroptional
Page number of the results to retrieve. Defaults to 1 when omitted.
200Returns an array of public gist objects, including each gist's identifier, URLs, files, visibility, description, comment count, and timestamps.
urlstringrequired
forks_urlstringrequired
commits_urlstringrequired
idstringrequired
node_idstringrequired
git_pull_urlstringrequired
git_push_urlstringrequired
html_urlstringrequired
filesobjectrequired
publicbooleanrequired
created_atstringrequired
updated_atstringrequired
descriptionstringrequired
commentsintegerrequired
comments_enabledbooleanoptional
userobjectrequired
A GitHub user.
comments_urlstringrequired
ownerobjectoptional
A GitHub user.
truncatedbooleanoptional
forksarrayoptional
historyarrayoptional
422Returned when query validation fails or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional
Error handling
A 422 is returned when query validation fails or the endpoint has been spammed. The username path parameter identifies the user whose gists you want, since must use ISO 8601 date-time format, and per_page cannot exceed 100.