Multiple outputs instead of zip
When creating a conversion that generates more than one output file – for
example from video to images – the output will be a zip
archive
containing all the output files.
This behavior can be changed to download each
file individually. For this, the allow_multiple_outputs
option has
to be specified.
After sending this request, the job information received via callback or polling the status, you
will receive a long list of elements inside the output
section.
In the example mentioned above, this equals one output per frame in the
video.
POST /v2/jobs HTTP/1.1
Host: https://api.api2convert.com
X-Oc-Api-Key: <your API key here>
Content-Type: application/json
{
"input": [{
"type": "remote",
"source": "https://example-files.online-convert.com/video/example.avi"
}],
"conversion": [{
"category": "image",
"target": "jpg",
"options": {
"allow_multiple_outputs": true
}
}]
}
curl -X POST \
https://api.api2convert.com/v2/jobs \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'x-oc-api-key: <your API key here>' \
-d '{
"input": [{
"type": "remote",
"source": "https://example-files.online-convert.com/video/example.avi"
}],
"conversion": [{
"category": "image",
"target": "jpg",
"options": {
"allow_multiple_outputs": true
}
}]
}'