About this endpoint
What it does
Uploads a video file and returns the extracted audio as a binary file download. You can control the extraction length, start offset, whether to extract the full audio track, and the output audio format.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| video | String | Yes | Video file to process. Supported formats: .mp4, .mkv, .avi, .mov, .flv, .3gp, .webm. |
| duration | Integer | No | Number of seconds to extract. Default: 2. Minimum: 0. Ignored when full_audio is true. |
| full_audio | ENUM | No | Whether to extract the complete audio track. Allowed values: true, false, 1, 0. Default: false. |
| start_time | Integer | No | Seek offset in seconds. Default: 0. Minimum: 0. |
| output_format | ENUM | No | Output audio format. Allowed values: mp3, wav, aac, ogg, flac, wma, ac3. Default: mp3. |
Response
Returns a binary file download containing the extracted audio. The success response body is a single binary string, not a JSON object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary | String | Yes | The extracted audio file content returned by the endpoint. |
Notes
This endpoint returns raw binary output rather than JSON, so clients should handle the response as a file download or binary stream.