# payload402 GitHub Repository Stats

> payload402 GitHub Repository Stats is a paid API for AI agents from payload402.edgebytenet.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-29).

Returns public GitHub repository metadata including stars, forks, open issues, last push date, and SPDX license for a given repo.

## Facts

- Endpoint: GET https://payload402.edgebytenet.workers.dev/github/repo?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payload402-github-repository-stats-871afbd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uWhtiXU_xM7VCdkfED5bD

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 payload402-github-repository-stats-871afbd5
```

Example prompt: Can you pull up the GitHub stats for lodash/lodash — I want to see the star count, number of open issues, forks, license, and when it was last pushed?

## When to prefer this

Use this endpoint when an AI agent needs quick, structured OSS health signals — stars, forks, open issues, license, and recency — for a known GitHub repository, especially during dependency evaluation or fork assessment workflows. Prefer this over scraping GitHub pages or calling the GitHub API directly when you need a pay-per-call, zero-credential approach.

## Known failure modes

- Repo not found (invalid owner/name) — returns error or empty response
- Rate limiting from GitHub REST API if called without an auth token
- Private repositories are not accessible — only public repos are supported
- Malformed repo slug (missing owner) may cause a bad request error

## How this service works

GitHub public repository stats: stars, forks, open issues, last push, SPDX license field. For agents evaluating OSS dependencies or forks.

## Output

Returns a JSON object with the repository's full name, owner, description, star count, fork count, open issue count, SPDX license string, default branch, last push timestamp, and the data source identifier.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "repo": {
       "type": "string",
       "description": "owner/name or repo slug with owner param"
      },
      "owner": {
       "type": "string",
       "description": "GitHub owner when repo is name only"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Public repo metadata only; rate limits apply without token",
  "repo": "lodash",
  "forks": 7000,
  "owner": "lodash",
  "stars": 60000,
  "source": "github-rest",
  "license": "MIT",
  "fullName": "lodash/lodash",
  "pushedAt": "2024-01-01T00:00:00Z",
  "openIssues": 100,
  "description": "A modern JavaScript utility library",
  "defaultBranch": "main"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payload402-github-repository-stats-871afbd5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payload402.edgebytenet.workers.dev](https://www.zero.xyz/host/payload402.edgebytenet.workers.dev/llms.txt)
