# AgentDiet JSON Repair & Web Distillation Endpoint

> AgentDiet JSON Repair & Web Distillation Endpoint is a paid API for AI agents from prompt-guard-72343955726.us-central1.run.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-14).

Fetches and distills web content or malformed JSON into clean, agent-ready markdown with high compression ratios, using AI-driven token reduction

## Facts

- Endpoint: GET https://prompt-guard-72343955726.us-central1.run.app/v1/json-repair?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-json-repair-web-distillation-endpoint-476d6c6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2UYGRCj3aP4Cdwpxv0C0E

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-json-repair-web-distillation-endpoint-476d6c6e
```

Example prompt: Can you fetch the docs at https://docs.example.com/api and distill them into clean compressed markdown — I want the token-efficient version so I can fit it in my context window?

## When to prefer this

Choose this endpoint when an agent needs to ingest verbose web content or documentation into a compressed, token-efficient markdown format, or when a pipeline has produced malformed JSON that needs repair before downstream processing. It is especially valuable when token budget is a constraint and you need quantified proof of compression (ROI metrics). Prefer it over generic scrapers when you want agent-optimized output rather than raw HTML.

## Known failure modes

- Invalid or unreachable URL returns error status
- Already-valid JSON passed to repair endpoint returns minimal diff or no-op
- Source page blocks crawling (403/robots.txt) causing empty content response
- Extremely short input yields near-zero compression ratio
- Rate limiting or payment failure (HTTP 402) if USDC balance is insufficient

## 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 distilled or repaired result with: cleaned markdown or fixed JSON content, the mode used (e.g. 'markdown'), a title, raw vs distilled token counts, compression ratio percentage, and an ROI multiplier showing how many tokens were saved relative to original input.

## 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-json-repair-web-distillation-endpoint-476d6c6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prompt-guard-72343955726.us-central1.run.app](https://www.zero.xyz/host/prompt-guard-72343955726.us-central1.run.app/llms.txt)
