---
title: "List a repository's public forks"
method: GET
path: "/github/repo/{owner}/{repo}/forks"
tags: ["GitHub"]
---

# List a repository's public forks

`GET /github/repo/{owner}/{repo}/forks`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/github/repo/{owner}/{repo}/forks`
- Auth: API key in header `x-api-key`

Lists the public forks of a GitHub repository, identified by the required `owner` and `repo`. Order with `sort` (`newest`, `oldest`, `stargazers` or `watchers`) and page with `page` and `per_page` (max 100). Each fork has its full name, owner, stars, language and creation time.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `sort` 'newest' | 'oldest' | 'stargazers' | 'watchers'
- `page` integer
- `per_page` integer

## Headers

- `x-api-key` string, required

## Response `200`

Wrapped fork list

- AppResponse: The Response struct is used for wrapping the API response with a code, message, and data.
  - `code` integer: Code is the HTTP status code or a custom code used to indicate the result of the request @example 200
  - `data` unknown
  - `msg` unknown

## Other responses

- `400`: Missing or invalid parameters
- `503`: Upstream error or rate limit

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/afac9b012a27?raw)
