Skip to content
Browse all functions

Cut Audio File

audiovideo/cutaudiofile

cutaudiofile (Cut Audio File) is a 1001fx API function in the group Audio & video: POST https://api.1001fx.com/audiovideo/cutaudiofile, 3 credits per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

3 credits per callHTTP APIn8nMake

Cuts an MP3 from a file or URL: starting at a given second, the given duration (in seconds) is cut out.

Try it in the 1001fx app

Run cutaudiofile in your browser with your API key – fill the form, click Run and get the answer or the file.

cutaudiofile in the 1001fx app: the form with example values
Cut Audio File in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/audiovideo/cutaudiofile
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • urlstringoptional

    The URL of the media file. Has to get acce

    Example:
    https://audio.podigee-cdn.net/1049952-m-7ec68c0d77c0ba7e5cd3e115acae81a6.mp3?source=feed
  • filefileoptional

    Media file to be cut.

  • startnumberrequired

    Start of cut in seconds.

    Default:
    0
    Example:
    2
  • durationnumberoptional

    Duration in seconds. Default 60s

    Example:
    5

Examples

Cut an audio file from a URL

Cuts an audio file from url

Input

Expects one audio file as urö
{
  "url": "https://api.1001fx.com/testdata/transcribe.mp3",
  "start": 2,
  "duration": 5
}

Output · HTTP 200

Result is the cut audio file.
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/audiovideo/cutaudiofile' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'url=https://api.1001fx.com/testdata/transcribe.mp3' \
  -F 'start=2' \
  -F 'duration=5'

Audio file to cut

Cuts an audio file from given file

Input

Expects one audio file named as file parameter: file
{
  "start": 2,
  "duration": 5,
  "files": [
    {
      "name": "transcribe.mp3",
      "type": "",
      "path": "testdata/transcribe.mp3"
    }
  ]
}

Output · HTTP 200

Result is the cut audio file.
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/audiovideo/cutaudiofile' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -F 'file=@transcribe.mp3' \
  -F 'start=2' \
  -F 'duration=5'

Try cutaudiofile now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.018.01.2023created
Ask 1001fx