# GitHub Repository Comparison

> GitHub Repository Comparison is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-09-13).

Compares two GitHub repositories side-by-side across stars, forks, activity, language, topics, and license.

## Facts

- Endpoint: GET https://api.strale.io/x402/github-repo-compare
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-5e532ffa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NEOTFN_56v33Q5w7USVnx

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 api-strale-io-5e532ffa
```

Example prompt: Can you compare the GitHub repos facebook/react and vuejs/vue side by side — show me their stars, forks, activity, language, and license?

## When to prefer this

Use this endpoint when you need a structured, side-by-side comparison of two GitHub repositories in a single call, especially when you want to evaluate popularity, activity health, language, topics, and licensing at once without making multiple separate GitHub API calls. Ideal for agents helping users choose between two open source libraries or tools.

## Known failure modes

- Invalid repo format (not 'owner/repo') — returns 400 bad request
- Repository does not exist or is private — returns 404 not found
- GitHub API rate limiting downstream — may return 429 or 503
- Missing required query parameters repo_a or repo_b — returns 400 validation error
- Payment not provided or insufficient — returns 402 payment required

## How this service works

Compare two GitHub repositories side-by-side: stars, forks, activity, language, topics, license. Returns detailed comparison.

## Output

Returns a detailed structured comparison of the two repositories including star counts, fork counts, recent activity, primary programming language, topics, and license information for each repo.

## Example request

```json
{
 "repo_a": "facebook/react",
 "repo_b": "vuejs/vue"
}
```

## 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_a",
      "repo_b"
     ],
     "properties": {
      "repo_a": {
       "type": "string",
       "description": "owner/repo"
      },
      "repo_b": {
       "type": "string",
       "description": "owner/repo"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-5e532ffa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
