GET
/repos/{owner}/{repo}/forksList repository forks
Lists the forks of a specified repository. Use sort, per_page, and page to control ordering and pagination; the response contains minimal repository objects for the matching forks.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
ownerstringrequired
The account owner of the repository; the name is not case sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case sensitive.
sortstringoptional
The fork sort order: `newest`, `oldest`, `stargazers`, or `watchers`. Defaults to `newest` when omitted.
per_pageintegeroptional
The number of forks to return per page, up to 100. Defaults to 30 when omitted.
pageintegeroptional
The page number of forks to retrieve. Defaults to 1 when omitted.
200Returns an array of minimal repository objects representing the repository's forks.
idintegerrequired
node_idstringrequired
namestringrequired
full_namestringrequired
ownerobjectrequired
A GitHub user.
privatebooleanrequired
html_urlstringrequired
descriptionstringrequired
forkbooleanrequired
urlstringrequired
archive_urlstringrequired
assignees_urlstringrequired
blobs_urlstringrequired
branches_urlstringrequired
collaborators_urlstringrequired
comments_urlstringrequired
commits_urlstringrequired
compare_urlstringrequired
contents_urlstringrequired
contributors_urlstringrequired
deployments_urlstringrequired
downloads_urlstringrequired
events_urlstringrequired
forks_urlstringrequired
git_commits_urlstringrequired
git_refs_urlstringrequired
git_tags_urlstringrequired
git_urlstringoptional
issue_comment_urlstringrequired
issue_events_urlstringrequired
issues_urlstringrequired
keys_urlstringrequired
labels_urlstringrequired
languages_urlstringrequired
merges_urlstringrequired
milestones_urlstringrequired
notifications_urlstringrequired
pulls_urlstringrequired
releases_urlstringrequired
ssh_urlstringoptional
stargazers_urlstringrequired
statuses_urlstringrequired
subscribers_urlstringrequired
subscription_urlstringrequired
tags_urlstringrequired
teams_urlstringrequired
trees_urlstringrequired
clone_urlstringoptional
mirror_urlstringoptional
hooks_urlstringrequired
svn_urlstringoptional
homepagestringoptional
languagestringoptional
forks_countintegeroptional
stargazers_countintegeroptional
watchers_countintegeroptional
sizeintegeroptional
The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.
default_branchstringoptional
open_issues_countintegeroptional
is_templatebooleanoptional
topicsarray<string>optional
has_issuesbooleanoptional
has_projectsbooleanoptional
has_wikibooleanoptional
has_pagesbooleanoptional
has_downloadsbooleanoptional
has_discussionsbooleanoptional
has_pull_requestsbooleanoptional
pull_request_creation_policystringoptional
The policy controlling who can create pull requests: all or collaborators_only.
archivedbooleanoptional
disabledbooleanoptional
visibilitystringoptional
pushed_atstringoptional
created_atstringoptional
updated_atstringoptional
permissionsobjectoptional
role_namestringoptional
temp_clone_tokenstringoptional
delete_branch_on_mergebooleanoptional
subscribers_countintegeroptional
network_countintegeroptional
code_of_conductobjectoptional
Code Of Conduct
licenseobjectoptional
forksintegeroptional
open_issuesintegeroptional
watchersintegeroptional
allow_forkingbooleanoptional
web_commit_signoff_requiredbooleanoptional
security_and_analysisobjectoptional
custom_propertiesobjectoptional
The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.
400Returned when the repository reference or a query parameter is invalid.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 400 is returned when the repository or one of the query values is invalid. sort must be one of newest, oldest, stargazers, or watchers; per_page accepts no more than 100 results and defaults to 30, while page defaults to 1.