# Viral Clips Downloader - Most Replayed Moments from Any Video (`mrdoe/viral-clips-downloader`) Actor

Turn one video link into its top viral clips. Finds the most replayed moments and downloads each as a separate MP4, with vertical 9:16 and square options for Shorts, Reels and TikTok. 5 clips by default, up to 30. No login.

- **URL**: https://apify.com/mrdoe/viral-clips-downloader.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Categories:** Videos, Social media, Automation
- **Features:** Limited permissions
- **Stats:** 4 total users, 2 monthly users, 35.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

![Viral Clips Downloader - Most Replayed Moments from Any Video - Viral clips from one video: most replayed moments as MP4 files](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/viral-clips-downloader--hero.png)

### What does Viral Clips Downloader - Most Replayed Moments from Any Video do?

Viral Clips Downloader takes the link of one video and turns it into its best short clips. It finds the moments viewers replay the most, or the loudest moments when a video has no replay data, and downloads only those parts as separate MP4 files. You get 2 clips of 20 seconds by default (each clip is billed separately, so the default run stays cheap to try) and can ask for up to 30 clips of 5 to 120 seconds. Each clip comes with its rank, start time, a score, a direct download link and a link that opens the original video at that moment. Choose 360p (default) to 1080p, and crop clips to vertical 9:16 or square 1:1 for YouTube Shorts, Instagram Reels, TikTok and social feeds.

### Why use Viral Clips Downloader - Most Replayed Moments from Any Video?

- Get the best moments of a long video in minutes instead of scrubbing through it.
- Clips are picked from real viewer behaviour: the most replayed parts of the video.
- Ready-made vertical 9:16 and square 1:1 clips for Shorts, Reels, TikTok and feeds.
- Only the chosen seconds are downloaded, so runs are fast and files are small.
- Every clip has a rank, a score, a timestamp link and the details of the source video, including its license.

### What makes this different

Clips are chosen from what viewers actually replay, spaced across the video so you get different moments instead of five neighbouring seconds, and only those seconds are downloaded.

### How it works

![Viral Clips Downloader - Most Replayed Moments from Any Video workflow: your input, collection, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/viral-clips-downloader--how-it-works.png)

1. **Your input** — paste the link of one video and choose how many clips you want.
2. **The Actor collects it** — the Actor finds the strongest moments and downloads each one as an MP4.
3. **Your output** — you get one row per clip with a download link, start time, score and details of the video.

### What data can you extract?

The dataset has 29 fields per row:

| Field | Type | Description |
|---|---|---|
| `rank` | integer | Rank of the clip; 1 is the best moment. |
| `clipTitle` | string | Title of the clip: the video title, the clip number and where it starts. |
| `startSeconds` | integer | Start of the clip in seconds from the beginning of the video. |
| `endSeconds` | integer | End of the clip in seconds. |
| `durationSeconds` | integer | Length of the clip in seconds. |
| `startTimestamp` | string | Start of the clip as m:ss or h:mm:ss. |
| `timestampLink` | string | Link that opens the original video at the start of the clip. |
| `score` | number | How strong the moment is, from 0 to 100; null for evenly spaced clips. |
| `selectionMethod` | string | How the moment was chosen: most_replayed, loudest_moments or evenly_spaced. |
| `downloadUrl` | string | Direct link to the MP4 file of the clip. |
| `storageKey` | string | Key of the clip in the run storage. |
| `fileSizeMb` | number | Size of the clip file in megabytes. |
| `resolution` | string | Width and height of the clip in pixels. |
| `aspectRatio` | string | original, vertical or square. |
| `format` | string | File format of the clip, mp4. |
| `videoId` | string | ID of the source video. |
| `videoTitle` | string | Title of the source video. |
| `videoUrl` | string | Address of the source video. |
| `channel` | string | Channel of the source video. |
| `channelUrl` | string | Channel address. |
| `videoDurationSeconds` | integer | Length of the source video in seconds. |
| `viewCount` | integer | Views of the source video. |
| `likeCount` | integer | Likes of the source video. |
| `uploadDate` | string | Upload date of the source video, YYYYMMDD. |
| `videoLicense` | string | License of the source video when it states one, for example Creative Commons Attribution. |
| `thumbnail` | string | Thumbnail of the source video. |
| `status` | string | SUCCESS or FAILED. |
| `error` | string | Why a clip failed; null otherwise. |
| `createdAt` | string | When the clip was created, ISO 8601 UTC. |

### How to use Viral Clips Downloader - Most Replayed Moments from Any Video

![Viral Clips Downloader - Most Replayed Moments from Any Video input form](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/viral-clips-downloader--input.png)

