About this endpoint
What it does
Extracts audio from a video file provided by URL and returns the resulting audio as a binary download. You can optionally control the start time, duration, whether to extract the full audio track, and the output format.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| video_url | String | Yes | Video URL to extract audio from. Must be a URI. |
| duration | String | No | Number of seconds to extract. Default: 2. Ignored when full_audio is true. |
| full_audio | Boolean | No | When true, extracts the full audio track. Default: false. |
| start_time | String | No | Seek offset in seconds. Default: 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 is a single binary string payload, not a JSON object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary | String | Yes | The extracted audio file content returned as binary data. |