How to list a GitHub user's public repositories
Get a GitHub user's public repositories with names, descriptions, languages, stars and forks, plus cursor pagination
On this page
You have 25 public repositories to review for one GitHub handle before a partnership call, and need a table of stars, forks, languages and last push dates so you can decide which projects to cite in outreach. The table is the deliverable. No run has been executed for this guide, so the table below is a design, not a result
Example input and review table design
The input is one handle and optional paging, sort and scope fields. A review of 25 repositories can use the same handle across pages. Agents call it through POST /v1/runs with toolId anyapi.github.user_repositories. The target table has one row per repository and these columns:
| name | fullName | description | language | stars | forks | pushedAt | updatedAt | archived | url |
|---|---|---|---|---|---|---|---|---|---|
| placeholder | placeholder | placeholder | placeholder | 0 | 0 | timestamp | timestamp | false | repository URL |
Values here are placeholders showing the shape. A 25-row review may need more than one page. Keep one row per repository and do not merge pages by hand until you have checked fullName
Input fields and sort choices
handle is required and comes from the GitHub profile username. cursor is optional and comes from data.nextCursor on a later page. sort is optional, defaults to updated, and accepts created, updated, pushed or full_name. direction is optional and accepts asc or desc. type is optional and defaults to owner; the contract also lists member as a value
For a partnership review, sort set to pushed with direction set to desc puts recently pushed repositories first. The default updated order is different from pushed order, so state which one you used in the review notes. The handle value is the only required input; the other fields change scope, order or paging
Paging through the result set
The cursor rule is the limit for this tool: omit cursor for the first page. When data.hasMore is true, pass data.nextCursor back as cursor to fetch the next page. data.nextCursor is null when the lane has no more. The cursor is opaque, so pass the value back unchanged
A first page is one call. A three-page scan is three calls. Stop when data.hasMore is false or when you have reached the page count your review needs. Do not estimate a repository count from a page; the contract does not give a page size
Reading output fields for a decision
The top level has found and data. When found is true, data.repos holds the rows and data.hasMore plus data.nextCursor drive paging. When found is false, reason is not_found; the contract says that is a successful call, not an error
For each repository, compare stars, forks, language, pushedAt and updatedAt, and check archived before citing it. Use description, name, fullName and url to identify the project in outreach. The fork field is also present, so a review can separate original work from a fork without changing the table columns. The remaining output fields are useful annotations, not table columns: owner, profileUrl, topics, license, openIssues, watchers, defaultBranch, createdUtc, homepage, size, id and avatarUrl. Pull one into the review notes only when it answers a specific question, such as which topic tag to mention. For repository-level metadata beyond this list, see inspect GitHub repository metadata
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list public repositories
for GitHub handle acme-dev. Check the current inputs and price of
anyapi.github.user_repositories before running anything. Call the tool with
handle acme-dev, sort pushed, direction desc. For the first page omit cursor.
If data.hasMore is true, pass data.nextCursor back as cursor and repeat until
hasMore is false or three pages have been fetched. Return a table with columns:
name, fullName, description, language, stars, forks, pushedAt, updatedAt,
archived, url. Do not invent repositories.Keep the first run to one page, then decide whether the 25-row review needs the three-page plan
Estimated tool cost
The catalog lists the unit as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings, not settled charges. Agent model fees are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| First page | calls x max price | $0.0012 per call | 1 | $0.0012 |
| Three-page scan | calls x max price | $0.0012 per call | 3 | $0.0036 |
The first page is at most $0.0012. The three-page scan is at most $0.0036. Both figures use the catalog price read on November 13, 2026
Next action
Open the tool page to run anyapi.github.user_repositories on the handle you need: GitHub user repositories
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 a GitHub user's public repositories?
Call anyapi.github.user_repositories with the username in handle. The result supplies repository name, fullName, description, language, stars, forks, pushedAt, updatedAt, archived and url, plus cursor fields for paging.
What inputs does anyapi.github.user_repositories take?
handle is required. cursor is optional and comes from data.nextCursor; sort defaults to updated and accepts created, updated, pushed or full_name; direction accepts asc or desc; type defaults to owner.
How does cursor pagination work?
Omit cursor for the first page and pass data.nextCursor back as cursor to continue. data.hasMore says whether another page remains, and nextCursor is null when the lane has no more.
What does found false mean?
found: false with reason of not_found means the source states the target does not exist or returned nothing for it. It is a successful call, not an error.
How much does it cost to scan three pages?
At the catalog price of up to $0.0012 per call, three calls cost at most $0.0036. The first page costs at most $0.0012. Agent model fees are not counted.
What fields should I compare before outreach?
Compare stars, forks, language, pushedAt and updatedAt, and check archived before citing a repository. The description, name, fullName and url fields identify it.
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.