Parse HTML Table
Utility - Parse HTML Table
Section titled “Utility - Parse HTML Table”This operation automatically identifies and extracts HTML tables embedded within HTML documents.
Endpoint
Section titled “Endpoint”POST /api/v1/Utility/ParseHtmlTableRequest Parameters
Section titled “Request Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| FileContent | string | No | - | Base64-encoded HTML file content |
| HtmlData | string | No | - | HTML string to be parsed |
| TableIndex | integer | No | 1 | Index of the HTML table to parse when multiple tables exist |
| TableId | string | No | - | ID of the HTML table to parse when multiple tables exist |
Note: Either FileContent or HtmlData must be provided, but not both.
Response
Section titled “Response”A string containing the extracted table data in JSON format.
Implementation Details
Section titled “Implementation Details”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.
Usage Notes
Section titled “Usage Notes”- 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