{"uid":"cap_toSWAgNt-g_DeCzZylE1m","slug":"html-table-to-csv-6e76ecb8","name":"HTML Table to CSV","description":"Convert an HTML table string into rows and CSV text.","url":"https://164.160.90.241.sslip.io/api/fmt-html-table-to-csv?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["html"],"properties":{"html":{"type":"string","description":"HTML containing a <table>"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EwxOxBNEiS2nTdY-QealH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an HTML string containing a <table> element into structured rows and CSV-formatted text.","exampleAgentPrompt":"Can you convert this HTML table into CSV text? Here's the HTML: <table><tr><th>Name</th><th>Age</th></tr><tr><td>Alice</td><td>30</td></tr></table>","exampleUseCases":[{"title":"Scrape table data from webpage","prompt":"I scraped this HTML from a product listing page and it has a table with prices and SKUs — can you convert it to CSV so I can drop it into Excel? Here's the HTML: <table><tr><th>SKU</th><th>Price</th></tr><tr><td>A1</td><td>$9.99</td></tr></table>"},{"title":"Export financial report table","prompt":"I have an HTML snippet from a financial report that contains a quarterly earnings table — turn it into CSV for me so I can analyze it in a spreadsheet. The HTML is: <table><tr><th>Quarter</th><th>Revenue</th></tr><tr><td>Q1</td><td>1200000</td></tr></table>"},{"title":"Automate data pipeline from HTML source","prompt":"As part of my ETL pipeline, I need to take this HTML table from our internal dashboard and convert it to CSV rows so I can load it into our database — here's the raw HTML: <table><tr><th>User</th><th>Orders</th></tr><tr><td>Bob</td><td>15</td></tr></table>"}],"resultDescription":"Returns the parsed table as CSV text with rows and columns matching the HTML table structure, including headers if present. Each row of the HTML table becomes a line of comma-separated values.","failureModes":["Missing or malformed HTML table: if the input HTML contains no <table> element, the conversion will fail or return empty results","Invalid HTML: severely malformed HTML may cause parsing errors","Multiple tables: behavior with multiple <table> elements in the HTML may be undefined","Empty table: an HTML table with no rows returns empty or header-only CSV"],"whenToPreferThis":"Use this endpoint when you have raw HTML containing a <table> element and need it converted to CSV without setting up a parser locally. Ideal for agents processing scraped web pages, extracting tabular report data, or automating data pipelines that receive HTML payloads. Prefer this over manual parsing when a quick, pay-per-call serverless conversion is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:40:23.565Z","isFirstParty":false,"canonicalSlug":"html-table-to-csv-6e76ecb8"}