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

> URL to Markdown Converter (x402 Pay-per-call) is a paid API for AI agents from agentkit-x402.zenith-ops.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-28).

Fetches a web page by URL and converts its static HTML content to clean Markdown text, returning title, word count, character count, and redirect info.

## Facts

- Endpoint: GET https://agentkit-x402.zenith-ops.workers.dev/v1/url-markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-to-markdown-converter-x402-pay-per-call-6bc71769
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8VHuWYRrvM-8rLCNYHaqx

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-6bc71769
```

Example prompt: Can you fetch the content of https://example.com/blog/intro and convert it to markdown so I can read it cleanly?

## When to prefer this

Choose this endpoint when you need to convert a single static web page to clean Markdown cheaply ($0.005 USDC per call) without any signup or API key, and when the page content is primarily server-rendered HTML. Prefer this over browser-automation-based scrapers when JavaScript rendering is not required, and over general-purpose LLM web browsing when you need structured metadata (title, word count, redirect chain) alongside the markdown content.

## Known failure modes

- Page is JavaScript-rendered: JS-dependent content will be missing since only static HTML is processed
- Invalid or unreachable URL returns a non-200 status code
- Paywalled or login-required pages return empty or partial markdown
- Very large pages may be truncated (source_truncated: true)
- Network timeout if the target server is slow or unresponsive
- Payment failure over x402 protocol if USDC balance is insufficient

## How this service works

Pay-per-call API for AI agents with no signup or API key. Email validation, SPF/DMARC audits, DNS lookup, site contacts, URL to Markdown, IBAN and Swedish personnummer/orgnr validation. From $0.001 in USDC on Base via x402.

## Output

A JSON object containing the converted Markdown string, page title, final resolved URL after redirects, number of redirects, word count, character count, source byte size, a flag for whether the source was truncated, a flag indicating whether JavaScript rendering was used (always false — static HTML only), and the HTTP status code of the fetched page.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Page URL to convert."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/",
  "note": "Static HTML only: content that a page builds with JavaScript is not included.",
  "title": "Example Domain",
  "words": 17,
  "status": 200,
  "markdown": "# Example Domain\n\nThis domain is for use in illustrative examples in documents.\n\n[More information...](https://www.iana.org/domains/example)",
  "final_url": "https://example.com/",
  "redirects": 0,
  "characters": 140,
  "source_bytes": 1256,
  "source_truncated": false,
  "javascript_rendered": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-to-markdown-converter-x402-pay-per-call-6bc71769/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402.zenith-ops.workers.dev](https://www.zero.xyz/host/agentkit-x402.zenith-ops.workers.dev/llms.txt)
