{"uid":"cap_0YRioOehfCP_GOYRFxqfq","slug":"402utils-html-table-extractor-7cdaa029","name":"402utils HTML Table Extractor","description":"Extract every table from HTML you provide into clean JSON — no fetching, send the markup itself as {html} or a raw text/html body. Returns per table: optional caption, headers[] (from thead or an all-th first row) and rectangular rows[][]. colspan/rowspan cells are grid-expanded with the value duplicated so rows align with the visual layout; nested tables are flattened into the outer cell's text. Caps: 5 MB HTML, 200 tables, 200k cells.","url":"https://402utils.com/v1/html-tables?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"The HTML document or fragment to extract tables from (max 5 MB UTF-8). Nothing is fetched."}}},"responseSchema":{"type":"json","example":{"tables":[{"rows":[["Café filtre","€12,400"]],"caption":"Q2 revenue","headers":["Product","Revenue"]}],"tableCount":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":{"p10Cents":"0.2000","medianCents":"0.2000","p90Cents":"0.2000","minCents":"0.2000","maxCents":"0.2000","p95Cents":"0.2000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Oce9PP3A6dRziX0NyGWCk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all HTML tables from provided markup into structured JSON with headers, rows, and captions, with colspan/rowspan grid expansion","exampleAgentPrompt":"Pull out all the tables from this HTML snippet and give me the headers and rows as clean JSON — here's the markup: <table><thead><tr><th>Name</th><th>Score</th></tr></thead><tbody><tr><td>Alice</td><td>95</td></tr></tbody></table>","exampleUseCases":null,"resultDescription":"Returns a JSON array of table objects, each containing an optional caption string, a headers array (derived from thead or an all-th first row), and a rectangular rows array of arrays where colspan/rowspan cells are duplicated to align with the visual grid layout. Nested tables are flattened into the parent cell's text content.","failureModes":["HTML exceeds 5 MB limit — request rejected","More than 200 tables in the HTML — truncated or rejected","More than 200,000 cells across all tables — rejected","Malformed or non-HTML body — may return empty tables array or error","No tables found in the HTML — returns empty array"],"whenToPreferThis":"Use this endpoint when you already have HTML markup and need to extract structured tabular data without fetching any URLs. It handles messy real-world tables with colspan/rowspan spanning and nested tables, making it ideal for post-scrape table parsing or processing HTML from clipboard, documents, or API responses.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:42:20.055Z","isFirstParty":false,"canonicalSlug":"402utils-html-table-extractor-7cdaa029"}