# X402-Broker GitHub Repository Audit

> X402-Broker GitHub Repository Audit is a paid API for AI agents from x402broker.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

Audits a GitHub repository and returns a structured quality/ROI proof with compression ratio metrics

## Facts

- Endpoint: GET https://x402broker.com/v1/repo-audit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-broker-github-repository-audit-2346d5cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5t-oRN_ApWWloo2E6feoU

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 x402-broker-github-repository-audit-2346d5cb
```

Example prompt: Can you audit the GitHub repo at github.com/openai/openai-python and give me a quality score and ROI proof for it?

## When to prefer this

Use this endpoint when you need a quick, structured audit of a GitHub repository with a quantified ROI proof and compression ratio — particularly when evaluating repos for agent integration, marketplace listing, or codebase quality benchmarking. Prefer this over generic code analysis tools when you specifically need the token-diet compression metric and a machine-readable quality signal compatible with the x402 ecosystem.

## Known failure modes

- Missing or invalid `repo` query parameter returns an error or empty data
- Private repositories without access credentials may return no results
- Malformed URL in `repo` param may cause a failed audit
- Rate limiting or payment failure on the $0.01 USDC x402 payment may block the request
- Non-existent repository URL returns empty or error status

## How this service works

Universal B2A/A2A/MCP Meta-Router & Autonomous Tool Marketplace indexing 7,340+ live capabilities across x402 v2 (5-chain EVM USDC), IETF MPP, and L402 with TDQS quality scoring and zero-fee pass-through execution.

## Output

Returns a JSON object with a `data` field containing audit findings, a `status` field ('ok' on success), and an `roi_proof` object including a `compression_ratio_pct` metric (e.g. 91.4%) indicating how efficiently the repository content can be summarized or processed.

## 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",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "repo": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-broker-github-repository-audit-2346d5cb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402broker.com](https://www.zero.xyz/host/x402broker.com/llms.txt)
