JSON to CSV
JSON to CSV is an API that converts an array of JSON objects into a CSV, with columns taken from the first object's keys. It quotes only where needed (if a value contains a comma or a quote), not every field.
How it works
You send data (an array of objects, all the same shape) and get back the CSV text, ready to download or save.
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/json-to-csv - Send Headers:
x-api-key= your key,Content-Type=application/json - Send Body (JSON):
{ "data": [{"name":"Ana","age":30},{"name":"Luis","age":25}] }
Options
| Option | Default | What it does |
|---|---|---|
data | - | Required. Array of objects, all with the same keys. |
header | true | Include the column-name row. |
delimiter | , | A single character. |
API overview
- Endpoint:
POST https://api.cofferdock.com/json-to-csv - Auth:
x-api-key: YOUR_KEY. - Input: JSON ONLY,
{ "data": [...] }. - Engine: csv-stringify, RFC 4180.
- Limits: 30 requests/min per IP. Up to 100,000 rows. 1 call = 1 credit.
Example
curl -X POST "https://api.cofferdock.com/json-to-csv" \
-H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"data":[{"name":"Ana","age":30}]}'
Response
{ "success": true, "csv": "name,age\nAna,30\n",
"meta": { "rows": 1, "used": 12, "remaining": 488 } }
What you get back
csv, the ready-to-use text. With output=csv, the raw CSV as the response body (Content-Type: text/csv), no JSON wrapper.