# Strale GitHub Repository Comparator

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

Compares two GitHub repositories side-by-side, returning structured metrics and differences with a cryptographic audit trail.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/github-repo-compare
- Price: $0.054/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-github-repository-comparator-9f87beff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oe3n2BusI09-9EO1_EihJ

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 strale-github-repository-comparator-9f87beff
```

Example prompt: Can you compare the GitHub repos facebook/react and vuejs/vue — I want to see how they stack up in terms of stars, forks, contributors, and overall activity?

## When to prefer this

Choose this endpoint when you need a structured, auditable, side-by-side comparison of two GitHub repositories in a single call — especially in agentic or compliance contexts where cryptographic audit trails are required. Prefer it over manual GitHub API calls when you want normalized metrics without managing GitHub authentication, pagination, or aggregation yourself.

## Known failure modes

- Invalid or non-existent repo slug (owner/repo not found on GitHub) returns a 404-style error
- Private repositories return access-denied errors since the underlying GitHub API requires auth
- Rate limiting on the underlying GitHub data source may return a 429 or timeout
- Malformed repo_a or repo_b parameter format returns a schema validation error
- GitHub API downtime or connectivity issues may cause service unavailability

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

Returns a structured JSON object with side-by-side metrics for both repositories — including stars, forks, open issues, watchers, primary language, contributor count, recent commit activity, license, and creation/update dates — along with a cryptographic audit record containing a chain hash for tamper-evidence.

## 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/strale-github-repository-comparator-9f87beff/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)
