Docs / Tools / csv-to-json

CSV to JSON API

Convert a headered CSV into a JSON array of objects.

Web UI: CSV to JSON

Authentication

Bearer API key required on every request.

Request

POST https://api.omnicap.app/v1/csv-to-json

Content-Type: multipart/form-data

  • file (file, required)

    CSV with a header row.

  • pretty (string)

    Set to 0 or false for compact JSON (default pretty).

Response

Mode: sync — binary file body

Headers: X-Page-Count

Examples

curl

curl -X POST "https://api.omnicap.app/v1/csv-to-json" \
  -H "Authorization: Bearer $OMNICAP_API_KEY" \
  -F "file=@/path/to/document.pdf"

Node.js (fetch)

const form = new FormData();
form.append("file", fileBlob, "document.pdf");

const res = await fetch("https://api.omnicap.app/v1/csv-to-json", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.OMNICAP_API_KEY}` },
  body: form,
});
const out = await res.arrayBuffer();

Billing

1 billable unit(s) per successful call.

Changelog

  • 2026-10-28: Initial public release.