Skip to content

Parse HTML Table

This operation automatically identifies and extracts HTML tables embedded within HTML documents.

POST /api/v1/Utility/ParseHtmlTable
NameTypeRequiredDefaultDescription
FileContentstringNo-Base64-encoded HTML file content
HtmlDatastringNo-HTML string to be parsed
TableIndexintegerNo1Index of the HTML table to parse when multiple tables exist
TableIdstringNo-ID of the HTML table to parse when multiple tables exist

Note: Either FileContent or HtmlData must be provided, but not both.

A string containing the extracted table data in JSON format.

The operation parses the HTML document, identifies tables, and extracts structured data from the specified table. It handles various HTML table structures and properly organizes the data in a consistent format.

  • If multiple tables exist in the HTML, you can specify which one to extract using either TableIndex or TableId
  • The operation preserves the table structure with headers and cell data
  • This operation is particularly useful for web scraping and data extraction workflows

Credit Cost

Cost: 0.05 credit(s) per call

Note: Fixed cost per call regardless of input size