1. Open the Actor and go to the **Input** tab.
2. Paste one video link into **Video URL**, keep the default of 2 clips, and run the Actor.
3. Optionally set filters and a **Max results** limit.
4. Click **Start**. A default run finishes in under a minute.
5. Open the **Output** tab, then download the dataset or connect it to your tools.

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `videoUrl` | string | Yes | `"https://www.youtube.com/watch?v=aqz-KE-bpKQ"` | The link of one video, for example a YouTube video. The default is an open-licensed short film so the Actor works out of the box. Only use videos you own, that are openly licensed, or that you have permission to clip. |
| `clipCount` | integer | No | `2` | How many clips to create from the video, from 1 to 30. The best moments come first. Short videos may fit fewer clips. Each clip is billed separately, so the default is kept low - raise it once you've seen a sample result. |
| `clipDurationSeconds` | integer | No | `20` | Length of every clip in seconds, from 5 to 120. The default of 20 seconds suits Shorts, Reels and TikTok; shorter clips download faster. |
| `strategy` | string | No | `"auto"` | Automatic uses the most replayed moments when the video has them, otherwise the loudest moments. Evenly spaced takes clips at regular intervals. |
| `quality` | string | No | `"360p"` | Maximum height of the clips. 360p is the smallest and fastest. Higher quality gives sharper clips and larger files. |
| `aspectRatio` | string | No | `"original"` | Original keeps the video as it is. Vertical (9:16) and square (1:1) crop from the centre of the frame for Shorts, Reels, TikTok and feeds. |
| `proxyConfiguration` | object | No | `{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"]}` | Video sites often block cloud servers. Residential proxy is recommended and is turned on by default. |

### Output Data

![Viral Clips Downloader - Most Replayed Moments from Any Video dataset table](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/viral-clips-downloader--output.png)

`rank` 1 is the strongest moment. `score` is from 0 to 100 and is empty for evenly spaced clips. `downloadUrl` is the MP4 file; `timestampLink` opens the original video at the start of the clip. `videoLicense` shows the license the video states, for example Creative Commons. Fields that do not apply are `null`.

![Viral Clips Downloader - Most Replayed Moments from Any Video field map of one record](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/viral-clips-downloader--fields.png)

A real dataset item:

```json
{
  "rank": 1,
  "clipTitle": "Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film - clip 1 (10:15)",
  "startSeconds": 615,
  "endSeconds": 635,
  "durationSeconds": 20,
  "startTimestamp": "10:15",
  "timestampLink": "https://www.youtube.com/watch?v=aqz-KE-bpKQ&t=615s",
  "score": 94,
  "selectionMethod": "most_replayed",
  "downloadUrl": "https://api.apify.com/v2/key-value-stores/Vh8uP3xQ2mKZaRf9N/records/clip-aqz-KE-bpKQ-01-615s.mp4",
  "storageKey": "clip-aqz-KE-bpKQ-01-615s.mp4",
  "fileSizeMb": 0.7,
  "resolution": "640x360",
  "aspectRatio": "original",
  "format": "mp4",
  "videoId": "aqz-KE-bpKQ",
  "videoTitle": "Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film",
  "videoUrl": "https://www.youtube.com/watch?v=aqz-KE-bpKQ",
  "channel": "Blender",
  "channelUrl": "https://www.youtube.com/channel/UCSMOQeBJ2RAnuFungnQOxLg",
  "videoDurationSeconds": 635,
  "viewCount": 23433624,
  "likeCount": 109864,
  "uploadDate": "20141110",
  "videoLicense": "Creative Commons Attribution license (reuse allowed)",
  "thumbnail": "https://i.ytimg.com/vi_webp/aqz-KE-bpKQ/maxresdefault.webp",
  "status": "SUCCESS",
  "error": null,
  "createdAt": "2026-09-20T18:33:35.863931+00:00"
}
```

### Usage Examples

#### 2 viral clips (default)

```json
{
  "videoUrl": "https://www.youtube.com/watch?v=aqz-KE-bpKQ"
}
```

#### 10 vertical clips for Shorts and Reels

```json
{
  "videoUrl": "https://www.youtube.com/watch?v=R6MlUcmOul8",
  "clipCount": 10,
  "clipDurationSeconds": 30,
  "aspectRatio": "vertical",
  "quality": "720p"
}
```

#### Loudest moments of a video

```json
{
  "videoUrl": "https://www.youtube.com/watch?v=SkVqJ1SGeL0",
  "strategy": "loudest_moments",
  "clipCount": 5,
  "clipDurationSeconds": 20
}
```

### Tips for Best Results

- Keep clips between 15 and 60 seconds for Shorts, Reels and TikTok.
- Choose Vertical 9:16 for phone-first platforms and Square 1:1 for feed posts.
- Start with the default 360p; use 480p, 720p or 1080p when you need sharper clips.
- Use Most replayed moments for popular videos and Loudest moments for videos with few views.
- Only clip videos you own, that are openly licensed, or that you have permission to use.

### Known Limitations

