Table Extraction API - Extract HTML, Markdown & PDF Tables to JSON
table_extractionExtract structured tables from HTML, Markdown, CSV/TSV text, public web URLs, or base64 PDFs into clean JSON records, CSV, or Markdown. Expands HTML colspan and rowspan cells, preserves captions and page numbers, infers numeric and boolean types while keeping leading-zero IDs intact, and enforces strict SSRF limits on URLs. Deterministic local parsing (BeautifulSoup, lxml, pdfplumber), 0 AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/table-extraction.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"html": "<table><caption>Q4 Pricing</caption><thead><tr><th>SKU</th><th>Product</th><th>Price</th><th>InStock</th></tr></thead><tbody><tr><td>00412</td><td>Pro Plan</td><td>49.00</td><td>true</td></tr><tr><td>00413</td><td>Business Plan</td><td>129.00</td><td>true</td></tr></tbody></table>",
"format": "json",
"detectTypes": true
},
"name": "table_extraction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional public http(s) URL to fetch and extract HTML tables from (honest UA, SSRF-protected) | |
| html | No | HTML document or fragment containing one or more <table> elements (max 2 MB) | |
| text | No | Auto-detected HTML, Markdown, or CSV/TSV delimited table text (max 2 MB) | |
| format | No | Output format for table rows | json |
| markdown | No | Markdown text containing one or more GFM pipe tables (max 2 MB) | |
| maxTables | No | Maximum number of tables to return (1-50) | |
| pdfBase64 | No | Optional base64-encoded PDF file to extract structured tables from (max 15 MB) | |
| detectTypes | No | Convert numeric and boolean cell values in JSON records | |
| includeRawRows | No | Include raw 2D string cell matrix alongside JSON records | |
| maxRowsPerTable | No | Maximum data rows per table (1-2000) |