# AgentDiet SPA Markdown Reader

> AgentDiet SPA Markdown Reader is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Fetches a URL and returns its content as compressed, token-efficient markdown, stripping bloat to reduce context window usage by up to 91%.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/spa-markdown-reader?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-spa-markdown-reader-c63b4db6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QUf9ExytkNiBk1OvLLkdJ

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-spa-markdown-reader-c63b4db6
```

Example prompt: Fetch the content at https://example.com/docs/getting-started and return it as clean, compressed markdown — I want to minimize tokens used in my context window.

## When to prefer this

Choose this endpoint when an AI agent needs to read web content but must minimize token consumption — especially when fetching pages into a context window repeatedly or at scale. It is preferable to raw HTML fetchers when the agent only needs readable text content, and to general scrapers when the primary concern is token efficiency and cost. Best suited for documentation pages, blog posts, and SPAs where clean markdown output is sufficient.

## Known failure modes

- URL is unreachable or returns non-200 status — endpoint may return error status
- Single-page applications requiring JavaScript execution may not render fully
- Very large pages may hit size or timeout limits
- Invalid or missing `url` query parameter causes bad request
- Paywalled or login-gated pages may return empty or partial content

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a `data` field containing the page content as markdown, a `status` field ('ok'), and an `roi_proof` object showing the compression ratio achieved (e.g. 91.4% compression_ratio_pct).

## 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": {
      "url": {
       "type": "string"
      },
      "mode": {
       "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-spa-markdown-reader-c63b4db6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
