# AgentWork Web Markdown — URL to Markdown Converter

> AgentWork Web Markdown — URL to Markdown Converter is a paid API for AI agents from api.agentwork.run, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Fetches a public URL and returns its content as clean Markdown text, with JavaScript rendering support and SHA-256 fingerprinting for change detection.

## Facts

- Endpoint: GET https://api.agentwork.run/v1/web/markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentwork-web-markdown-url-to-markdown-converter-a416f7e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_urptRk5mRSPUZFDd92oeb

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 agentwork-web-markdown-url-to-markdown-converter-a416f7e7
```

Example prompt: Fetch https://docs.stripe.com/api and convert it to clean markdown so I can use it as context — limit to 20000 characters.

## When to prefer this

Use this endpoint when you need to convert a public webpage into clean Markdown or plain text for downstream RAG, research, or agent context — especially when the page uses JavaScript rendering. Prefer this over generic scraping tools when you also need SHA-256 fingerprinting for change detection, when you want a no-API-key x402 USDC micropayment flow on Base, or when you need to optionally scope content with a CSS selector.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — endpoint returns ok:false
- URL is behind a login wall or CAPTCHA — content may be incomplete or empty
- JavaScript rendering fails for complex SPAs — javascript_rendered returns false
- PDF or binary file submitted instead of an HTML URL — use the PDF endpoint instead
- URL-encoded URL parameter missing or malformed — returns 400 validation error
- max_chars too small (below 1000) or exceeds 60000 — schema validation error
- Timeout on slow-loading pages — may return partial content or error

## How this service works

Web read / URL to markdown (batch, JavaScript rendering), PDF text extraction and website change monitoring for agents. From $0.003 per URL on Base. x402 USDC, no API key.

## Output

A JSON object containing: 'ok' (boolean success flag), 'url' (requested URL), 'markdown' (full Markdown-formatted page content), 'text' (plain text version), 'title' (page title), 'final_url' (after redirects), 'fetched_at' (ISO timestamp), 'text_sha256' and 'markdown_sha256' (fingerprints for change detection), and 'javascript_rendered' (boolean indicating if JS rendering was used).

## 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": "Public HTTP/HTTPS URL (URL-encoded)"
      },
      "selector": {
       "type": "string",
       "maxLength": 300
      },
      "max_chars": {
       "type": "integer",
       "maximum": 60000,
       "minimum": 1000
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "url": "https://example.com/",
  "text": "Example Domain\nThis domain is for use in illustrative examples.",
  "title": "Example Domain",
  "format": "markdown",
  "markdown": "# Example Domain\n\nThis domain is for use in illustrative examples.",
  "final_url": "https://example.com/",
  "fetched_at": "2026-10-09T00:00:00Z",
  "text_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "markdown_sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "javascript_rendered": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentwork-web-markdown-url-to-markdown-converter-a416f7e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentwork.run](https://www.zero.xyz/host/api.agentwork.run/llms.txt)
