---
title: Compress Video File API
slug: video-compression
url: https://apyverse.com/apyhub/service/video-compression
provider: ApyHub
categories: [File Conversion, File Manipulation]
tags: [video-compression, video-optimization, file-compression, media-processing, binary-download]
auth: api_key
---

# Compress Video File API

Compress uploaded videos or video URLs with adjustable strength. Get a smaller binary file or a time-limited signed download link.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/compress/video/file` | What it does Compresses an uploaded video file and returns the compressed video as a binary downloa… | 550 |
| POST | `/compress/video/file/url` | What it does Compresses an uploaded video and returns a time-limited signed URL for downloading the… | 550 |
| POST | `/compress/video/url/file` | What it does Compresses a video fetched from a URL and returns the compressed file as binary conten… | 550 |
| POST | `/compress/video/url` | What it does Compresses a video from a source URL and returns a time-limited signed download URL fo… | 550 |

## About

## What it does
Video Compression reduces the size of a video by taking either an uploaded file or a video URL and returning a compressed result. You control the compression strength with `compression_percentage`, from 0 to 100, so you can trade off file size against output quality based on your use case.

Use `POST /multi-part/download` when you want to upload a video file and receive the compressed video back as binary data. Supported input formats include `.mp4`, `.mkv`, `.avi`, `.mov`, `.flv`, `.3gp`, and `.webm`. Use `POST /multi-part/link` if you prefer the compressed result as a time-limited signed URL instead of a direct file download.

If your source video is already hosted, `POST /url/download` and `POST /url/link` let you send a `video_url` instead of uploading the file. The download variants return binary output, while the link variants return an object with a `data` field containing a signed URI for retrieval.

Video Compression is a good fit for upload pipelines, mobile delivery, storage optimisation, and bandwidth-sensitive workflows where smaller video files are easier to store, transfer, or process.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/video-compression
