GET
/gists/{gist_id}/forksList forks of a gist
Lists the forks of a specified gist. Use gist_id to identify the gist and page with per_page to control the paginated results. Forks are returned as gist objects with their associated metadata.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
gist_idstringrequired
The unique identifier of the gist whose forks to list.
per_pageintegeroptional
The number of results per page, up to 100. Defaults to 30 when omitted.
pageintegeroptional
The page number of results to retrieve. Defaults to 1 when omitted.
200Returns an array of gist fork objects, including fork metadata and the originating gist.
forksarray<object>deprecatedoptional
historyarray<GistHistory>deprecatedoptional
fork_ofobjectoptional
Gist
urlstringoptional
forks_urlstringoptional
commits_urlstringoptional
idstringoptional
node_idstringoptional
git_pull_urlstringoptional
git_push_urlstringoptional
html_urlstringoptional
filesobjectoptional
publicbooleanoptional
created_atstringoptional
updated_atstringoptional
descriptionstringoptional
commentsintegeroptional
comments_enabledbooleanoptional
userstringoptional
comments_urlstringoptional
ownerobjectoptional
A GitHub user.
truncatedbooleanoptional
304Returned when the requested representation has not changed.
403Returned when access to the gist forks is forbidden.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the specified gist cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 403 is returned when the authenticated user is not permitted to access the gist forks. A 404 is returned when the gist identified by gist_id does not exist. Use page and per_page to paginate the results; per_page must not exceed 100.