{"uid":"cap_6IhA3iP_5a6NpfJRQXKru","slug":"web2markdown-html-stripper-strip-html-7a356d1c","name":"Web2Markdown HTML Stripper (strip_html)","description":"Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.","url":"https://lin-desk-x402.lindesk.workers.dev/v1/texttools/strip_html?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Input text; max 100 KiB"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"op":{"type":"string"},"meta":{"type":"object","properties":{"chars_in":{"type":"integer"},"chars_out":{"type":"integer"},"elapsed_ms":{"type":"integer"}}},"result":{}}}}}}},"responseSchema":{"type":"json","example":{"op":"strip_html","meta":{"chars_in":25,"chars_out":11,"elapsed_ms":0},"result":"Hello World"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_vU37666ingbu_bC1H0RKX","protocol":"x402","methodType":"crypto","chain":"base","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":"Strips HTML tags from input text and returns clean plain text, suitable for LLM processing","exampleAgentPrompt":"Strip the HTML tags from this snippet and give me clean plain text: '<p>Hello <b>World</b>! Visit <a href=\"https://example.com\">our site</a>.</p>'","exampleUseCases":[{"title":"Clean scraped HTML for LLM prompt","prompt":"I scraped a webpage and got raw HTML back — can you strip all the tags so I just have the readable text I can feed into my prompt?"},{"title":"Sanitize user-submitted HTML content","prompt":"A user pasted this HTML into a form field: '<div><strong>Buy now!</strong> <script>alert(1)</script></div>' — strip all the HTML so I just get the plain text."},{"title":"Preprocess HTML email body for analysis","prompt":"I have the raw HTML body of a marketing email and need to extract just the readable text without any tags or formatting markup so I can analyze its sentiment."}],"resultDescription":"A JSON object containing the operation name ('strip_html'), metadata with chars_in, chars_out, and elapsed_ms, and a 'result' field holding the cleaned plain text with all HTML tags removed.","failureModes":["Input exceeds 100 KiB limit — request rejected","Missing required 'input' query parameter — validation error","Malformed or non-string input — unexpected output or error","Payment not provided or insufficient USDC — 402 Payment Required response","Network timeout on the Cloudflare Worker — 5xx error"],"whenToPreferThis":"Choose this endpoint when you have a raw HTML string (not a full URL to fetch) and need to quickly strip markup to get plain text, especially in a pay-per-call, no-signup context via x402 on Base. It is ideal for preprocessing scraped HTML snippets or user-submitted HTML before feeding text to an LLM. If you need to fetch and convert a full URL or PDF to Markdown, use the sibling web-to-Markdown endpoints instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:46:22.346Z","isFirstParty":false,"canonicalSlug":"web2markdown-html-stripper-strip-html-7a356d1c"}