Convert anything to JSON

The API for converting any file to JSON.
On the left you can see all available conversion options that you use as as options section of the JSON.

Arguments

keys_format
Type: string
Enum: original capital_first snake_lowercase snake_uppercase lowercase_nospaces lowercase_with_spaces uppercase_nospaces uppercase_with_spaces
Default: snake_lowercase
Required: False
The returned metadata keys' format. (E.g. Color Space, color_space, COLOR_SPACE, colorspace, color space, COLORSPACE, COLOR SPACE)
output_mode
Type: string
Enum: basic expert
Default: basic
Required: False
Returns a more or less detailed output
type
Type: string
Enum: document image video audio
Required: False

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>
        }
    }]
}