{"uid":"cap_lHLBtkSgVXxnOsjv7gIKi","slug":"netintel-markdown-cleaner-c5a683e9","name":"NetIntel Markdown Cleaner","description":"Convert messy HTML or text into clean, well-structured Markdown using Claude Haiku — strips boilerplate, fixes heading hierarchy, normalizes lists and links, and returns readable Markdown so agents can feed clean docs into downstream pipelines, knowledge bases, or LLM context.","url":"https://netintel.dev/markdown/clean","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":["text"],"properties":{"text":{"type":"string","description":"The messy HTML or text to convert into clean Markdown. Max 10000 words or 50KB. Aliases also accepted: html, content, markdown, input."}}},"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","properties":{"grade":{"type":"string","description":"Letter grade A-F"},"score":{"type":"number","description":"Quality score 0-100"},"cached":{"type":"boolean","description":"True if served from the in-memory cache."},"findings":{"type":"array","items":{"type":"string"},"description":"Informational findings (e.g. empty_output)."},"markdown":{"type":"string","description":"The cleaned, well-structured GitHub-flavored Markdown."},"input_chars":{"type":"number","description":"Character count of the input."},"output_chars":{"type":"number","description":"Character count of the cleaned markdown."},"reduction_ratio":{"type":"number","description":"1 - (output_chars / input_chars), rounded to 2dp — how much boilerplate was stripped (informational)."}}}}}}},"responseSchema":{"type":"json","example":{"grade":"A","score":100,"cached":false,"findings":[],"markdown":"# Welcome\n\nHello [world](https://example.com).\n","input_chars":108,"output_chars":39,"reduction_ratio":0.64}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GMACM84BDcyiO7CFNcLWs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts raw Markdown text into clean, sanitized Markdown with a quality grade, score, and character reduction stats","exampleAgentPrompt":"Can you clean up this raw Markdown for me and tell me the quality grade and how much it gets reduced? Here's the content: '# Welcome\n\nHello [world](https://example.com). <div style=\"color:red\">some html</div>\n\n---\n'","exampleUseCases":null,"resultDescription":"Returns a JSON object with: a letter grade (e.g. 'A'), a numeric score (0–100), a boolean indicating cache hit, an array of findings/issues detected, the cleaned Markdown string, input and output character counts, and the reduction ratio as a decimal.","failureModes":["Missing or empty input body returns an error","Malformed JSON request body causes a 400-level error","Payment not included or insufficient USDC causes a 402 Payment Required response","Input Markdown too large may exceed processing limits","Network timeout for very large documents"],"whenToPreferThis":"Use this endpoint when you need to sanitize or strip down Markdown text and also want a quality assessment (grade + score) and size reduction metrics. Ideal for pipelines that ingest user-generated or scraped Markdown and need a clean version before storage or display.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:52:08.468Z","isFirstParty":false}