---
title: Compress Video File API
slug: compress-video
url: https://apyhub.com/apyhub/service/compress-video
provider: ApyHub
categories: [File Conversion, File Manipulation]
auth: api_key
---

# Compress Video File API

Compress videos from an upload or URL and return a file or signed download link. Set compression percentage to shrink media for storage or delivery.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/compress/video/file` | What it does Uploads a video file and returns the compressed video as a binary file in the response… | 550 |
| POST | `/compress/video/file/url` | What it does Uploads a video file and returns a time-limited signed URL for downloading the compres… | 550 |
| POST | `/compress/video/url/file` | What it does Compresses a video from a provided URL and returns the compressed file as binary conte… | 550 |
| POST | `/compress/video/url` | What it does Compresses a video from a provided URL and returns a time-limited signed download URL… | 550 |

## About

## What it does
Video Compressor reduces the size of a video file by re-encoding it at a chosen compression percentage. Send a video and get back either a compressed file or a time-limited download link, depending on the endpoint you use.

Use `video` for direct uploads or `video_url` when the source already lives at a public URL. Both flows accept `compression_percentage`, with values from 0 to 100; higher values produce smaller files at lower quality. Supported upload formats include `.mp4`, `.mkv`, `.avi`, `.mov`, `.flv`, `.3gp`, and `.webm`.

Choose the download endpoint when you want the compressed video returned as binary data immediately. Choose the link endpoint when you want a signed URL in the `data` field that your app can fetch later. That makes Video Compressor useful for storage optimization, email attachment trimming, upload-size limits, and preparing video assets for downstream delivery.

Keep the control surface simple: one input video, one compression setting, and one compressed output. If you are building media workflows, this is the kind of tool you can drop in before storage, sharing, or publishing steps without adding custom transcoding logic.

## Usage

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