- The most replayed data exists only for videos with enough views; other videos fall back to the loudest moments.
- Very short videos fit fewer clips; the Actor tells you how many fit.
- Age-restricted, private and live videos cannot be clipped.
- Video sites often block cloud servers, so a residential proxy is used by default.
- Vertical and square clips are cropped from the centre of the frame; there is no face tracking.
- You are responsible for having the right to download and reuse the video.
- Raise the Actor memory to 2048 MB or more for 720p and 1080p clips.

### Integrations

Run it from the Apify API, on a schedule, or from a webhook. Send results straight to Google Sheets, Make, Zapier, Slack or your own database with Apify's built-in integrations.

### Export Formats

Download the dataset as JSON, CSV, Excel, XML, HTML table or RSS from the **Output** tab or the API.

### Frequently Asked Questions

#### How do I make viral clips from a long video?

Paste the video link, keep 2 clips of 20 seconds and run the Actor. It finds the most replayed moments and gives you one MP4 per moment.

#### What are the most replayed moments?

They are the parts of a video that viewers watch again and again. They are usually the funniest, most exciting or most useful moments, which makes them good clips.

#### Can I make vertical clips for YouTube Shorts, Reels and TikTok?

Yes. Set Frame shape to Vertical 9:16 and the clips are cropped from the centre of the frame. Square 1:1 is also available.

#### How many clips can I get?

2 by default, to keep a first try cheap. You can raise it to 30 clips per run, each 5 to 120 seconds long.

#### What if a video has no most replayed data?

The Actor uses the loudest moments instead, or spaces the clips evenly if you choose that.

#### Which quality can I choose?

360p, 480p, 720p or 1080p. 360p is the default and the fastest.

#### Am I allowed to download any video?

Only videos you own, that are openly licensed, or that you have permission to use. Every row shows the license the video states.

#### Do I need an account or login?

No. You only need the link of a public video. No account, cookies or API key.

#### Am I charged for failed runs or empty results?

A small run fee applies once per run to cover reading the video, even if every clip then fails - that part of the cost is real whether or not a clip comes out. Beyond that, you are only charged per clip for clips that actually succeed and get written to the dataset; a failed clip costs nothing on top of the run fee.

#### Can I run it on a schedule?

Yes. Create a Task with your input and add a schedule in Apify Console. With monitor mode on, each scheduled run returns only what changed since the previous one.

### Support

Questions or a missing field? Open an issue from the **Issues** tab on this Actor's page and it will be looked at.

### Legal / Responsible Use

Use this Actor only for videos you own, videos with an open license such as Creative Commons, or videos you have permission to clip. You are responsible for following the terms of the video site and copyright law, including attribution when a license requires it. Do not use it to copy other creators' work without permission. The Actor is not affiliated with any video platform.

# Actor input Schema

## `videoUrl` (type: `string`):

The link of one video, for example a YouTube video. The default is an open-licensed short film so the Actor works out of the box. Only use videos you own, that are openly licensed, or that you have permission to clip.

## `clipCount` (type: `integer`):

How many clips to create from the video, from 1 to 30. The best moments come first. Short videos may fit fewer clips. Kept low by default since each clip is billed separately - raise it once you've seen a sample result.

## `clipDurationSeconds` (type: `integer`):

Length of every clip in seconds, from 5 to 120. The default of 20 seconds suits Shorts, Reels and TikTok; shorter clips download faster.

## `strategy` (type: `string`):

Automatic uses the most replayed moments when the video has them, otherwise the loudest moments. Evenly spaced takes clips at regular intervals.

## `quality` (type: `string`):

Maximum height of the clips. 360p is the smallest and fastest. Higher quality gives sharper clips and larger files.

## `aspectRatio` (type: `string`):

Original keeps the video as it is. Vertical (9:16) and square (1:1) crop from the centre of the frame for Shorts, Reels, TikTok and feeds.

## `proxyConfiguration` (type: `object`):

Video sites often block cloud servers. Residential proxy is recommended and is turned on by default.

## Actor input object example

```json
{
  "videoUrl": "https://www.youtube.com/watch?v=aqz-KE-bpKQ",
  "clipCount": 2,
  "clipDurationSeconds": 20,
  "strategy": "auto",
  "quality": "360p",
  "aspectRatio": "original",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "videoUrl": "https://www.youtube.com/watch?v=aqz-KE-bpKQ",
    "clipCount": 2,
    "clipDurationSeconds": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/viral-clips-downloader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "videoUrl": "https://www.youtube.com/watch?v=aqz-KE-bpKQ",
    "clipCount": 2,
    "clipDurationSeconds": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/viral-clips-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "videoUrl": "https://www.youtube.com/watch?v=aqz-KE-bpKQ",
  "clipCount": 2,
  "clipDurationSeconds": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call mrdoe/viral-clips-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/viral-clips-downloader"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8JDFz3slboyY4aEXS/builds/HaWrnzeJhncAS4dSc/openapi.json
