About this endpoint
What it does
Extracts tables from an uploaded PDF file and returns them as JSON arrays of row arrays. The response also includes the number of tables found.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | PDF file upload. Max 20 MB. |
Response
Returns a JSON object with a tables array and a table_count integer. Each item in tables is an object describing one extracted table with page, rows, and table_index fields.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| tables | Object Array | No | Array of extracted table objects. Each object includes page, rows, and table_index. |
| tables[].page | Integer | No | Page number where the table was found. |
| tables[].rows | Array | No | Table content as an array of row arrays. |
| tables[].table_index | Integer | No | Index of the table in the extracted results. |
| table_count | Integer | No | Total number of tables extracted. |
Notes
The uploaded PDF file must be 20 MB or smaller.