# URL to Markdown Converter (x402 pay-per-call)

> URL to Markdown Converter (x402 pay-per-call) is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Fetches a web page by URL and returns its content as clean Markdown text, paid per-call in USDC via x402 on Base.

## Facts

- Endpoint: POST https://x402-micro-pay.com/api/skills/url-to-markdown?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-to-markdown-converter-x402-pay-per-call-746a2efd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qJYjL5tWZ4BO7CpDYV8s3

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 url-to-markdown-converter-x402-pay-per-call-746a2efd -d '<json body>'
```

Example prompt: Can you fetch the content of https://en.wikipedia.org/wiki/Markdown and give it to me as clean markdown text?

## When to prefer this

Choose this endpoint when your agent needs to read web page content as structured Markdown without setting up an API key or account — ideal for zero-friction, pay-as-you-go access in agentic workflows. Prefer this over free scrapers when reliability and clean Markdown output matter, and over heavier scraping APIs when cost per call needs to be minimal ($0.003). Best for single-URL, on-demand content extraction rather than bulk crawling.

## Known failure modes

- Invalid or malformed URL returns validation error
- Unpaid request returns HTTP 402 requiring USDC payment on Base before retry
- Paywalled or login-required pages may return empty or partial markdown
- Very large pages may be truncated (truncated: true in response)
- Non-HTML resources (PDFs, images) may yield poor or empty markdown
- Unreachable or offline URLs result in fetch failure

## How this service works

41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.

## Output

A JSON object with ok (boolean), the original URL, final_url (after redirects), title (page title), markdown (full page content as Markdown), bytes (content size), skill name, and a truncated flag indicating if the content was cut off.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^[Hh][Tt][Tt][Pp][Ss]?://",
   "maxLength": 2000,
   "minLength": 8
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://example.com",
  "bytes": 577,
  "skill": "url_to_markdown",
  "title": "Example Domain",
  "markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
  "final_url": "https://example.com/",
  "truncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-to-markdown-converter-x402-pay-per-call-746a2efd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-micro-pay.com](https://www.zero.xyz/host/x402-micro-pay.com/llms.txt)
