Developer tools5 min readBy Purrkey teamUpdated

How to see who commits most to a GitHub repository

Get a ranked table of a GitHub repository's contributors with logins, profile URLs, account types and commit counts

On this page

You are vetting an open-source dependency and need the first 20 accounts by commit count for one candidate repository, with their logins, profile URLs, account types and commit totals, before you decide who to contact and who to monitor. One call to anyapi.github.repository_contributors returns that page, ordered most commits first. The table below is the deliverable, and no run has been executed for this guide, so the values are a design rather than a result

Example input and the table design

The input is a repository URL plus a page size. Example input, invented for this guide:

FieldValue
urlhttps://github.com/vercel/next.js
limit20
page1

Swap in the repository you are vetting

The agent fills this table, one row per contributor. Values here are placeholders showing the shape:

loginurlcontributionstypesiteAdmincommit share
(login)(profile URL)(integer)User, Bot or Organizationtrue or false(contributions divided by the retrieved total)

Commit share is derived, not returned. contributions counts commits to the repository's default branch, and the contract carries no repository-wide commit total, so compute the share against the sum of the rows you pulled. Label it share of retrieved commits

Request the page and walk further if needed

url is the required field, and it takes the repository you are vetting. The contract also lists limit (1 to 100, default 100) and page (1-based, default 1). For 20 contributors, ask for limit: 20 and page: 1

The cap sits on this step: limit cannot exceed 100 rows per page, and because it sets the page size, hold it steady while you walk. Request page + 1 only while data.hasMore is true. A first call at limit 20 followed by a call at limit 50 does not continue where the first stopped, because the window shifts

A repository that does not exist comes back as found: false with reason: not_found, which the contract calls a successful call rather than an error, and it says costUsd is what it actually cost. Log the candidate as empty and move to the next one

Read the fields that drive the decision

found tells you whether the repository was found and has contributors. When it is false, reason carries the single value not_found

Inside data, contributors is the page of rows ordered most commits first, and hasMore says whether another page exists. Each row carries:

  • login: the GitHub login, your key for de-duplication and for the contact list
  • url: the profile URL to open when you want to check an account by hand
  • contributions: the commit count on the default branch, and the sort key for the ranking
  • type: User, Bot or Organization, so Bot rows can be filtered out of the contact list
  • siteAdmin: whether the account is a GitHub staff administrator, kept as a flag
  • id and avatarUrl: stable values for joining rows across pages

A plain reading of the table: contact the top rows whose type is User, monitor accounts with a high commit share but low recency of contact, and treat a found: false candidate as an empty result rather than a failed job

Hmm, "recency of contact", the tool returns no dates. Remove that. Rewrite:

A plain reading of the table: the top rows by contributions are the accounts to contact, Bot rows stay out of that list, and a candidate that returns found: false is an empty result rather than a failed job

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to rank the
contributors of one GitHub repository by commit count. Check the current
inputs and price of anyapi.github.repository_contributors before running
anything. Call it with url https://github.com/vercel/next.js, limit 20
and page 1. If data.hasMore is true and you need more rows, request
page 2 with the same limit. Return a table with login, url,
contributions, type, siteAdmin and commit share, where commit share is
contributions divided by the sum of contributions across the returned
rows. Keep type in the table so Bot rows can be filtered out of the
contact list. When found is false, report reason instead of rows.

Replace the example URL with your candidate repository before the run

Estimated tool cost

The catalog price is up to $0.0012 per call, called through POST /v1/runs with toolId anyapi.github.repository_contributors, unit max_call, read through the Purrkey catalog on November 13, 2026. The catalog explains the unit as "Maximum per call. Successful runs settle at the actual AnyAPI charge", so the totals below are ceilings. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
One page, up to 100 contributors1 call x max price$0.0012 per call1 call$0.0012
Three pages, 250 contributors3 calls x max price$0.0012 per call3 calls$0.0036

The 20-row first pass is the single call in the first row, at most $0.0012. A found: false answer is still a call and still settles at the actual charge

Pull the first page for one candidate

Run 20 rows for a single repository before you write to any contributor. The tool page is at repository_contributors, where you can check the current price and inputs. If you also need the repository's own metadata, the companion guide covers it: https://purrkey.app/blog/inspect-github-repository-metadata

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.
Explore GitHub tools and pricing

FAQ

How do I see who has the most commits in a GitHub repository?

Run the repository URL through anyapi.github.repository_contributors. It returns the contributor list ordered by number of commits, with each contributor's login, profile URL and commit count.

What inputs does anyapi.github.repository_contributors take?

url is required and takes a github.com owner and repository name. limit sets rows per page from 1 to 100 with a default of 100, and page is 1-based with a default of 1.

What do the fields found, hasMore and contributions mean?

found says whether the repository was found and has contributors. data.hasMore is true when another page exists, and contributions is the number of commits to the repository's default branch.

How many contributors can one call return?

limit caps at 100 rows per page. Keep the same limit while you walk pages and request page + 1 while data.hasMore is true, because the limit sets the page size.

What does a found false result with reason not_found mean?

It means the repository was not found or returned nothing. The contract calls that a successful call rather than an error, and says costUsd is what it actually cost.

How much does it cost to rank 250 contributors?

Three pages means three calls at up to $0.0012 each, at most $0.0036. Prices are ceilings and successful runs settle at the actual AnyAPI charge. Agent model fees are not counted.

How is commit share calculated?

The contract returns no repository-wide commit total, so commit share has to be computed against the sum of the rows you retrieved. Treat it as share of retrieved commits.

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.

See GitHub tools

Share this article