# AgentDiet HTML-to-Markdown Converter

> AgentDiet HTML-to-Markdown Converter 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 web page by URL and converts its HTML content to clean, compressed Markdown, achieving up to 91%+ token compression for LLM context windows.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/html-to-markdown?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-html-to-markdown-converter-0f761169
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9iKgeJ_k8-39IysKF-qgs

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-html-to-markdown-converter-0f761169
```

Example prompt: Fetch https://en.wikipedia.org/wiki/Artificial_intelligence and convert it to clean Markdown so I can drop it into my prompt without wasting a ton of tokens.

## When to prefer this

Choose this endpoint when an AI agent needs to ingest web page content but must minimize token usage — especially useful in tight context windows or high-frequency pipelines where raw HTML is prohibitively large. It is purpose-built for A2A and MCP workflows and pays per-call in USDC via x402, making it suitable for autonomous agent billing without API key management.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — endpoint may return an error status
- Malformed or missing `url` query parameter — results in a bad request error
- Target page is JavaScript-rendered and content cannot be fetched statically
- Very large pages may timeout or return partial content
- Payment not settled — x402 payment required before content is returned

## 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 containing the converted Markdown content under `data`, a status field set to 'ok', and an `roi_proof` object with a `compression_ratio_pct` field showing the percentage of tokens saved (e.g. 91.4% compression).

## 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-html-to-markdown-converter-0f761169/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)
