How to list GitHub repository forks with stars and push dates
Get a paginated table of a GitHub repository's forks with owner, description, stars, language and last push
On this page
You are evaluating three open-source repositories before adopting one internally and need to see who has forked each project, up to 100 forks per repository. The deliverable is a table with one row per fork, sorted by stargazers, with owner, description, stars, language and last push, then a shortlist of active forks to contact or monitor
No run has been executed for this guide. The tables below are designs, and values here are placeholders showing the shape
The three-repository worksheet
Example repository URLs (invented; replace them with URLs you copy from a browser):
| Repository | URL |
|---|---|
| valve kit | first repository URL |
| flow meter | second repository URL |
| pipe schedule | third repository URL |
The agent fills a fork table with these columns. Values here are placeholders showing the shape
| fullName | owner | description | stars | language | pushedUtc | archived | url | review note |
|---|---|---|---|---|---|---|---|---|
| example-owner/example-fork | example-owner | (text or empty) | 0 | (language or empty) | 0 | false | canonical fork URL | shortlist, monitor or skip |
Input fields and one page
anyapi.github.repository_forks lists the forks of a GitHub repository by repository URL. Agents call it through POST /v1/runs with toolId anyapi.github.repository_forks. The contract names url as required, plus optional limit, page and sort
url takes a GitHub repository URL, for example the URL you copied from GitHub. limit defaults to 100 and accepts 1-100. page defaults to 1. sort defaults to newest and accepts newest, oldest, stargazers or watchers
For this task, set sort to stargazers, limit to 100 and page to 1 for each of the three repositories. One call returns one page. The output fields found and data tell you whether the repository was found and has forks, and data holds the page or null when not found. When found is false, reason can be not_found; the contract says a found: false answer is a successful call, not an error
Reading the fork rows
Within data, forks is the array of fork rows and hasMore says whether another page exists. Each row has fullName, owner, ownerType, description, stars, language, pushedUtc, archived, url and other fields in the contract
Use stars to rank the forks. Use pushedUtc to see the last push to any branch; it is a UTC epoch timestamp in seconds, so multiply by 1000 for a JS Date in milliseconds. A fork never pushed to keeps its parent's last push. Use archived to mark archived forks and keep them out of the shortlist. ownerType is User or Organization, which helps separate personal forks from organizational ones. fullName is the fork's owner/name form, and url is the canonical GitHub URL of the fork
The review note can be shortlist, monitor or skip. A fork with a recent pushedUtc and a useful description or language can go to shortlist. A fork with no recent push or archived: true can go to skip. The middle case goes to monitor. That note is your decision, not a field the tool returns
Paging through forks
Rows per page are limited to 1-100. Keep limit the same while walking pages because it sets the page size. This limit sits next to the page walk: if you change limit between calls, the page boundaries move. The tool cannot return more than 100 rows in one call
Start with page: 1. If hasMore is true, request page + 1 with the same limit. For the three-repository task, one page at limit: 100 covers up to 100 forks per repository. If a repository has more than 100 forks, note that hasMore is true and fetch another page only if your own task needs more rows
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list GitHub
repository forks for the three example repository URLs below. Check the
current inputs and price of anyapi.github.repository_forks before running
anything. For each repository, call the tool with sort stargazers, limit
100 and page 1. If hasMore is true, record that more pages exist in the
review note and do not fetch another page for this first pass. Return a
table with fullName, owner, description, stars, language, pushedUtc,
archived, url and review note. Set review note to shortlist, monitor or
skip from stars, pushedUtc and archived. Do not invent fork rows.
Example repository URLs (replace with your own):
first repository URL
second repository URL
third repository URLEstimated tool cost
The catalog lists anyapi.github.repository_forks at unit max_call, up to $0.0012 per call. The rule text says: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges. Model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single repository, first page | 1 call x max price | $0.0012 per call | 1 | $0.0012 |
| Three repositories, one page each | 3 calls x max price | $0.0012 per call | 3 | $0.0036 |
If a repository has more than 100 forks, each extra page is another call at the same max price. The planned first pass uses 3 calls for the three example repositories, at most $0.0036
Run the first page
Open GitHub repository forks to run the first page for one repository, then replace the example URL with the one you copied from GitHub
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with GitHub.FAQ
How do I list the forks of a GitHub repository?
Call the repository forks tool with the repository URL. The tool returns a page of forks with fields such as fullName, owner, description, stars, language, pushedUtc, archived and url.
What inputs does the repository forks tool take?
The contract names url as required, plus optional limit, page and sort. limit defaults to 100 and accepts 1-100, page defaults to 1, and sort defaults to newest with newest, oldest, stargazers or watchers.
How do I page through GitHub repository forks?
Start with page 1, then request page + 1 while hasMore is true. Keep limit the same while walking pages because it sets the page size, and the limit range is 1-100.
What does pushedUtc mean in the fork rows?
pushedUtc is a UTC epoch timestamp in seconds for the last push to any branch. Multiply by 1000 for a JS Date in milliseconds; a fork never pushed to keeps its parent's last push.
What happens when the repository is not found?
found is false and reason can indicate not found. The contract says a found: false answer is a successful call, not an error.
How much does it cost to list forks for three repositories?
At the maximum call price of up to $0.0012 per call, one page for each of three repositories is 3 calls and at most $0.0036. A single repository first page is 1 call and at most $0.0012.
Can I sort forks by stars?
Yes. Set sort to stargazers, or use newest, oldest or watchers. The default is newest.
Next step
Try this with GitHub
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.