# agent402.tools GitHub Repository Enrichment

> agent402.tools GitHub Repository Enrichment is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Fetches comprehensive metadata for a public GitHub repository including stars, forks, watchers, issues, license, topics, languages, and timestamps

## Facts

- Endpoint: POST https://agent402.tools/api/github-repo
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-github-repository-enrichment-573c54cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WWmAe44ou9V6m5uXrmccU

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 agent402-tools-github-repository-enrichment-573c54cc -d '<json body>'
```

Example prompt: Can you pull up the full stats for the facebook/react GitHub repo — stars, forks, license, language breakdown, topics, and when it was last pushed?

## When to prefer this

Use this endpoint when you need comprehensive GitHub repository metadata in a single keyless call without managing a GitHub API token. Ideal for enriching repo records, comparing open-source projects, auditing licensing, or quickly surfacing activity signals like last push date and star count. Prefer this over direct GitHub API calls when you want to avoid token management overhead and pay per-use via x402.

## Known failure modes

- Repository not found (owner or repo name misspelled) — returns 404-style error
- Private repository — not accessible without authentication, returns error
- Rate limit or upstream GitHub API error — returns 5xx or rate-limit error
- Missing required fields (owner or repo not provided) — returns validation error

## How this service works

Enrich a public GitHub repository: stars, forks, watchers, open issues, license, topics, primary language plus the full language byte mix with percentages, created/last-push timestamps, default branch, archived/fork flags, and homepage. Keyless (shared per-IP rate limit; the server optionally uses a GITHUB_TOKEN env var for a higher ceiling). Unknown repos return 404.

## Output

Returns a rich metadata object for the specified GitHub repository including star count, fork count, watcher count, open issue count, license identifier, topic tags, primary programming language, full language breakdown with byte counts and percentages, repository creation timestamp, last-push timestamp, default branch name, whether the repo is archived, whether it is itself a fork, and any configured homepage URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "repo": {
   "type": "string",
   "description": "Repository name."
  },
  "owner": {
   "type": "string",
   "description": "Repository owner (user or org)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://github.com/MikeyPetrillo/Agent402",
  "fork": false,
  "forks": 3,
  "stars": 12,
  "source": "api.github.com",
  "topics": [
   "x402",
   "mcp"
  ],
  "license": "MIT",
  "archived": false,
  "fullName": "MikeyPetrillo/Agent402",
  "homepage": "https://agent402.tools",
  "language": "JavaScript",
  "pushedAt": "2026-07-12T20:11:04Z",
  "watchers": 12,
  "createdAt": "2026-05-28T01:02:03Z",
  "languages": [
   {
    "bytes": 1000000,
    "percent": 98.2,
    "language": "JavaScript"
   }
  ],
  "openIssues": 4,
  "description": "Open-source x402 + MCP tool server",
  "defaultBranch": "main"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-github-repository-enrichment-573c54cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
