Developer tools5 min readBy Purrkey teamUpdated

How to list GitHub repository contributors by commits

Build a ranked table of a GitHub repository's contributors with commit counts and profile URLs before choosing maintainer outreach targets

On this page

You need a ranked table of the top 20 contributors to a GitHub repository before choosing maintainer outreach targets. The GitHub repository contributors tool returns contributors ordered by number of commits, and one page with limit 20 gives you the rows to compare

The table below is the deliverable design: one row per contributor, with commit count, profile URL, account type, staff flag, avatar URL and your review priority. No run has been executed for this guide, so values are placeholders showing the shape

Example input and table design

Example input, to be replaced with your repository:

FieldValue
url(your repository URL)
limit20
page1

The deliverable table uses these columns from the output plus one decision column:

logincontributionsurltypesiteAdminavatarUrlreview priority
(login)(commit count)(profile URL)User, Bot or Organizationtrue or false(avatar URL)high, medium or skip

Values here are placeholders showing the shape. Fill review priority after you read the output fields; the tool does not return a priority column. Set high for rows you want to review first, medium for a second pass, and skip for rows outside the outreach plan. The priority column is your annotation, not a returned field

Input fields and paging

The input fields this guide uses are url, limit and page. url is required and is the GitHub repository URL, copied from the repository page. limit is rows per page from 1 to 100 and defaults to 100. page is a 1-based page of contributors and defaults to 1

For the top 20 request, send limit 20 and page 1. The limit sets the page size, so keep it the same while walking pages; if hasMore is true, request page plus 1. A one-page request for the top 20 does not need a paging loop. Keep limit at 20 for the first request so the page has at most 20 rows

How to read the output fields

found tells you whether the repository was found and has contributors. If found is false, reason is not_found; the contract says that answer is a successful call, not an error

When found is true, contributors in data holds the page of contributors with a GitHub account, most commits first. Each row has login, contributions, url, type, siteAdmin and avatarUrl. contributions is the number of commits to the repository's default branch. login is the GitHub login, url is the GitHub profile URL, and avatarUrl is the avatar image URL. type is User, Bot or Organization. siteAdmin is whether the account is a GitHub staff administrator

Use those fields to set review priority. The page is already ordered by number of commits, most commits first, so you do not need to sort before selecting the top 20. A high commit count at the top of the page makes a contributor a candidate for maintainer review. type separates user accounts from bots and organizations, and siteAdmin is a flag to note before outreach. url gives you the profile to check, and avatarUrl helps you identify the row in the table. A row with type Bot or Organization can sit in the table for context, but set review priority with the outreach target in mind. hasMore is true when another page exists; request page plus 1 to continue

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list contributors
for one GitHub repository. Check the current inputs and price of
anyapi.github.repository_contributors before running anything. Call the
tool once with url (your repository URL), limit 20 and page 1.
Return a table with login, contributions, url, type, siteAdmin, avatarUrl
and review priority. If found is false, return the reason and leave the
contributor rows empty. Do not guess contributor names or commit counts.

Replace the example URL with your repository. Keep limit at 20 for the first page, and do not change it if you later walk pages

Estimated tool cost

The tool runs through POST /v1/runs with toolId anyapi.github.repository_contributors. Tool path: anyapi.github.repository_contributors

Price from the Purrkey catalog, read November 12, 2026. The totals below are ceilings

StepFormulaUnit pricePlanned quantityTotal
Single page1 call x max priceup to $0.0012 per call1 call$0.0012
Ten pages10 calls x max priceup to $0.0012 per call10 calls$0.012

The single-page plan covers the top 20 request with limit 20. The ten-page plan covers a walk of ten pages with the same limit. Agent model fees are not counted

Next action

Open the GitHub repository contributors tool to check the current input schema and price, then run the first page with limit 20

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 list GitHub repository contributors by commits?

Call anyapi.github.repository_contributors with the repository url and limit 20 on page 1. The output returns contributors ordered by number of commits, with each login, profile URL and commit count.

What inputs does anyapi.github.repository_contributors take?

The input fields used here are url, limit and page. url is required, limit is rows per page from 1 to 100 with a default of 100, and page is 1-based with a default of 1.

What does the contributions field mean?

contributions is the number of commits to the repository's default branch. The contributors are ordered most commits first.

What happens when found is false?

found false comes with reason set to not_found. The contract says that answer is a successful call, not an error.

How many calls does it take to get the top 20 contributors?

One call with limit 20 and page 1 returns one page of up to 20 rows. If hasMore is true, another page exists and you request page plus 1.

How much does it cost to list contributors for one page?

One page is at most $0.0012 for one call, and ten pages are at most $0.012 for ten calls. The catalog lists the unit as max_call, so these totals are ceilings.

What does hasMore mean?

hasMore is true when another page of contributors exists. Request page plus 1 to continue.

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