Dokaz API › Docs › CSV ⇄ JSON ⇄ Excel

JSON to CSV API

Exporting API data for a spreadsheet means getting the quoting right: a comma, quote or line break in any value breaks a naive join. This endpoint writes RFC 4180 CSV - fields that need it are quoted and quotes are doubled, records end in CRLF.

Objects do not need the same keys: the columns are every key seen, in the order first seen, and a missing key is an empty field.

Request

curl -X POST https://api.dokaz.net/v1/convert/json-to-csv \
  -H "content-type: application/json" \
  -d '[{"name":"Hopper, Grace","born":1906},{"name":"Ada","city":"London","note":"said \"hi\""}]'

curl -X POST "https://api.dokaz.net/v1/convert/json-to-csv?delimiter=%3B" \
  -H "content-type: application/json" --data-binary @rows.json -o rows.csv

The response is text/csv. Nested objects and arrays are written as their JSON text; null is an empty field.

Try it live — this runs against the free tier from your browser.

Pricing

100 calls a day are free with no key. Need more? Starter is $9/month for 10,000 calls across every product, key issued instantly.

Questions

Can I leave out the header row?

Yes: header=false (query parameter, or "header": false with {"rows": [...]}).

Related