Convert to XLS
Excel 97-2003 Workbook. The API converts 11 formats to XLS. These are the options, by input format.
curl https://api.switchfile.io/v1/convert \
-H "Authorization: Bearer $SWITCHFILE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/input.dif","to":"xls"}'const res = await fetch("https://api.switchfile.io/v1/convert", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SWITCHFILE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"url":"https://example.com/input.dif","to":"xls"}),
});
console.log(await res.json());From 9 formats
passwordstringdefault: not setPassword to open the file.
From CSV
delimiterstringdefault: ,Field separator of the input file: one character or comma, semicolon, tab, pipe, space.
encodingstringdefault: utf-8Text encoding of the input file, for example utf-8, windows-1252, iso-8859-1 or utf-16.
passwordstringdefault: not setPassword to open the file.
From TSV
delimiterstringdefault: tabField separator of the input file: one character or comma, semicolon, tab, pipe, space.
encodingstringdefault: utf-8Text encoding of the input file, for example utf-8, windows-1252, iso-8859-1 or utf-16.
passwordstringdefault: not setPassword to open the file.