# url2md

> url2md is a paid API for AI agents from x402-url2md.shablony-pro.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches a URL and returns its content as clean, readable Markdown via pay-per-call x402 micropayment

## Facts

- Endpoint: GET https://x402-url2md.shablony-pro.workers.dev/md
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url2md-f475f9c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QiJtNs4Db5_W96FnhfpdA

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 url2md-f475f9c7
```

Example prompt: Can you fetch the content of https://example.com/article and convert it into clean markdown so I can read and work with it?

## When to prefer this

Use this endpoint when you need to quickly convert any publicly accessible webpage into clean Markdown for downstream text processing, summarization, or LLM context ingestion. It is ideal for pay-per-use scenarios where you don't want to maintain a scraping infrastructure. Prefer it over general-purpose scrapers when you specifically need Markdown output and are already operating in an x402 micropayment context on Base.

## Known failure modes

- URL is inaccessible or returns a non-200 HTTP status — fetch fails with an error
- Payment not completed via x402 protocol — endpoint returns 402 Payment Required
- URL points to a non-HTML resource (PDF, image, binary) — conversion may produce garbled or empty output
- Target page requires JavaScript rendering — static fetch may miss dynamic content
- Malformed or missing URL parameter — request fails with validation error

## How this service works

URL to clean Markdown conversion. x402 pay-per-call, 0.01 USDC on Base.

## Output

Clean Markdown text representing the human-readable content of the fetched URL, with HTML markup stripped and structure preserved as Markdown headings, lists, and paragraphs. Response includes an ok and paid status confirming successful retrieval and payment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "markdown",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url2md-f475f9c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-url2md.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-url2md.shablony-pro.workers.dev/llms.txt)
