{"slug":"agent402-tools-api-html-to-markdown-07ffa3","title":"Convert an HTML fragment or document you already have into clean markdown","host":"agent402.tools","method":"POST","resource":"https://agent402.tools/api/html-to-markdown","category":"search","description":"Convert an HTML fragment or document you already have into clean markdown. hiddenContent reports text a reader cannot see (HTML comments, display:none or hidden elements, white-on-white or off-screen text, zero-width characters) and quotes any of it that reads as an instruction to an AI; send hidden","price_listed":0.001,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","eip155:10","eip155:1329","eip155:137","eip155:143","eip155:42161","eip155:42220","eip155:43114","eip155:4663","eip155:5042","eip155:57073","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","stellar:pubnet"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"html":"<h1>Hi</h1><p><b>bold</b></p>"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"hidden":{"enum":["keep","drop"],"type":"string"},"html":{"type":"string"}},"required":["html"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"hiddenContent":{"properties":{"found":{"properties":{"attributes":{"type":"number"},"comments":{"type":"number"},"cssHidden":{"type":"number"},"hiddenAttr":{"type":"number"},"invisibleChars":{"type":"number"},"offscreen":{"type":"number"}},"type":"object"},"instructionLike":{"type":"array"},"mode":{"type":"string"},"total":{"type":"number"}},"type":"object"},"markdown":{"type":"string"}},"required":["markdown","hiddenContent"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Convert an HTML fragment or document you already have into clean markdown. hiddenContent reports text a reader cannot see (HTML comments, display:none or hidden elements, white-on-white or off-screen text, zero-width characters) and quotes any of it that reads as an instruction to an AI; send hidden: \"drop\" to leave it out of the markdown. (To fetch + convert a live URL, use /api/extract.)","last_updated":"2026-11-14T12:28:00.858Z","schemes":["exact","upto"]}