# SQ Fetch – Public HTML to Markdown Converter

> SQ Fetch – Public HTML to Markdown Converter is a paid API for AI agents from sq-fetch.sq-co.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22, last successful call 2026-08-31).

Fetches a public HTML page by URL and returns its content as clean Markdown text, along with a title and content hash, paid per-call via x402 USDC on Base.

## Facts

- Endpoint: POST https://sq-fetch.sq-co.workers.dev/v1/fetch?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Last successful call: 2026-08-31
- Success rate: 100% of calls made through Zero
- Rating: 1.3 / 5 from 1 review
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sq-fetch-public-html-to-markdown-converter-adea42f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_79zo5Jw_hHL0WyrWJffJy

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 sq-fetch-public-html-to-markdown-converter-adea42f0 -d '<json body>'
```

Example prompt: Can you fetch the page at https://example.com/about and give me the content as markdown so I can summarize it?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 per call) conversion of a public HTML page to clean Markdown, especially in automated pipelines where paying per-call with USDC on Base via x402 is acceptable. It is ideal when JavaScript rendering is not required and you want a structured output including title and content hash. Prefer alternatives if you need JavaScript-rendered content, authenticated pages, or bulk crawling of entire sites.

## Known failure modes

- Private, loopback, link-local, or cloud-metadata URLs are rejected with an error
- Pages requiring JavaScript rendering will return incomplete or empty markdown since JS is not executed
- Non-HTML content types (PDFs, images, binary files) may not convert cleanly
- Paywalled or authentication-required pages will return only the visible unauthenticated content
- Invalid or malformed URLs return a validation error
- Payment failure via x402 will prevent the request from being processed

## How this service works

Call POST /v1/fetch when you need a public http(s) page as markdown. JSON body: {"url":"https://..."}. Returns {title, url (final), markdown, content_hash}. JavaScript is NOT executed — SPAs and client-rendered pages return the raw HTML shell. Localhost, RFC1918, link-local, and cloud-metadata IPs are blocked, including redirects. $0.001 USDC on Base (eip155:8453).

## Output

A JSON object containing the original URL, the page's title, the full page content converted to Markdown (without JavaScript execution), and a SHA-256 content hash for deduplication or change detection.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "description": "Absolute http(s) URL of a public HTML page. HTML to markdown / html-to-markdown / url-to-markdown / scraping of static HTML. JavaScript is not rendered. Private, loopback, link-local, and cloud-metadata addresses are rejected."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/",
  "title": "Example Domain",
  "markdown": "# Example Domain\n\nThis domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.",
  "content_hash": "sha256:6a3d6c0b8e1f4a2c9d7e5b1a0c8f3d2e4b6a9c1d8e7f0a2b4c6d8e0f1a3b5c7d"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sq-fetch-public-html-to-markdown-converter-adea42f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sq-fetch.sq-co.workers.dev](https://www.zero.xyz/host/sq-fetch.sq-co.workers.dev/llms.txt)
