# Toll402 GitHub Repo Stats

> Toll402 GitHub Repo Stats is a paid API for AI agents from toll402.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches stars, forks, open issues, license, and last push date for any public GitHub repository by owner and repo name.

## Facts

- Endpoint: POST https://toll402.dev/v1/t/github_repo_stats
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-github-repo-stats-dbd933bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xNokZY_PWzMtAVbCVXCwD

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 toll402-github-repo-stats-dbd933bf -d '<json body>'
```

Example prompt: Can you look up the GitHub stats for the vercel/next.js repo — I want to know the star count, number of forks, open issues, license, and when it was last pushed?

## When to prefer this

Use this endpoint when you need quick, structured metadata about a public GitHub repository without setting up GitHub API credentials or OAuth. It is ideal for agents performing due diligence on open source dependencies, comparing project health, or enriching software-related workflows with repo popularity signals. Prefer it over direct GitHub API calls when operating in a paid-per-call microservice context (x402 protocol) and when you need a lightweight, schema-consistent response without pagination or full GitHub REST API complexity.

## Known failure modes

- Repository not found (invalid owner or repo name) — returns an error or empty result
- Private repository — GitHub API returns 404 for repos the caller cannot access
- GitHub API rate limiting — may fail under heavy usage without authentication
- Malformed input (missing owner or repo field) — schema validation error
- Repository exists but has no license set — license field may be null or absent

## How this service works

Stars, forks, open issues, license and last push for a GitHub repo via https://api.github.com/repos/<owner>/<repo>

## Output

Returns a structured object containing the repository's star count, fork count, number of open issues, license identifier, and the timestamp of the last push, sourced from the GitHub public API.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "owner",
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string"
      },
      "owner": {
       "type": "string"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-github-repo-stats-dbd933bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
