# Mercury URL-to-Markdown Converter with Signed Provenance

> Mercury URL-to-Markdown Converter with Signed Provenance is a paid API for AI agents from mercury-x402-jed.fly.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Fetches a URL and returns clean, LLM-ready markdown (boilerplate/nav/ads stripped) plus a cryptographically signed provenance receipt pinning the markdown to its source.

## Facts

- Endpoint: GET https://mercury-x402-jed.fly.dev/buy/markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mercury-url-to-markdown-converter-with-signed-provenance-1ac64e39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sQl95fTh8LMDSKYQQEXjG

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 mercury-url-to-markdown-converter-with-signed-provenance-1ac64e39
```

Example prompt: Fetch https://en.wikipedia.org/wiki/Retrieval-augmented_generation and give me the clean markdown version — boilerplate and nav stripped — with a signed receipt I can use to prove the content is genuine.

## When to prefer this

Choose this endpoint when you need clean, LLM-ready markdown from a URL with cryptographic provenance — i.e. a signed, offline-verifiable receipt proving what content was at what URL at what time. Prefer it over free scrapers like Jina when downstream agents or RAG pipelines need verifiable, tamper-evident content rather than hearsay bytes. Also ideal when you need a keyless, no-signup web fetch that a fresh autonomous agent can call without human intervention to obtain API credentials.

## Known failure modes

- Target URL is unreachable or returns a non-2xx status — ok:false with upstream status code and error string
- URL exceeds 2048 character limit — rejected at input validation
- Target page exceeds 200KB markdown cap — returned with truncated:true
- Network timeout fetching the upstream URL — ok:false with error
- Invalid or non-http/https URL scheme — rejected at input validation
- Payment not completed via x402 protocol — 402 Payment Required before content is served

## How this service works

URL → clean, LLM-ready markdown (boilerplate/nav/ads stripped, headings + lists + links preserved) with a signed provenance receipt pinning the markdown to its source — the RAG-ingest primitive. Deterministic (no LLM): same URL + same source bytes ⇒ byte-identical markdown.

## Output

Returns a JSON object with: ok (boolean success flag), url (final URL after redirects), data object containing markdown (clean LLM-ready text), title (page title), wordCount, contentType, bytes (raw body size), redirects (chain followed), truncated (whether 200KB cap was hit); plus text (canonical markdown string the signed receipt pins) and fetchedAt (ISO-8601 timestamp). On failure, returns ok:false with an error string.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mercury-url-to-markdown-converter-with-signed-provenance-1ac64e39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mercury-x402-jed.fly.dev](https://www.zero.xyz/host/mercury-x402-jed.fly.dev/llms.txt)
