{"uid":"cap_YMjB6-DtHVcB_vvnEa8X_","slug":"html-table-to-data-json-csv-parser-bfe9a9e1","name":"HTML Table to Data (JSON/CSV Parser)","description":"Parse an HTML table into rows and columns as JSON or CSV. Pure CPU, instant.","url":"https://api.gadgethumans.com/html-table?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["html"],"properties":{"html":{"type":"string","description":"HTML containing a table"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"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":null,"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_DvhFqNqlUajNit78IXrnc","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":"Parses an HTML string containing a table into structured rows and columns, returning the data as JSON or CSV.","exampleAgentPrompt":"Can you parse this HTML and pull out the table data as JSON? Here's the markup: <table><tr><th>Name</th><th>Age</th></tr><tr><td>Alice</td><td>30</td></tr></table>","exampleUseCases":[{"title":"Extract pricing table from webpage","prompt":"I copied this HTML from a product pricing page — can you parse the table out of it and give me the rows and columns as JSON so I can compare the plans?"},{"title":"Convert government data table to CSV","prompt":"Here's the raw HTML from a government statistics page with a table of population figures — can you extract that table and format the data as CSV?"},{"title":"Scrape sports standings from HTML","prompt":"I have the HTML source for a sports league standings page. Can you pull out the table with all the team stats and return it as structured JSON rows and columns?"}],"resultDescription":"A structured representation of the HTML table's contents, returned as JSON (array of row objects keyed by column headers) or CSV (header row followed by data rows), with an ok status flag.","failureModes":["HTML input contains no table element — empty or error response","Malformed or deeply nested HTML causes incorrect row/column mapping","Multiple tables in HTML may return only the first or require disambiguation","Very large HTML strings may time out or be truncated","Non-table HTML structure (e.g. divs styled as tables) may not be parsed correctly"],"whenToPreferThis":"Use this endpoint when you have raw HTML markup containing a <table> element and need its data extracted into a machine-readable format (JSON or CSV) quickly and cheaply. It is a pure CPU operation with no network calls, making it faster and cheaper than a full headless browser scrape. Prefer it over general web scrapers when you already have the HTML and just need the table parsed — not when you need to fetch a live page first.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:54:57.620Z","isFirstParty":false,"canonicalSlug":"html-table-to-data-json-csv-parser-bfe9a9e1"}