---
title: Trim Audio by Start and End Time API
slug: trim-audio-by-start-and-end-time-api
url: https://apyhub.com/freedailypro/service/trim-audio-by-start-and-end-time-api
provider: FreeDailyPro
tags: [audio, trim audio, cut audio, audio trimmer, audio clip, audio editing, audio processing]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Trim Audio by Start and End Time API

Cut a segment out of an audio file by start and end time in seconds. Upload up to 30 MB and get the trimmed audio back as a binary file.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/trim-audio-by-start-and-end-time-api/audio-trim` | What it does Trims an uploaded audio file between the specified start and end times, and returns th… | 10 |

## Endpoint reference

### Trim audio

`POST https://api.eu.apyhub.com/freedailypro/trim-audio-by-start-and-end-time-api/audio-trim` · 10 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | The audio file. Up to 30 MB. |
| `endSeconds` | body | number | yes | End time in seconds |
| `startSeconds` | body | number | yes | Start time in seconds |

#### Quickstart

Trim an audio file by sending the file plus the start and end times in seconds.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/trim-audio-by-start-and-end-time-api/audio-trim" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/audio.mp3" \
  -F "startSeconds=10" \
  -F "endSeconds=30"
```

#### What you'll get back

Returns a binary file response containing the trimmed audio.

## About

## What it does
Audio Trimmer cuts an audio file to the segment you specify. Send a binary audio file plus `startSeconds` and `endSeconds`, and you get back a trimmed audio file as binary output.

Use it when you need to clip interviews, podcasts, voice notes, or call recordings to a precise time range before storing, sharing, or processing them further. The endpoint accepts audio files up to 30 MB, making it suitable for common upload flows and batch preprocessing jobs.

Because the response is just the trimmed audio file, it fits cleanly into pipelines that hand the result to transcription, review, or media-export steps. If your product needs to  isolate a quote, or extract a segment for downstream analysis, this endpoint keeps the interaction simple: file in, clipped file out.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/freedailypro/service/trim-audio-by-start-and-end-time-api
