Public APIs
Extract Audio from Video API favicon

Extract Audio from Video API

Video

This API helps you extract audio from any video at scale.

Extract Audio from Video API's website screenshot

About Extract Audio from Video API

The Video Audio Extractor API takes a video source, either a URL or an uploaded file, and submits an asynchronous job to extract its audio track. Submitting to the URL-based endpoint or the file-upload endpoint returns a job_id, which is then polled via a status endpoint until the extraction completes and returns a link to the output audio file.

The extraction window is configurable through start_time, duration, and full_audio parameters: by default the service extracts a 2-second clip, but full_audio can be set to extract from start_time through to the end of the file. Output can be produced in mp3, wav, aac, ogg, flac, wma, or ac3 format, with mp3 as the default. Pending and failed jobs return a human-readable status message. File uploads are capped at 100MB per request.

The API is suited for pulling a soundtrack from a video clip, converting video assets into audio for downstream processing, or generating short audio samples from larger files for review and testing, as part of automated media workflows. It is hosted on ApyHub and consists of three endpoints: two submission endpoints (POST) and one job-status endpoint (GET), with a recommended polling interval of at most once per second.

Key features

  • Extracts audio from a video URL or an uploaded video file via async job
  • Outputs to mp3, wav, aac, ogg, flac, wma, or ac3
  • Controls extraction window with start_time, duration, and full_audio
  • Polls job status via GET /jobs/:job_id with human-readable status messages
  • Supports multipart file uploads up to 100MB per request

Frequently asked questions

How does the API return the extracted audio?

You submit a job via /url-to-json or /file-to-json and get a job_id, then poll GET /jobs/:job_id until it reports success, which returns a url to the extracted audio file.

What audio formats are supported?

Output can be mp3, wav, aac, ogg, flac, wma, or ac3, with mp3 as the default.

Is there a file size limit for uploads?

Yes, the file-to-json endpoint allows a maximum of 100MB total per request across all files combined.

How often should I poll for job status?

Poll at most once per second, since faster polling counts against your rate limit without finishing the job sooner.

Can I extract just a portion of the video's audio?

Yes, you can control the extraction window with start_time and duration, or set full_audio to true to extract from start_time to the end of the file; by default it extracts a 2-second clip.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product