{"uid":"cap_fYZ-A1gABMeww6Z_UxB0m","slug":"html-to-markdown-converter-85e7f4f6","name":"HTML to Markdown Converter","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/html/markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["html"],"properties":{"html":{"type":"string","maxLength":500000},"max_chars":{"type":"integer","maximum":250000,"minimum":100}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BBa2XxfFeDR2gXZgDgGPM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts raw HTML content into clean Markdown format via a machine-payable x402 POST endpoint","exampleAgentPrompt":"Convert this HTML into clean Markdown — here's the raw HTML: '<html><body><h1>Hello World</h1><p>This is a test page.</p></body></html>' — and cap the output at 5000 characters.","exampleUseCases":[{"title":"Prepare scraped HTML for LLM context","prompt":"I just scraped the HTML from a documentation page and I need it converted to Markdown so I can feed it into my LLM pipeline — here's the HTML blob, keep it under 10000 characters."},{"title":"Convert article HTML for Markdown notes","prompt":"Take this HTML from a news article and convert it to clean Markdown so I can save it in my notes app — here's the full HTML content."},{"title":"RAG ingestion preprocessing","prompt":"I have a bunch of HTML pages I'm indexing for a RAG system — convert this HTML to Markdown so the chunks are cleaner for embedding: '<div class=\"content\"><h2>Product Overview</h2><p>Details here.</p></div>'"}],"resultDescription":"Returns a JSON object with status and the converted Markdown text extracted from the submitted HTML, optionally truncated to the specified max_chars limit.","failureModes":["HTML exceeds 500,000 character limit — request rejected","max_chars below 100 or above 250,000 — validation error","Malformed or invalid JSON body — 400 error","Payment not included or insufficient — x402 payment required response","Empty or missing html field — required field validation error"],"whenToPreferThis":"Use this endpoint when you have raw HTML strings (e.g. from web scraping) and need clean Markdown output for LLM ingestion, RAG pipelines, or readable document storage. Prefer this over URL-based scrapers when you already have the HTML in memory and don't need a fresh fetch. The x402 micropayment model at $0.001 USDC makes it cost-efficient for high-volume document processing workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:47:32.826Z","isFirstParty":false,"canonicalSlug":"html-to-markdown-converter-85e7f4f6"}