Convert anything to MP3

The API for converting any file to MP3.
On the left you can see all available conversion options that you use as 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.
audio_bitrate
Type: integer
Enum: 6 8 12 16 24 32 48 56 64 96 112 128 160 192 224 256 320
Audio bitrate in kbps.
audio_vbr
Type: integer
Enum: 65 85 100 115 130 165 175 190 225 245
If selected, a variable bitrate conversion is processed. The values are the average bitrate in kbit/s.
channels
Type: string
Enum: stereo mono
Audio channels.
download_password
Type: string
Pattern: ^[ -~]{0,1000}$
Example: secret_password
A password to protect the download. To download the file send the password in the x-oc-download-password header or set a cookie named x-oc-download-password. The value contains a comma separated list of passwords.
end
Type: string
Pattern: ^\d\d:\d\d:\d\d$
Sets the end point of the part of the video you want to keep. The format is HH:MM:SS. HH = hour, MM = minutes, SS = seconds. Example 00:05:35
frequency
Type: integer
Enum: 8000 11025 16000 22050 24000 32000 44100 48000
Audio frequency in Hz.
normalize
Type: boolean
Default: False
Normalize the audio volume.
preset
Type: string
Pattern: ^[\w\W]{1,255}$
Predefined options
remove_coverart
Type: boolean
Default: False
Remove the cover art image
start
Type: string
Pattern: ^\d\d:\d\d:\d\d$
Sets the start point of the part of the video you want to keep. The format is HH:MM:SS. HH = hour, MM = minutes, SS = seconds. Example 00:02:23

Example JSON

POST /jobs HTTP/1.1
Host: https://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/avi/example.avi"
    }],
    "conversion": [{
        "category": "image",
        "target": "jpg",
        "options": {
        <conversion options here>
        }
    }]
}