HTML Table to Structured JSON & Markdown Parser
parse_html_tablesConvert HTML table elements into structured JSON records, Markdown grids, or CSV strings for financial statements, product comparisons, and sports statistics.
Instructions
Detects and parses HTML table elements into structured JSON record arrays and GitHub-Flavored Markdown tabular grids. Use when converting financial statements, product comparison grids, or sports statistics into structured data tables; for extracting raw clean markdown prose, use extract_clean_markdown instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'html_content' ('output_format' defaults to 'markdown_and_json'), supports '?demo=true' or L402 (10 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_rows | No | Minimum rows required for a table to be parsed and retained. | |
| html_content | Yes | Raw HTML string containing one or more table, thead, tbody, or tr elements. | |
| output_format | No | Tabular export formatting standard: markdown and JSON, JSON records only, or CSV string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables_found | Yes | Count of valid HTML tables detected and transformed. | |
| markdown_tables | Yes | List of GitHub-Flavored Markdown formatted table strings. | |
| structured_records | Yes | Parsed array of row objects keyed by header column titles. |