# GitHub Repository Health & Intelligence

> GitHub Repository Health & Intelligence is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Fetches health and intelligence signals for a GitHub repository including stars, forks, issues, license, activity status, and computed metrics like days since last push and issues-per-star ratio.

## Facts

- Endpoint: GET https://api.agentstools.dev/dev/github?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/github-repository-health-intelligence-840170d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IX3yUP8of2s-geM6WZ4nb

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-health-intelligence-840170d4
```

Example prompt: Can you check the health and activity of the coinbase/x402 GitHub repo — I want to know if it's actively maintained, how many stars and open issues it has, what license it uses, and whether it looks like a healthy dependency to add to my project?

## When to prefer this

Use this endpoint when you need structured, computed health signals for a specific GitHub repository for due-diligence, dependency evaluation, or activity monitoring — it normalizes raw GitHub API data and adds computed metrics like days_since_push and issues_per_star that would otherwise require multiple API calls and manual computation.

## Known failure modes

- Repository not found (invalid owner/name slug) — 404 response
- Repository is private and not accessible — authentication error
- Rate limiting from upstream GitHub API — 429 or 503 response
- Malformed repo slug (missing slash separator) — validation error
- Payment not processed — 402 response if x402 credentials are missing or insufficient

## How this service works

GitHub repository health & intelligence for due-diligence / dependency choice: stars, forks, open issues, watchers, size, language, topics, license, archived/fork flags, and computed signals (days_since_push, age, issues_per_star, is_active). From the official GitHub REST API, normalized.

## Output

Returns normalized GitHub repository metadata including stars, forks, open issues, watchers, size, primary language, topics, license, archived/fork flags, plus computed signals: days_since_push, repository age in days, issues_per_star ratio, and an is_active boolean.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string",
       "description": "GitHub repository as 'owner/name', e.g. coinbase/x402"
      }
     }
    }
   },
   "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/github-repository-health-intelligence-840170d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
