# x402-tools URL to Markdown

> x402-tools URL to Markdown is a paid API for AI agents from x402.nichospt.net, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Fetches a public URL and converts its web content to clean Markdown, with optional Readability extraction and image inclusion

## Facts

- Endpoint: POST https://x402.nichospt.net/url-to-markdown?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-url-to-markdown-ffc1a276
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TelUM_E0dP_OQgIx-ZY7J

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-tools-url-to-markdown-ffc1a276 -d '<json body>'
```

Example prompt: Fetch https://techcrunch.com/2024/05/01/openai-gpt5-announcement/ and give me the content as clean markdown — use Readability to strip out nav and ads, and include images.

## When to prefer this

Use this endpoint when you need to fetch a live public webpage and get back clean, structured Markdown — especially for articles or documentation pages where Readability can strip navigation and boilerplate. Prefer this over generic scraping tools when you want built-in Readability parsing and Markdown output in a single pay-per-call step settled in USDC.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — endpoint may return an error or empty content
- Page is behind a login wall or paywall — Readability extraction may return sparse or no content
- JavaScript-heavy SPA may not render fully depending on the waitUntil strategy chosen
- Invalid or malformed URL input returns a validation error
- Payment of 0.002 USDC via x402 protocol fails — request is rejected before processing

## How this service works

Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.

## Output

A JSON object containing the source URL, page title, content length in characters, a short excerpt, and the full page content rendered as Markdown (with main content isolated if Readability is enabled)

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Public http(s) URL"
  },
  "options": {
   "type": "object",
   "properties": {
    "waitUntil": {
     "enum": [
      "load",
      "domcontentloaded",
      "networkidle0",
      "networkidle2"
     ],
     "type": "string",
     "default": "networkidle0"
    },
    "readability": {
     "type": "boolean",
     "default": true,
     "description": "Run Readability to extract main content first"
    },
    "includeImages": {
     "type": "boolean",
     "default": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "title": "Example Domain",
  "length": 4242,
  "excerpt": "This domain is for use in documentation examples.",
  "markdown": "# Example Domain\n\nThis domain is for use in documentation..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-url-to-markdown-ffc1a276/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.nichospt.net](https://www.zero.xyz/host/x402.nichospt.net/llms.txt)
