Convert to ZIP
ZIP Archive. The API converts 17 formats to ZIP. This target has no options.
curl https://api.switchfile.io/v1/convert \
-H "Authorization: Bearer $SWITCHFILE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/input.7z","to":"zip"}'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.7z","to":"zip"}),
});
console.log(await res.json());From 17 formats
No options. The file is converted with the usual settings for ZIP.