---
title: Compress Video API
slug: compress-video-api
url: https://apyhub.com/freedailypro/service/compress-video-api
provider: FreeDailyPro
tags: [video, compression, compress, file size, optimization, video processing, media]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Compress Video API

Compress videos up to 100 MB via API and set a target output size. Cut storage and bandwidth costs and speed up delivery. Try it on ApyHub.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/compress-video-api/video-compress` | What it does Compresses an uploaded video to a smaller file size and returns the compressed video a… | 10 |

## Endpoint reference

### Video: compress

`POST https://api.eu.apyhub.com/freedailypro/compress-video-api/video-compress` · 10 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | The video file. Up to 100 MB. |
| `targetPercent` | body | number | no | Between 0 and 1, exclusive: 0.5 (default) targets about half the original size. |

#### Quickstart

Compress a video by uploading the file as multipart form data.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/compress-video-api/video-compress" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/video.mp4"
```

#### What you'll get back

The compressed video as a binary file.

## About

## What it does
Video Compressor lets you send a video file and get a compressed version back. The endpoint accepts a binary `file` upload up to 100 MB, plus an optional `targetPercent` value between 0 and 1 to control the approximate output size. If you leave `targetPercent` out, the default is 0.5, which targets about half the original size.

Use it when you need to shrink uploads for faster delivery, lower storage costs, or fit videos into product workflows with size limits. You keep the compression step in your own application logic while delegating the actual file processing to a dedicated API endpoint.

The response schema is empty, so the service returns a successful result without additional documented fields. That makes it suitable for pipelines where the main requirement is to complete compression and move on to the next step.

## 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/compress-video-api
