# GitHub Repository Contributors Ranking

> GitHub Repository Contributors Ranking is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Returns the top contributors to a GitHub repository ranked by commit count, including login, contribution count, account type, and profile URL.

## Facts

- Endpoint: GET https://2s.io/api/github/contributors
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repository-contributors-ranking-7c8f7f30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gHnUlusYghYyhRS_So2Gq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability github-repository-contributors-ranking-7c8f7f30
```

Example prompt: Who are the top contributors to the facebook/react GitHub repository? Show me the first page of 25 contributors ranked by commit count.

## When to prefer this

Use this endpoint when you need a quick, no-auth ranked list of top GitHub contributors for any public repository, especially in agent workflows where you want to identify core maintainers, assess project health, or understand who drives a codebase — without needing to set up GitHub API credentials.

## Known failure modes

- Repository not found — invalid owner or repo name returns an error
- Rate limiting if the underlying GitHub API is throttled
- Empty result if the repository has no contributors or is brand new
- Invalid pagination parameters (page < 1 or perPage > 100) rejected by schema validation
- Private repository may return no data without appropriate access

## How this service works

Top contributors to a repository, ranked by commit count: login, contributions, account type, and profile URL. Read-only; no caller key needed.

## Output

A ranked list of GitHub contributors for the specified repository, each entry containing the contributor's login username, total number of commits/contributions, account type (User or Bot), and a URL to their GitHub profile.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "owner",
      "repo"
     ],
     "properties": {
      "page": {
       "type": "integer",
       "minimum": 1
      },
      "repo": {
       "type": "string",
       "maxLength": 120,
       "minLength": 1
      },
      "owner": {
       "type": "string",
       "maxLength": 100,
       "minLength": 1
      },
      "perPage": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/github-repository-contributors-ranking-7c8f7f30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
