# x402 Webpage-to-Markdown API

> x402 Webpage-to-Markdown API is a paid API for AI agents from x402-md.lagoontechsystems.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-18).

Converts any webpage URL to clean, LLM-ready Markdown via a pay-per-call USDC micropayment on Base using the x402 protocol

## Facts

- Endpoint: POST https://x402-md.lagoontechsystems.com/api/extract?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-webpage-to-markdown-api-f4457517
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P5SvoxOCLdj89MU0RG7si

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 x402-webpage-to-markdown-api-f4457517 -d '<json body>'
```

Example prompt: Can you fetch the webpage at https://www.paulgraham.com/avg.html and convert it to clean markdown so I can feed it into my language model?

## When to prefer this

Use this endpoint when you need to convert a live webpage into clean, structured Markdown for ingestion by an LLM or AI agent, especially in no-signup, no-API-key contexts where micropayment via x402/USDC on Base is acceptable. Prefer this over general-purpose scraping APIs when LLM-readability of the output is the primary concern and you want a simple pay-per-call model.

## Known failure modes

- Invalid or unreachable URL returns success:false with an error message
- Non-HTTP/HTTPS URLs may be rejected
- Pages behind authentication or paywalls may return incomplete or empty markdown
- Payment failure via x402 protocol results in 402 Payment Required response
- Timeout on slow-loading pages may result in partial or empty content
- Very large pages may produce truncated markdown output

## How this service works

Convert any webpage URL to clean, LLM-ready Markdown. Pay-per-call in USDC on Base via the x402 protocol — no API keys, no signup.

## Output

A JSON object containing the original URL, a success boolean, the full page content as clean Markdown text, and the content length in characters

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "The webpage URL (http or https) to convert to Markdown."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "success": true,
  "markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
  "content_length": 230
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-webpage-to-markdown-api-f4457517/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-md.lagoontechsystems.com](https://www.zero.xyz/host/x402-md.lagoontechsystems.com/llms.txt)
