Catalog/convert-json-csv

Convert

JSON <-> CSV API

Convert an array of JSON objects to CSV, or parse CSV into JSON objects (handles quoted fields). Answers 'convert this JSON to CSV', 'parse this CSV to JSON', 'csv to json'.

Price$0.01per request
MethodPOST
Route/v1/convert/json-csv
StatusLive
MIME typeapplication/json
Rate limit90/minute
CacheNo cache
convertjsoncsvdataparsetabular
API URLhttps://x402.hexl.dev/v1/convert/json-csv
Integration docs
Example request
{
  "data": [
    {
      "a": 1,
      "b": 2
    }
  ],
  "direction": "json-to-csv"
}
Example response
{
  "direction": "json-to-csv",
  "result": "a,b\n1,2"
}
Input schema
{
  "type": "object",
  "required": [
    "data",
    "direction"
  ],
  "properties": {
    "data": {},
    "direction": {
      "type": "string",
      "enum": [
        "json-to-csv",
        "csv-to-json"
      ]
    },
    "delimiter": {
      "type": "string",
      "default": ","
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "direction",
    "result"
  ],
  "properties": {
    "direction": {
      "type": "string"
    },
    "result": {}
  }
}