# Any URL to Markdown Converter

> Any URL to Markdown Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.026/call, status unknown (last checked 2026-09-16).

Auto-detects content type of a URL (HTML, PDF, or image) and converts it to clean markdown using the appropriate extractor

## Facts

- Endpoint: POST https://agent402.tools/api/skill/any-to-markdown
- Price: $0.026/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/any-url-to-markdown-converter-1327ca93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qDrt8oGsb8SreV_64u7Bq

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 any-url-to-markdown-converter-1327ca93 -d '<json body>'
```

Example prompt: Can you grab the content from https://example.com/report.pdf and give it to me as clean markdown? It might be a PDF, HTML page, or image — just figure out what it is and convert it.

## When to prefer this

Use this endpoint when you have a URL that could be any of several content types (HTML, PDF, image) and you want a single call to produce clean markdown without needing to detect the type yourself or chain multiple tools. Ideal for agent workflows that ingest heterogeneous web content.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — extraction fails
- Unsupported content type beyond HTML/PDF/image — workflow may not branch correctly
- Malformed or non-HTTP URL input — validation error
- PDF is scanned/image-only with no extractable text — markdown may be empty or OCR-limited
- Large files may time out depending on download speed

## How this service works

Bundled execution of the Convert anything to markdown workflow - Convert anything at a URL - HTML, PDF, or an image - to clean markdown. The 'I have a URL but it might be any content-type, give me markdown either way' workflow: HEAD-detect the content-type, branch to the right deterministic extractor (article extract for HTML, pdf-to-markdown for PDFs, OCR for images), and report token/word stats on the output so the caller can budget the result against an LLM context window.

## Output

Clean markdown text extracted from the target URL. The endpoint auto-detects whether the URL points to an HTML article, PDF, or image, and applies the appropriate deterministic extractor to return well-formatted CommonMark markdown.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public http(s) URL to convert to markdown. Can point at an HTML article, a PDF, or an image - the workflow auto-detects."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "args": {
   "url": "https://example.com"
  },
  "pack": "any-to-markdown",
  "steps": [
   {
    "ok": true,
    "slug": "http-headers",
    "result": {}
   },
   {
    "ok": true,
    "slug": "extract",
    "result": {}
   },
   {
    "ok": true,
    "slug": "pdf-to-markdown",
    "result": {}
   },
   {
    "ok": true,
    "slug": "image-ocr",
    "result": {}
   },
   {
    "ok": true,
    "slug": "html-to-markdown",
    "result": {}
   },
   {
    "ok": true,
    "slug": "text-stats",
    "result": {}
   }
  ],
  "summary": "6/6 steps succeeded"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/any-url-to-markdown-converter-1327ca93/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
