# Video Downloader: YouTube, TikTok, Instagram, X, Facebook (`suprsonic/video-downloader`) Actor

Download videos or MP3 audio from YouTube, TikTok, Instagram, X and Facebook. One flat price per video, any length up to 3 hours. Failed downloads are free.

- **URL**: https://apify.com/suprsonic/video-downloader.md
- **Developed by:** [Suprsonic](https://apify.com/suprsonic) (community)
- **Categories:** Videos, Social media, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $30.00 / 1,000 videos

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/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

### What does Video Downloader do?

Video Downloader turns video links into files. Give it links from **YouTube, TikTok, Instagram, X (Twitter) or Facebook** and it returns a download link for each video as an **MP4**, or for its sound only as an **MP3** or **M4A**.

- **One flat price per video**, whatever its length: a 30-second Short and a two-hour livestream recording cost the same (files over 300 MB add a small size charge, see below).
- **Long videos work**: up to 3 hours and 2 GB per video. A long video is fetched in the background while the run waits for it.
- **Failed downloads are free**: a private, deleted or blocked video is reported with the reason and costs nothing.
- **Quality you choose**: 360p, 480p, 720p, 1080p or the best the site has.

It is built on the video download API of [Suprsonic](https://suprsonic.ai), which keeps YouTube and the social sites downloading when they change their defences.

### How to download videos

1. Paste one or more links into **Video links** (a list, one link per line).
2. Choose **MP4** for the video, or **MP3** or **M4A** for the sound only.
3. Choose the **Video quality** (720p by default).
4. Click **Start**. Each video appears in the results as soon as it is ready.
5. Open each **Download link** within an hour, or let your integration fetch the files right after the run.

### Which links work?

| Site | Links that work |
| --- | --- |
| YouTube | Videos, Shorts, finished livestreams, youtu.be links |
| TikTok | Video posts |
| Instagram | Reels and video posts |
| X (Twitter) | Posts with a video |
| Facebook | Videos and reels |

Many other sites with a public video work too. A video that needs a sign-in, a paid membership or an age check comes back as failed, with the reason, and is not charged.

### Output

Each link becomes one row in the dataset:

```json
{
    "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "status": "downloaded",
    "title": "Me at the zoo",
    "downloadUrl": "https://...",
    "expiresAt": "2026-11-26T10:30:00Z",
    "fileName": "Me_at_the_zoo.mp4",
    "fileSizeMb": 0.7,
    "durationSeconds": 19,
    "quality": "720",
    "format": "mp4",
    "thumbnailUrl": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg"
}
```

A link that could not be downloaded has `"status": "failed"` with `error` and `errorDetail` saying why. You can export the results as JSON, CSV or Excel, or read them through the Apify API.

**The download link works for one hour.** Download the file within that hour, or connect the Actor to your storage with an integration (Google Drive, Dropbox, S3, Make, Zapier, n8n) that fetches each file when the run finishes.

### How much does it cost to download a video?

You pay per file delivered, never for a failure:

| Event | Price |
| --- | --- |
| Video downloaded (MP4, any length) | $0.03 |
| Audio downloaded (MP3 or M4A) | $0.02 |
| Each 100 MB of a file beyond its first 300 MB | $0.01 |

Examples: 100 TikToks as MP4 cost $3.00. A one-hour lecture at 720p (about 500 MB) costs $0.05. The MP3 of a two-hour podcast costs $0.02.

On Apify's free plan a run downloads 3 videos, so you can try it on your own links. Any paid Apify plan downloads every link in one run.

### Use it from your code, Make, Zapier or n8n

Start the Actor from the [Apify API](https://docs.apify.com/api/v2), the Apify Python or JavaScript client, or Apify's integrations with Make, Zapier and n8n, and read the dataset when the run finishes. For example, a new video posted to a channel can be saved to Google Drive or transcribed automatically.

**Need the words rather than the file?** [Video Transcriber](https://apify.com/suprsonic/video-transcriber) turns the same links into a transcript with timestamps and SRT subtitles, at $0.01 a video with its first minute included.

If you build an app that downloads videos on demand, the same downloads are available directly as an API, with SDKs and an MCP server for AI agents: the [Suprsonic video download API](https://suprsonic.ai/apis/video-download).

### FAQ

**Is downloading videos legal?** Download only videos you own or have permission to use, and respect each site's terms and the creators' copyright. This Actor fetches public videos only; it cannot open private, paid or sign-in-only videos.

**Why did a video fail?** The row says why: the video is private, deleted, age-restricted, region-blocked, a members-only video or a livestream still running. These are not charged. If a public video fails, run it again later, and if it keeps failing please report it on the Issues tab.

**How long does a download take?** Most videos take 5 to 60 seconds. A video of an hour or more takes 2 to 10 minutes.

**Can I limit what a run costs?** Yes. Set a maximum cost per run in the run options: the Actor stops starting new downloads when the next one would go over it.

**I need something else.** Open an issue on the Issues tab, or write to support@suprsonic.ai.

# Actor input Schema

## `videoUrls` (type: `array`):

Links to videos or to posts with a video: YouTube (videos, Shorts, live recordings), TikTok, Instagram (reels and posts), X (Twitter), Facebook (videos and reels) and many other sites with a public video. Each link is downloaded once.

## `format` (type: `string`):

MP4 is the video with its sound. MP3 or M4A is the sound only, smaller and cheaper.

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

The best quality the site has, up to this resolution. Applies to MP4.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "format": "mp4",
  "quality": "720"
}
```

# Actor output Schema

## `downloads` (type: `string`):

Every link of the run, downloaded, failed or skipped, in the Downloads view.

# 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 = {
    "videoUrls": [
        "https://www.youtube.com/watch?v=jNQXAC9IVRw"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("suprsonic/video-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 = { "videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"] }

# Run the Actor and wait for it to finish
run = client.actor("suprsonic/video-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 '{
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ]
}' |
apify call suprsonic/video-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,suprsonic/video-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/fHiJaNjNCAF58xcew/builds/XoeozGrCAOsqWfGwt/openapi.json
