{"uid":"cap_UQeN_qVdC_RiGNDdiLUC8","slug":"x402broker-url-to-markdown-converter-d155a5b2","name":"x402broker URL-to-Markdown Converter","description":"Distill a URL or raw HTML payload with BM25 budget control (Live x402 v2, IETF MPP & MCP endpoint at https://x402broker.com/v1/url-to-markdown)","url":"https://x402broker.com/v1/url-to-markdown?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"description":"Target webpage URL to fetch and distill (or builtin://stripe-docs)"},"html":{"type":"string","description":"Optional raw HTML string to distill directly without fetching"},"mode":{"enum":["markdown","structured","skeleton","budget"],"type":"string","default":"markdown","description":"Distillation mode"},"query":{"type":"string","description":"BM25 focus query when mode=budget"},"max_tokens":{"type":"integer","minimum":20,"description":"Strict token budget ceiling when mode=budget"}}},"responseSchema":{"type":"object","required":["status","roi_proof","data"],"properties":{"data":{"type":"object","description":"Distilled Markdown, structured JSON tables/metadata, skeleton outline, or BM25 budget excerpt."},"cache":{"type":"object","properties":{"status":{"enum":["HIT","MISS"],"type":"string"},"cache_key":{"type":"string"},"latency_ms":{"type":"number"}}},"status":{"type":"string","description":"Execution status ('ok')"},"billing":{"type":"object","properties":{"agent_id":{"type":"string"},"payment_method":{"type":"string"},"fee_charged_usd":{"type":"number"}}},"roi_proof":{"type":"object","properties":{"raw_tokens":{"type":"integer"},"tokens_saved":{"type":"integer"},"roi_multiplier":{"type":"number"},"distilled_tokens":{"type":"integer"},"llm_cost_saved_usd":{"type":"number"},"compression_ratio_pct":{"type":"number"}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RcwhDmbdxXJuSQH6I8jva","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_l5KS_eFMDEW9P_GWSCfqz","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL and converts its HTML content to clean, semantically distilled Markdown, stripping 85-97% of HTML token bloat for agent consumption","exampleAgentPrompt":"Can you fetch https://en.wikipedia.org/wiki/Large_language_model and give me the content as clean markdown, stripping all the HTML noise?","exampleUseCases":[{"title":"Research article content extraction","prompt":"Go to https://www.nature.com/articles/s41586-023-06792-0 and pull the main article text as clean markdown so I can read it without all the HTML clutter."},{"title":"Competitor landing page analysis","prompt":"Fetch https://openai.com/pricing and convert it to clean markdown — I want just the readable content, stripped of all the HTML bloat, so I can analyze their pricing tiers."},{"title":"Documentation page ingestion for agent","prompt":"Convert https://docs.stripe.com/api/charges/object into lean markdown so I can feed it to my agent without wasting tokens on HTML tags."}],"resultDescription":"Returns the fetched webpage's content as semantically distilled Markdown, with 85-97% of HTML token bloat removed — leaving clean, readable, agent-consumable text with structure preserved where meaningful.","failureModes":["URL is unreachable or returns non-200 HTTP status — fetch fails with an error response","URL points to a non-HTML resource (PDF, image, binary) — conversion may fail or return empty","Paywalled or login-protected pages return only the auth wall content, not the full article","JavaScript-rendered pages (SPA) may return incomplete content if the renderer doesn't execute JS","Invalid or malformed URL in query params — schema validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest webpage content efficiently without token overhead from raw HTML — ideal for reading documentation, articles, landing pages, or any public URL where clean, Markdown-formatted text is needed at low cost ($0.001 USDC). Prefer over raw HTML fetch when token budget matters or when downstream LLM processing requires structured plain text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:44:46.788Z","isFirstParty":false,"canonicalSlug":"x402broker-url-to-markdown-converter-d155a5b2"}