# supremeai Web Page to Markdown Converter

> supremeai Web Page to Markdown Converter is a paid API for AI agents from agents.supremeai.ca, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Fetches a public URL and returns its content as clean markdown text, with optional JavaScript rendering and configurable content length.

## Facts

- Endpoint: POST https://agents.supremeai.ca/v1/read?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/supremeai-web-page-to-markdown-converter-823f59ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mXAu8MsIdmPVLheZ2-3Us

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 supremeai-web-page-to-markdown-converter-823f59ef -d '<json body>'
```

Example prompt: Can you fetch the content of https://en.wikipedia.org/wiki/HTTP_402 and give it to me as clean markdown, capped at 100000 characters?

## When to prefer this

Use this endpoint when you need to fetch and read the textual content of any public webpage as clean markdown, especially for AI pipelines that need to process or summarize web content without dealing with raw HTML. It is pay-per-call with no API key required, making it ideal for agentic workflows that need ad-hoc web access on demand.

## Known failure modes

- URL is not publicly accessible — returns non-200 status
- URL points to a binary or non-text resource (PDF, image) — content may be empty or malformed
- JavaScript-heavy SPAs may not render correctly without a rendering flag
- Content exceeds max_chars and gets truncated — check the truncated field in response
- Network timeout for slow-loading pages
- Invalid URL format — request rejected with error

## How this service works

Pay-per-call tools for AI agents: x402 pre-flight checks (is this endpoint safe to pay?), web pages as clean markdown (with optional JavaScript rendering), Latin American tax-ID validation, npm/PyPI/GitHub lookups, and URL health checks. No API keys, no accounts — pay per request in USDC.

## Output

A JSON object containing the page title, format (always 'markdown'), HTTP status code, the full page content as clean markdown text, a boolean indicating whether JavaScript was rendered, a boolean indicating whether the content was truncated, and the word count of the extracted content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "public http(s) URL"
  },
  "max_chars": {
   "type": "integer",
   "description": "content length cap (default 50000, max 200000)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://en.wikipedia.org/wiki/HTTP_402",
  "title": "HTTP 402",
  "format": "markdown",
  "status": 200,
  "content": "# HTTP 402\n\nHTTP 402 Payment Required is ...",
  "rendered": false,
  "truncated": false,
  "word_count": 812
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/supremeai-web-page-to-markdown-converter-823f59ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.supremeai.ca](https://www.zero.xyz/host/agents.supremeai.ca/llms.txt)
