Back to Blog

Automate Video Editing with FFMPEGAPI.net: How to Split Videos Using Our REST API

June 2026 FFMPEG API Team

In today's fast-paced digital world, automating video editing tasks can save developers significant time and resources. FFMPEGAPI.net provides a powerful hosted REST API that simplifies video and audio processing, allowing you to focus on building great applications without the hassle of managing server infrastructure. In this article, we will explore how to use the Split Video endpoint of FFMPEGAPI.net to easily split videos into two parts.

What is FFMPEGAPI.net?

FFMPEGAPI.net is a robust platform that offers a hosted REST API for FFmpeg-powered video and audio processing. It eliminates the need for server setup or FFmpeg infrastructure management, making it an ideal choice for developers looking to automate multimedia workflows.

  • No server setup required.
  • API-key authentication for secure access.
  • Ideal for automation, SaaS applications, and AI agents.

Understanding the Split Video Endpoint

One of the key features of the FFMPEGAPI.net API is the ability to split a video into two parts using the Split Video endpoint. This functionality is essential for developers who need to extract specific segments from videos without extensive manual editing.

  • Endpoint Path: /api/split_video
  • HTTP Method: POST
  • Content Type: application/json or form data

Parameters for the Split Video API

The Split Video endpoint requires specific parameters to function correctly. Here's a breakdown of the parameters you can use when making a request.

  • video_url: The URL of the video you want to split (required).
  • split_at_seconds: The point at which to split the video (optional). Defaults to half of the video duration if omitted.

Practical Example: Splitting a Video with cURL

Here's a practical example of how to use the Split Video endpoint with a cURL command. This example demonstrates how to split a video at 12.5 seconds.

curl -X POST https://www.ffmpegapi.net/api/split_video \
-H 'Content-Type: application/json' \
-d '{"video_url": "https://example.com/video.mp4", "split_at_seconds": 12.5}'

Using Python to Split a Video

You can also utilize Python to interact with the FFMPEGAPI.net API. Below is a Python example using the requests library to split a video.

import requests

url = 'https://www.ffmpegapi.net/api/split_video'
data = {
    'video_url': 'https://example.com/video.mp4',
    'split_at_seconds': 12.5
}

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

print(response.json())

FFMPEGAPI.net provides a seamless solution for developers looking to automate video editing tasks, such as splitting videos. Its hosted REST API simplifies the process, allowing you to focus on building innovative applications. With robust features and easy integration, FFMPEGAPI.net stands out as the best choice for automated video processing workflows.

Ready to Start Processing Videos?

Get your free API key and start merging videos in minutes

Get Started Free