CSV to JSON
CSV to JSON is an API that converts a CSV into an array of JSON objects, using the first row as field names. It genuinely understands quoting: a field like "Smith, Anna" won't split into two columns.
How it works
You send the CSV (raw or inside a JSON body) and get the array back. With header:false, each row comes out as an array of values instead of a named object.
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/csv-to-json - Send Headers:
x-api-key= your key,Content-Type=application/json - Send Body (JSON):
{ "csv": "name,age\nAna,30\nLuis,25" }
Options
| Option | Default | What it does |
|---|---|---|
csv | - | Required. The CSV text. |
header | true | First row as field names. With false, rows as arrays. |
delimiter | , | A single character, e.g. ; or tab. |
API overview
- Endpoint:
POST https://api.cofferdock.com/csv-to-json - Auth:
x-api-key: YOUR_KEY. - Input: JSON
{ "csv": "..." }, or raw CSV withContent-Type: text/csv. - Engine: csv-parse, real RFC 4180.
- Limits: 30 requests/min per IP. Up to 5MB of text. 1 call = 1 credit.
Example
curl -X POST "https://api.cofferdock.com/csv-to-json" \
-H "x-api-key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"csv":"name,age\nAna,30\nLuis,25"}'
Response
{ "success": true, "data": [{"name":"Ana","age":"30"},{"name":"Luis","age":"25"}],
"meta": { "rows": 2, "used": 12, "remaining": 488 } }
What you get back
data, the resulting array (every value comes back as text: converting numbers/dates is on you). With output=raw, the array directly as the response body, no wrapper.