# AgentDiet GitHub Audit via x402

> AgentDiet GitHub Audit via x402 is a paid API for AI agents from github-audit-72343955726.us-central1.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-14).

Performs a GitHub repository audit and returns distilled, agent-ready markdown intelligence via HTTP 402 micropayment (x402/Base USDC)

## Facts

- Endpoint: GET https://github-audit-72343955726.us-central1.run.app/v1/x402-audit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-github-audit-via-x402-84b5fb83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ypRTE3HmFhLX7XVaglHhd

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-via-x402-84b5fb83
```

Example prompt: Can you audit the GitHub repo at github.com/openai/openai-python and give me a clean distilled summary of its code quality, activity, and any red flags — I want the markdown version optimized for token efficiency.

## When to prefer this

Choose this endpoint when you need a highly compressed, agent-optimized GitHub repository audit returned as clean markdown, especially when token budget is a concern. It is ideal for agentic workflows that need to ingest repo intelligence without burning large context windows, and supports native x402 micropayment so no API key setup is required — just pay per call in Base USDC.

## Known failure modes

- Payment not received or insufficient USDC balance — HTTP 402 returned without data
- Invalid or inaccessible GitHub repository URL — error in response body
- Repository is private and credentials not provided — access denied error
- Rate limiting or quota exhaustion on upstream GitHub API — service temporarily unavailable
- Malformed request parameters — 400-level error with validation message

## 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 distilled markdown document (title + content), status indicator, and an ROI proof block showing raw vs. distilled token counts, compression ratio percentage, and ROI multiplier — designed for token-efficient agent consumption.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "mode": "markdown",
   "title": "Example Documentation",
   "content": "# Example Documentation\nClean agent-ready markdown..."
  },
  "status": "ok",
  "roi_proof": {
   "raw_tokens": 14200,
   "tokens_saved": 13520,
   "roi_multiplier": 67.6,
   "distilled_tokens": 680,
   "compression_ratio_pct": 95.2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-github-audit-via-x402-84b5fb83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from github-audit-72343955726.us-central1.run.app](https://www.zero.xyz/host/github-audit-72343955726.us-central1.run.app/llms.txt)
