The API for converting any file to DPG.
On the left you can see all available conversion options that you use as options section of the JSON.
Arguments |
|
---|---|
allow_multiple_outputs
Type: boolean Default: False |
If the conversion produces more than one output file, by default all of them are compressed in just one file. Set this option to true if you want a download link for each file. |
remove_audio
Type: boolean Default: False |
Disable the audio track |
version
Type: string Enum: 1 2 3 4 Default: 4 |
DPG Version |
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/mp4/example_small.mp4"
}],
"conversion": [{
"category": "video",
"target": "dpg",
"options": {
<conversion options here>
}
}]
}