{"uid":"cap_Yr10dl9-ApJykApFFjP71","slug":"netintel-markdown-cleaner-6a98dd05","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-production-440c.up.railway.app/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":"settled","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_2IMZzSoDSjkdVJYrOzmbZ","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":"Cleans and sanitizes raw markdown text, removing noise and computing a quality grade and reduction ratio","exampleAgentPrompt":"Can you clean up this messy markdown for me and tell me how much it was reduced and what quality grade it gets? Here's the raw text: '# My Doc\n\nHello [world](https://example.com).\n\n<div>some html junk</div>'","exampleUseCases":null,"resultDescription":"Returns a JSON object with: the cleaned markdown string, a letter grade (e.g. 'A'), a numeric score (0-100), a boolean indicating if the result was cached, an array of findings (issues detected), and character counts for input and output along with a reduction ratio (e.g. 0.64 meaning 64% reduction).","failureModes":["Missing or empty markdown body returns an error","Malformed POST body results in a 400-level response","Payment not included or insufficient USDC triggers a 402 Payment Required response","Extremely large inputs may time out or be rejected","Non-markdown or binary input may return low scores or unexpected findings"],"whenToPreferThis":"Use this endpoint when you need to programmatically clean, sanitize, or assess the quality of markdown text — especially markdown scraped from the web or generated by AI that may contain HTML noise, redundant whitespace, or structural issues. Prefer this over generic text-cleaning tools when you specifically need markdown-aware processing with a quality grade and reduction metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:55:53.838Z","isFirstParty":false}