GET/gists/{gist_id}/forks

List forks of a gist

Lists forks of a gist, returning the forked gist objects. Use page and per_page to paginate the results.

3 parameters
gist_idstringrequired
The unique identifier of the gist whose forks to list.
per_pageintegeroptional
Number of results per page, up to 100. Defaults to 30 when omitted.
Default:30
pageintegeroptional
Page number of the results to retrieve. Defaults to 1 when omitted.
Default:1

4 status codes
200Returns an array of forked gist objects.
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 gist forks have not changed since the last request.
403Returned when the authenticated user is not permitted to access the gist forks.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when no gist exists with the given `gist_id`.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned when the authenticated user cannot access the gist. A 404 is returned when the gist_id path parameter does not identify an existing gist.