# Markup and Text Extraction Tools Turn HTML and Markdown you supply into text, links, headings, tables, metadata and main-content extracts. ## How to pay Machine-payable over x402. USDC on: Base (eip155:8453), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Polygon (eip155:137), Arbitrum One (eip155:42161). No accounts. No API keys. No signup. The paying wallet is the account. ## Machine-readable - OpenAPI: https://markup-tools.x402tookit.com/openapi.json - x402 manifest: https://markup-tools.x402tookit.com/.well-known/x402 - Catalog (free): https://markup-tools.x402tookit.com/catalog - Health (free): https://markup-tools.x402tookit.com/health - Uptime (free): https://markup-tools.x402tookit.com/uptime ## Endpoints (8) ### GET /html-headings — $0.02 Extract the h1-h6 heading outline from supplied HTML and flag missing or multiple h1, skipped levels and empty headings. Params: html: string Example: https://markup-tools.x402tookit.com/html-headings?html=%3Ch1%3EGuide%3C%2Fh1%3E%3Ch2%3ESetup%3C%2Fh2%3E%3Ch4%3EDetail%3C%2Fh4%3E%3Ch2%3E%3C%2Fh2%3E%3Ch1%3ESecond%3C%2Fh1%3E ### GET /html-links — $0.02 List all links in supplied HTML with text, rel flags, absolute URL (against a base) and internal/external split. Params: html: string, base?: string Example: https://markup-tools.x402tookit.com/html-links?html=%3Ca+href%3D%22%2Fabout%22%3EAbout%3C%2Fa%3E+%3Ca+href%3D%22https%3A%2F%2Fother.org%2Fx%22+rel%3D%22nofollow+sponsored%22%3EAd%3C%2Fa%3E+%3Ca+href%3D%22%23top%22%3ETop%3C%2Fa%3E+%3Ca+href%3D%22mailto%3Aa%40b.co%22%3EMail%3C%2Fa%3E&base=https%3A%2F%2Fexample.com%2Fdir%2Fpage ### GET /html-meta — $0.02 Read title, description, canonical, robots, Open Graph, Twitter card and JSON-LD types from supplied HTML and list gaps. Params: html: string, base?: string Example: https://markup-tools.x402tookit.com/html-meta?html=%3Chtml+lang%3Den%3E%3Chead%3E%3Ctitle%3EMy+Page%3C%2Ftitle%3E%3Cmeta+name%3Ddescription+content%3D%22A+page.%22%3E%3Clink+rel%3Dcanonical+href%3D%2Fp%3E%3Cmeta+property%3Dog%3Atitle+content%3D%22My+Page%22%3E%3Cmeta+property%3Dog%3Aimage+content%3D%2Fi.png%3E%3Cmeta+name%3Dtwitter%3Acard+content%3Dsummary%3E%3C%2Fhead%3E&base=https%3A%2F%2Fexample.com%2F ### GET /html-tables — $0.02 Convert HTML tables to row and column arrays with header detection; colspan and rowspan cells are expanded. Params: html: string Example: https://markup-tools.x402tookit.com/html-tables?html=%3Ctable%3E%3Ccaption%3EFruit%3C%2Fcaption%3E%3Cthead%3E%3Ctr%3E%3Cth%3EName%3Cth%3EQty%3C%2Ftr%3E%3C%2Fthead%3E%3Ctr%3E%3Ctd%3EApple%3Ctd%3E3%3Ctr%3E%3Ctd+colspan%3D2%3ETotal+3%3C%2Ftable%3E ### GET /html-to-text — $0.02 Turn supplied HTML into readable text: keeps paragraphs, lists, table rows and link text; drops script, style, hidden. Params: html: string, links?: boolean, base?: string Example: https://markup-tools.x402tookit.com/html-to-text?html=%3Ch1%3ETitle%3C%2Fh1%3E%3Cp%3EHello+%26amp%3B+welcome%2C+it%26%23x27%3Bs+%3Ca+href%3D%22%2Fa%22%3Ehere%3C%2Fa%3E.%3C%2Fp%3E%3Cul%3E%3Cli%3Eone%3Cli%3Etwo%3C%2Ful%3E%3Cdiv+style%3D%22display%3Anone%22%3Esecret%3C%2Fdiv%3E%3Cscript%3Ex%28%29%3C%2Fscript%3E&links=true&base=https%3A%2F%2Fexample.com%2F ### GET /markdown-outline — $0.02 Outline a Markdown document: front matter, headings with anchors, links, images, code blocks with language, and problems. Params: markdown: string Example: https://markup-tools.x402tookit.com/markdown-outline?markdown=---%0Atitle%3A+Guide%0Atags%3A+%5Ba%5D%0A---%0A%23+Guide%0A%0A%23%23+Install%0A%0ARun+%60npm+i%60%2C+see+%5Bdocs%5D%5Bd%5D+and+%5Bmissing%5D%5Bnope%5D.%0A%0A%60%60%60bash%0Anpm+i%0A%60%60%60%0A%0A%23%23%23%23+Deep%0A%0A%5Bd%5D%3A+https%3A%2F%2Fexample.com%2Fdocs%0A ### GET /markdown-to-text — $0.02 Strip CommonMark/GFM syntax to plain text: emphasis, links, images, headings, lists, quotes, code fences, HTML, front matter. Params: markdown: string, urls?: boolean, code?: string Example: https://markup-tools.x402tookit.com/markdown-to-text?markdown=---%0Atitle%3A+Demo%0A---%0A%23+Hello+*world*%0A%0ASee+%5Bthe+docs%5D%28https%3A%2F%2Fexample.com+%22Docs%22%29+and+%60code%60.%0A%0A-+one%0A-+**two**%0A%0A%60%60%60js%0Alet+x+%3D+1%3B%0A%60%60%60%0A ### GET /readability-extract — $0.03 Heuristic main-content extraction from supplied HTML by text density and tag scoring; returns text, title, byline, confidence. Params: html: string, base?: string Example: https://markup-tools.x402tookit.com/readability-extract?html=%3Chtml%3E%3Chead%3E%3Ctitle%3ENews+%7C+Site%3C%2Ftitle%3E%3Cmeta+name%3Dauthor+content%3D%22Ann+Lee%22%3E%3C%2Fhead%3E%3Cbody%3E%3Cnav%3E%3Ca+href%3D%2F%3EHome%3C%2Fa%3E%3Ca+href%3D%2Fx%3EWorld%3C%2Fa%3E%3C%2Fnav%3E%3Cdiv+id%3Dcontent%3E%3Ch1%3EBig+Story%3C%2Fh1%3E%3Cp%3EFirst+paragraph+of+the+story%2C+with+enough+words%2C+commas%2C+and+detail+to+count+as+real+prose.%3C%2Fp%3E%3Cp%3ESecond+paragraph+continues+the+story%2C+adding+more+detail%2C+context%2C+and+quotes+for+the+reader.%3C%2Fp%3E%3C%2Fdiv%3E%3Cdiv+class%3Dsidebar%3E%3Cp%3ERelated%3A+a%2C+b%2C+c%3C%2Fp%3E%3C%2Fdiv%3E%3Cfooter%3ECopyright%3C%2Ffooter%3E%3C%2Fbody%3E%3C%2Fhtml%3E&base=https%3A%2F%2Fexample.com%2Fstory ## Terms Computed locally on the HTML or Markdown you send, using a small tolerant parser written for this service, provided as is. Real browsers apply CSS, scripts and error recovery this parser does not, so results are approximations. Nothing is fetched or executed. Do not send secrets in a query string.