Convert CSV to CSV using an API
Use our API to convert your CSV data to CSV
Convert
to
POST
https://dataconverter.io/api/v1/convert/csv-to-csv
After signing up and verifying your email, you will be able to create an API Token in your account settings.
Headers
-
Authorization (required)
Bearer <<YOUR_API_TOKEN_HERE>>
Request Body — (multipart/form-data)
-
file (required)
string <binary>
-
uploadSettings
object
{ "fieldSeparator" : ",", "allowMultiLineText" : true, "allowQuoteInField" : false, "fieldNamesInFirstRow" : true, "startingQuote" : "\"", "endingQuote" : "\"", "lineSeparators" : "\\n,\\r\\n,\\r", "trimFields" : true, "skipEmptyRows" : false, "charset" : "UTF-8" }
-
downloadSettings
object
{ "fieldSeparator" : ",", "fieldNamesInFirstRow" : true, "startingQuote" : "\"", "endingQuote" : "\"", "newLine" : "\\n", "nullValuePolicy" : "EMPTY_STRING", "emptyStringValuePolicy" : "QUOTED_EMPTY_STRING", "forceQuote" : false, "charset" : "UTF-8" }
Request Sample
curl -X POST "https://dataconverter.io/api/v1/convert/csv-to-csv" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-F "file=@data.csv;type=text/csv" \
-F "uploadSettings={\"fieldSeparator\":\",\",\"allowMultiLineText\":true,\"allowQuoteInField\":false,\"fieldNamesInFirstRow\":true,\"startingQuote\":\"\\\"\",\"endingQuote\":\"\\\"\",\"lineSeparators\":\"\\\\n,\\\\r\\\\n,\\\\r\",\"trimFields\":true,\"skipEmptyRows\":false,\"charset\":\"UTF-8\"};type=application/json" \
-F "downloadSettings={\"fieldSeparator\":\",\",\"fieldNamesInFirstRow\":true,\"startingQuote\":\"\\\"\",\"endingQuote\":\"\\\"\",\"newLine\":\"\\\\n\",\"nullValuePolicy\":\"EMPTY_STRING\",\"emptyStringValuePolicy\":\"QUOTED_EMPTY_STRING\",\"forceQuote\":false,\"charset\":\"UTF-8\"};type=application/json" \
--output converted.csv