CSV/JSON to table
CSV/JSON to table is an API that turns data into a real, presentation-ready table: as a PDF or as an image. Give it a CSV or a JSON array, no HTML to write.
How it works
You send csv (the text) or data (an array), never both, and get back the table already built, with a highlighted header and alternating rows. Defaults to PDF; with format=png (or jpeg/webp), an image.
Coming from an Excel file? Use Excel to JSON first, and pass its result to this tool's data.
All you need
- Your API key. Create it in your dashboard with "+ Create key".
- In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream…).
How to use it in n8n
- Method:
POST· URL:https://api.cofferdock.com/data-to-table - Send Headers:
x-api-key= your key,Content-Type=application/json - Send Body (JSON):
{ "data": [{"name":"Ana","age":30},{"name":"Luis","age":25}] } - In Options → Response → Response Format: choose File
Options
| Option | Default | What it does |
|---|---|---|
csv | - | The CSV text. Use this OR data. |
data | - | Array of objects or arrays. Use this OR csv. |
header | true | First row as a highlighted header. |
format | pdf | pdf, png, jpeg or webp. |
API overview
- Endpoint:
POST https://api.cofferdock.com/data-to-table - Auth:
x-api-key: YOUR_KEY. - Input: JSON
{ "csv": "..." }or{ "data": [...] }, or raw CSV withContent-Type: text/csv. - Engine: builds an HTML table and renders it with the same shared browser as HTML to PDF (JavaScript disabled, anti-SSRF).
- Limits: 30 requests/min per IP. Up to 5,000 rows. 1 call = 1 credit.
Options
| Option | Default | Description |
|---|---|---|
csv / data | - | Exactly one of the two. |
header | true | With object data, columns come from the union of every key. |
format | pdf | pdf / png / jpeg / webp. |
pdf_format | A4 | PDF only: A3/A4/A5/Letter/Legal/Tabloid. |
landscape | false | PDF only. |
output | json | json (base64), binary (the raw file) or url (temporary link). |
Example
curl -X POST "https://api.cofferdock.com/data-to-table" \
-H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"data":[{"name":"Ana","age":30}],"output":"binary"}' \
--output table.pdf
What you get back
By default (JSON): file as base64. Add output=binary for the raw file, or output=url for a temporary link (valid 15 minutes).