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 /jobs HTTP/1.1
Host: https://api2.online-convert.com
X-Oc-Api-Key: <your API key here>
Content-Type: application/json
{
    "input": [{
        "type": "remote",
        "source": "http://cdn.online-convert.com/example-file/video/example.avi"
    }],
    "conversion": [{
        "category": "image",
        "target": "jpg",
        "options": {
            "allow_multiple_outputs": true
        }
    }]
}
curl -X POST \
  https://api2.online-convert.com/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": "http://cdn.online-convert.com/example-file/video/example.avi"
    }],
    "conversion": [{
        "category": "image",
        "target": "jpg",
        "options": {
            "allow_multiple_outputs": true
        }
    }]
}'

results matching ""

    No results matching ""