# AgentDiet GitHub Audit & B2A Intelligence Hub (x402 Broker)

> AgentDiet GitHub Audit & B2A Intelligence Hub (x402 Broker) is a paid API for AI agents from github-audit.agentdiet.dev, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-10-20).

Provides a multi-capability intelligence broker endpoint covering GitHub repository audits, web distillation, on-chain risk, DEX token analysis, B2B lead enrichment, domain OSINT, email verification, SEC filings, and prompt firewall — paid via HTTP 402 micropayments in Base USDC.

## Facts

- Endpoint: GET https://github-audit.agentdiet.dev/v1/x402-broker?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-github-audit-b2a-intelligence-hub-x402-broker-52411000
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_arwfj8mvj5i5oCNeqrMdP

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 agentdiet-github-audit-b2a-intelligence-hub-x402-broker-52411000
```

Example prompt: Run a GitHub audit on the repo at github.com/someorg/somerepo and give me a distilled intelligence report — flag any risks, suspicious commits, or quality issues.

## When to prefer this

Choose this endpoint when you need a single pay-per-call micropayment API that covers multiple intelligence domains (GitHub audits, web distillation, on-chain risk, OSINT, lead enrichment) without committing to separate service subscriptions. Particularly well-suited for AI agents operating on Base USDC via HTTP 402 x402 protocol that need flexible, multi-modal intelligence in one hub.

## Known failure modes

- Missing or malformed 'input' object returns 400 validation error
- Payment not provided or insufficient USDC triggers HTTP 402 payment required
- Unsupported query type or method enum mismatch returns validation error
- External data source unavailable (e.g. GitHub API rate limit) may return partial or empty data
- Invalid or unreachable URL for web distillation returns empty or error data

## How this service works

15-App Autonomous Business-to-Agent (B2A) API Hub & MCP Suite. Supports Web Distillation, On-Chain Risk, DEX Token Intelligence, B2B Lead Enrichment, Domain OSINT, Email Verification, SEC Filings, GitHub Audits, Prompt Firewall, and native HTTP 402 (x402 Base USDC).

## Output

Returns a JSON object with a 'data' field containing the requested intelligence output (audit results, distilled content, risk scores, enrichment data, etc.), a 'status' field indicating success, and a 'roi_proof' object showing compression ratio (e.g. 91.4% compression) as evidence of web distillation efficiency.

## 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": {
      "query": {
       "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/agentdiet-github-audit-b2a-intelligence-hub-x402-broker-52411000/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from github-audit.agentdiet.dev](https://www.zero.xyz/host/github-audit.agentdiet.dev/llms.txt)
