Introducing the Instagram APIRead more →

GitHub Contributors API. Repository contributors, page by page.

Repository contributors with commit counts. We handle the proxies, blocks and platform changes.

In your agent: GitHub MCP server →

GitHub Contributors API at a glance

Returns the accounts that committed to a public GitHub repository, from its link or owner/name, a page at a time, the most active first. Each contributor comes with its commit count on the repository, username, permanent account ID, avatar, profile link, and whether it is a person or a bot.

GET /v1/github/repository_contributors

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 19 typed fields null when unknown
  • 100 repository contributors per page, most commits to the repository first
  • url is all it needs, e.g. https://github.com/cli/cli

Send one request. Get up to 100 repository contributors back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://github.com/cli/cli
GET /v1/github/repository_contributorsTry in
const params = new URLSearchParams({
  url: "https://github.com/cli/cli",
});
const res = await fetch(`https://socialtap.dev/v1/github/repository_contributors?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/github/repository_contributorsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 29 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field GitHub doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The repository whose contributors to list: its link (github.com/cli/cli, or any page under it: a file, a folder, its issues or releases), owner/name alone (cli/cli), a clone link (https://github.com/cli/cli.git, git@github.com:cli/cli.git), a file on raw.githubusercontent.com, or the API's link (api.github.com/repos/cli/cli, api.github.com/repositories/212613049, by the repository's ID).

  • Write one parser

    GitHub, TikTok, Instagram and 26 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native account ID (string; YouTube UC…, Reddit t2_…).
usernamestring
Handle without the @; null when the account has none.
display_namestring
Display name, channel title or page name; null when empty or not exposed.
urlstring
Canonical profile URL.
typestring
Coarse account kind, as the platform labels it; unknown when it does not (TikTok labels organizations only). New values may be added; treat unknown values as unknown.
biostring
Profile bio, channel description or page about text; null when empty or not exposed.
avatar_urlstring
Profile picture URL (largest available). Platform CDN URLs can expire within hours.

What teams build with the GitHub Contributors API.

  • Find the core maintainers of an open source project

  • Reach out to developers who work on a library

  • Measure how concentrated a project's work is

  • Tell human contributors from automation bots

Good to know before you build.

  • platform_specific.github.contribution_count is the commits GitHub credits the account with on the default branch; commits from email addresses linked to no account are left out.
  • On repositories with thousands of contributors, GitHub lists only the accounts behind the first few hundred author email addresses, so the walk ends before the long tail.
  • Each contributor carries what GitHub lists for it (username, ID, avatar and type); look a username up with the GitHub Profile API for its bio and counts.
  • When GitHub's API refuses or declines a very large repository, the list comes from its contributors graph: the top contributors with commit counts, without node IDs or staff flags, and a cursor stays with the source that issued it.
  • GitHub builds a large repository's contributors graph on demand, so the first request can fail with upstream_error while the same request a minute later gets the list.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit$0.75–$1.97
Public page page1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the GitHub Contributors API.

More in the API reference.

How much does the GitHub Contributors API cost?
A page of up to 100 repository contributors costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 276 endpoints
Start for free Read the docs