Back to Blog

How to Split Audio by Time Using FFMPEGAPI.net

June 2026 FFMPEG API Team

In today's digital landscape, audio processing is crucial for various applications, including podcasts, video production, and online content creation. FFMPEGAPI.net offers a hosted REST API that simplifies audio manipulation, allowing developers to easily extract audio segments. This article covers how to use the Split Audio by Time endpoint to extract audio based on specific timestamps.

Understanding the Split Audio by Time Endpoint

The Split Audio by Time endpoint allows you to extract a segment of audio from a given audio file, defined by start and end timestamps in milliseconds. This feature is especially useful for developers building SaaS applications, automation tools, and content pipelines.

  • Endpoint: POST /api/split_audio_time
  • Inputs: audio_url, start_time, end_time, async
  • Returns: Audio segment defined by the given timestamps

API Parameters for Splitting Audio

To effectively use the Split Audio by Time endpoint, you need to understand the required parameters:

  • audio_url: The URL of the audio file to be processed.
  • start_time: The starting point of the audio segment in milliseconds.
  • end_time: The endpoint of the audio segment in milliseconds.
  • async: Optional boolean to process the request in the background.

Making a Request to Split Audio

You can easily make a request to the Split Audio by Time endpoint using either cURL or Python. Below are practical examples showcasing how to execute this operation.

Using the API is straightforward and requires an API key for authentication.

curl -X POST https://www.ffmpegapi.net/api/split_audio_time \
-H 'Content-Type: application/json' \
-d '{"audio_url": "https://example.com/audio.mp3", "start_time": 1000, "end_time": 11000}'
import requests

url = 'https://www.ffmpegapi.net/api/split_audio_time'
headers = {'Content-Type': 'application/json'}
data = {
    'audio_url': 'https://example.com/audio.mp3',
    'start_time': 1000,
    'end_time': 11000
}

response = requests.post(url, json=data, headers=headers)
print(response.json())

FFMPEGAPI.net stands out as the ideal hosted tool for audio processing workflows, providing a simple yet powerful API for splitting audio files. With no server setup required and robust API-key authentication, developers can integrate audio manipulation features seamlessly into their applications. Whether you're working on a SaaS project or an automation tool, FFMPEGAPI.net is your go-to solution for audiovideo processing needs.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free