# AgentKit x402 URL to Markdown Converter

> AgentKit x402 URL to Markdown Converter is a paid API for AI agents from agentkit-x402.erikssonanton2001.workers.dev, paid per call via x402, $0.005/call, status down (last checked 2026-10-20).

Fetches a webpage by URL and returns its content as clean Markdown, along with metadata like title, word count, and character count.

## Facts

- Endpoint: GET https://agentkit-x402.erikssonanton2001.workers.dev/v1/url-markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentkit-x402-url-to-markdown-converter-93e3f401
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m0oONBzr_wQx41SlwikeG

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 agentkit-x402-url-to-markdown-converter-93e3f401
```

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

## When to prefer this

Choose this endpoint when you need to quickly fetch and read the text content of a static or server-rendered webpage as markdown, especially in pay-per-call agent workflows using x402/USDC micropayments. Prefer it over generic scraping services when you want lightweight, structured markdown output with metadata (title, word count, redirects). Not suitable for JavaScript-heavy SPAs where dynamic content is required.

## Known failure modes

- URL is unreachable or returns a non-200 status — status field reflects the HTTP error code
- Page is JavaScript-rendered — content will be incomplete or empty since only static HTML is parsed
- URL parameter is missing — returns a 400-level validation error
- Page is very large — source may be truncated (source_truncated: true)
- Redirect loops or excessive redirects may cause failure

## How this service works

Email checks, DNS and email-authentication audits, website contact extraction, SEO audits, URL to Markdown and Swedish validators, paid per call in USDC with x402.

## Output

A JSON object containing the markdown-rendered text of the page, the page title, word count, character count, source size in bytes, number of redirects, final URL after redirects, HTTP status code, and a note that JavaScript-rendered content is not included (static HTML only).

## 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/agentkit-x402-url-to-markdown-converter-93e3f401/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402.erikssonanton2001.workers.dev](https://www.zero.xyz/host/agentkit-x402.erikssonanton2001.workers.dev/llms.txt)
