code402 / tools / clean-markdown-scraper
$0.005 per call · 20 free calls/day · no signup · pay with card credits or a signed USDC voucher (x402)
Transform noisy HTML web documents into clean, LLM-optimized Markdown while preserving semantic headers and links.
curl -X POST https://code402.dev/v1/tools/clean-markdown-scraper/call \
-H "content-type: application/json" \
-d '{"html":"<h1>Protocol Overview</h1><p>Agentic non-custodial settlement gateway.</p><ul><li>Zero custody</li><li>Sub-cent fees</li></ul>"}'
No key needed for the free tier. When the free quota is used up, the API replies HTTP 402 with the exact price — agents sign the x402 voucher and retry; humans buy card credits. Every paid response carries a signed receipt you can verify offline.
| Field | Type | Meaning |
|---|---|---|
html (required) | string | Raw HTML string to scrape and clean into pristine Markdown. |
Top-level fields: markdown, wordCount, headings. Paid responses also carry a signed XDR-1 receipt.
Machine-readable catalog: llms-full.txt · MCP manifest · OpenAPI. Operated by JUANA LIMITED (UK Co. No. 14043409). Non-custodial: USDC settles payer→seller directly on Base.