{"uid":"cap_NEjVB8ZN6WteOgMar49EQ","slug":"x402-micro-pay-html-clean-skill-2babe9ab","name":"x402 Micro Pay — HTML Clean Skill","description":"Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.","url":"https://x402-micro-pay.com/api/skills/html-clean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string"},"mode":{"enum":["text","markdown"],"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"path":"/api/skills/html-clean"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IgJUkNrdM6EbynyHz6AiB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cleans and sanitizes raw HTML content via a pay-per-call HTTP microservice using x402/USDC micropayments","exampleAgentPrompt":"Can you clean this HTML snippet for me — strip out all the junk tags and scripts so I'm left with just the readable content? Here's the raw HTML: '<div><script>alert(1)</script><p>Hello world</p><span style=\"color:red\">Text</span></div>'","exampleUseCases":[{"title":"Sanitize scraped webpage HTML","prompt":"I just scraped this webpage and the HTML is full of scripts, ads, and tracking pixels. Can you clean it up so I only have the meaningful readable content left?"},{"title":"Prepare HTML for LLM context","prompt":"I need to feed this article HTML into my AI pipeline, but it's too noisy with nav bars and footers. Can you strip all the cruft and give me just the clean body text HTML?"},{"title":"Sanitize user-submitted HTML","prompt":"A user just submitted some HTML in a form and I need to make sure it's safe to render — can you sanitize it and remove any potentially dangerous tags or scripts before I store it?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating success and the processed path. The cleaned HTML content is returned as the result of the transformation, with unsafe or unwanted HTML elements removed or sanitized.","failureModes":["Invalid or malformed input schema — returns error if required 'type' or 'method' fields are missing","Payment failure — x402 micropayment of $0.008 USDC not fulfilled, returns 402 Payment Required","Empty or null HTML input — may return error or empty output","Malformed HTML that cannot be parsed — may return partial result or error","Network timeout on large HTML payloads"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call HTML sanitization microservice with no subscription or API key overhead. Ideal for AI agents that process HTML sporadically and want to pay only per use via USDC micropayments. Best for agentic pipelines that scrape or receive untrusted HTML and need it cleaned before rendering, storing, or feeding into an LLM.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:42:44.467Z","isFirstParty":false,"canonicalSlug":"x402-micro-pay-html-clean-skill-2babe9ab"}