Url To Markdown
url_to_markdownURL to Markdown — convert any public HTTPS URL to clean LLM-ready Markdown for $0.001 USDC per accepted read, settled via x402 on Base. Failed reads are never charged. Use this when an agent needs a web page's content as compact Markdown, for example to ground a research answer. Returns the converted Markdown up to max_chars. An unsigned call returns the live x402 PAYMENT-REQUIRED challenge and never auto-spends; retry only with a challenge-specific payment_signature. A free fixed-source preview is at GET /api/web/preview and agent onboarding at GET /api/web/skill.md. Unsigned calls are read-only and idempotent with no side effects; a supplied signature authorizes one paid, irreversible x402 settlement in USDC on Base. On error, returns a structured error. For example, fetch a documentation page before summarizing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public HTTPS URL to read. | |
| max_chars | No | Maximum Markdown characters to return, 1000-50000. Default 12000. | |
| payment_signature | No | Canonical x402 v2 PAYMENT-SIGNATURE bound to this exact URL to Markdown challenge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Whether the upstream HTTP status is 2xx; not settlement proof. | |
| body | No | Unmodified upstream JSON, or bounded response text. Consult that capability's live schema. | |
| error | No | ||
| charged | No | Present on local/transport failures; these do not establish an upstream charge. | |
| message | No | ||
| auto_spent | No | ||
| status_code | No | Observed upstream HTTP status, or null when no response was obtained. | |
| substituted | No | ||
| content_type | No | ||
| payment_required | No | Observed PAYMENT-REQUIRED header; a challenge does not prove payment. | |
| payment_response | No | Observed PAYMENT-RESPONSE header. Assess it together with accepted delivery. | |
| caller_supplied_authorization | No |