Extract tables from a PDF to JSON or CSV (PDF table to Excel-ready CSV) — works on invoices, reports, bank statements. Billed per page.
curl -X POST https://api.bigapi.dev/v1/pdf/extract-tables -H 'Authorization: Bearer $KEY' -F 'file=@invoice.pdf' -F 'output=csv' -o tables.csv
New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.
| Name | Meaning |
|---|---|
file required | PDF with a text layer that contains tables (for scans use ocr first). |
first | First page to read (1 is the first page). Default: first page |
last | Last page to read. Default: last page |
output | JSON {pages:[{page, tables:[[row]]}]} or semicolon CSV. Allowed: json, csvDefault: "json" |
minCols | Minimum number of columns for a line to count as a table row. Raise it to 3 or more if ordinary text is mistaken for a table. Default: 2 |
Returns application/json | text/csv. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).
Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds pdf_extract_tables on its own.