# Download ANY Video — 8 Platforms, Direct CDN (`lexiie/all-in-one-media-extractor`) Actor

The ultimate video downloader — YouTube, TikTok, Instagram, Facebook, X, Reddit, Pinterest, Vimeo. Batch 100, direct CDN links, no login, no watermark. HD/SD quality + audio MP3. Views/likes/comments included. Free for failed downloads.

- **URL**: https://apify.com/lexiie/all-in-one-media-extractor.md
- **Developed by:** [lexiie](https://apify.com/lexiie) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 video-extracteds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## All-in-One Video Downloader — Batch 100, 8 Platforms

**Paste 1-100 URLs → download videos directly. No login, no browser, no yt-dlp.**

Download from **YouTube, TikTok, Instagram, X/Twitter, Facebook, Reddit, Pinterest, Vimeo** in one run. Get direct CDN links + HD/SD quality options + audio-only MP3/M4A. Batch 100, lightweight HTTP-only.

***

### Why Use This?

| Feature | This Actor | Cobalt | yt-dlp |
|---|---|---|---|
| **8 platforms** | ✅ All in one | ❌ YT/TT only | ✅ But heavy |
| **No login** | ✅ Public free | ✅ | ✅ |
| **Enriched metadata** | ✅ Views, likes, comments | ❌ | ❌ |
| **Batch 100** | ✅ One run | ❌ Single URL | ✅ But RAM-heavy |
| **Lightweight** | ✅ 512MB RAM | — | ❌ Needs GB |
| **Pay per success** | ✅ $3/1K | Free (limited) | Free (self-host) |

***

### How It Works

1. **Paste URLs** — any mix of YouTube, TikTok, Instagram, X, Facebook, Reddit, Pinterest, Vimeo
2. **Get download links** — direct CDN `mp4` / `mp3` URLs you can download instantly
3. **Optional enrichment** — views, likes, comments, uploader, thumbnail included automatically

***

### Supported Platforms

| Platform | URL Examples | Output |
|---|---|---|
| **YouTube** | `youtube.com/watch?v=...` · `youtu.be/...` · `/shorts/...` | `mp4` HD/SD + `m4a/webm` + views/likes |
| **TikTok** | `tiktok.com/@user/video/123` · `vm.tiktok.com/...` | `mp4` HD/SD + `mp3` + views/likes/comments |
| **Instagram** | `instagram.com/p/ABC` · `/reel/ABC` | `mp4/jpg` + caption + likes/comments |
| **X/Twitter** | `x.com/user/status/123` · `t.co/...` | `mp4` variants + views/likes/retweets |
| **Facebook** | `facebook.com/watch?v=123` · `fb.watch/...` | `HD/SD mp4` + views/likes/shares |
| **Reddit** | `reddit.com/r/pics/comments/...` | `mp4`/`jpg` + ups/comments |
| **Pinterest** | `pinterest.com/pin/123` · `pin.it/...` | `mp4`/`image` + repins/likes |
| **Vimeo** | `vimeo.com/123456` | `mp4` + plays/likes |

> Private/deleted returns `PRIVATE_CONTENT` / `CONTENT_NOT_FOUND` — **not charged**.

***

### Input

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.tiktok.com/@moh.shofwan/video/7645528079783267605",
    "https://www.instagram.com/reel/Dcm8usVMMcG/",
    "https://x.com/SpaceX/status/1840000000000000000",
    "https://www.facebook.com/watch/?v=10153231379946729",
    "https://vimeo.com/22439234"
  ],
  "quality": "best",
  "audioOnly": false,
  "cookies": "",
  "maxFileSizeMB": 0,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

| Parameter | Description |
|---|---|
| `urls` | 1-100 public URLs (any mix of platforms) |
| `quality` | `best` · `1080p` · `720p` · `480p` · `360p` · `worst` |
| `audioOnly` | `true` → audio only (MP3/M4A) |
| `cookies` | `Netscape cookies.txt` for private/age-restricted content |
| `maxFileSizeMB` | Skip media larger than this (0 = no limit) |
| `proxyConfiguration` | Keep OFF for cheapest; enable `RESIDENTIAL` if 403/429 |

***

### Output

Each URL → one dataset item with `downloadUrl` ready to save:

```json
{
  "inputUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "success": true,
  "platform": "youtube",
  "type": "video",
  "id": "dQw4w9WgXcQ",
  "metadata": {
    "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
    "thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
    "duration": 212,
    "uploadDate": "2009-10-25",
    "uploader": "Rick Astley"
  },
  "stats": {
    "viewCount": 1809467496,
    "likeCount": 16800000,
    "commentCount": 397
  },
  "media": [
    {
      "url": "https://rr1---sn-....googlevideo.com/videoplayback?...",
      "type": "video",
      "format": "mp4",
      "mimeType": "video/mp4",
      "width": 1920,
      "height": 1080,
      "quality": "1080p",
      "fps": 30
    }
  ],
  "latencyMs": 842
}
```

#### Error (not charged)

```json
{
  "inputUrl": "https://www.facebook.com/private/video/123",
  "success": false,
  "platform": "facebook",
  "error": { "code": "PRIVATE_CONTENT", "message": "Private or login required" },
  "latencyMs": 120
}
```

**Error codes:** `INVALID_URL` · `UNSUPPORTED_PLATFORM` · `PRIVATE_CONTENT` · `CONTENT_NOT_FOUND` · `NO_MEDIA_FOUND` · `TEMPORARY_UNAVAILABLE` · `UPSTREAM_BLOCKED`

***

### Pricing — Pay Per Event + Usage

| Event | Price | When |
|---|---|---|
| `apify-actor-start` | $0.00005 | Per run (+1 per extra GB RAM) |
| `video-downloaded` | **$0.003** ($3.00 / 1,000) | Each URL that returns download links |

- Failed / private / filtered = **FREE**
- PPE + Usage ON — event price covers downloader; platform usage (CU, proxy, transfer) charged separately
- Volume discounts: `BRONZE $0.002` → `SILVER $0.0016` → `GOLD $0.0013`

***

### API

#### Quick start (any language)

```bash
curl -X POST "https://api.apify.com/v2/acts/YOUR_ACTOR/runs?token=TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"quality":"720p"}'
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('lexiie/all-in-one-media-extractor').call({
  urls: ['https://www.youtube.com/watch?v=dQw4w9WgXcQ'],
  quality: '720p',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(item => console.log(item.media[0]?.url));
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("lexiie/all-in-one-media-extractor").call(run_input={
    "urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "quality": "720p",
})
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item["media"][0]["url"])
```

***

### Proxy & Cookies

- **Without proxy:** YouTube / TikTok / Facebook / Vimeo work 90% of the time
- **With `RESIDENTIAL`:** Needed for Instagram / Facebook bulk (>10) and Reddit 403 — auto `no-proxy → retry proxy` with session rotation
- **Cookies:** Paste `Netscape cookies.txt` for Stories / private Facebook / age-restricted YouTube

***

### Legal

Use only for public content you own or have permission to access. Respect each platform's Terms of Service. We return temporary CDN URLs (e.g., YouTube `expire ~4h`), we don't store media bytes. For private content, pass your own `cookies` — not a bypass for DRM/paywall.

# Actor input Schema

## `urls` (type: `array`):

1-100 public URLs. No login required.

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

Preferred quality. Filters returned media.

## `audioOnly` (type: `boolean`):

If true, return audio MP3/m4a only (filters video).

## `cookies` (type: `string`):

Optional Netscape cookies.txt for private/age-restricted content. Leave empty for public.

## `maxFileSizeMB` (type: `integer`):

Skip media larger than this MB (0 = no limit).

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

Enable RESIDENTIAL for Facebook/Instagram when getting 403/429. Leave OFF for cheaper runs.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.tiktok.com/@khaby.lame/video/7000000000000000000",
    "https://www.instagram.com/p/ABC123/"
  ],
  "quality": "best",
  "audioOnly": false,
  "maxFileSizeMB": 0,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One item per input URL with metadata/stats/media

# 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 = {
    "urls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://www.tiktok.com/@khaby.lame/video/7000000000000000000",
        "https://www.instagram.com/p/ABC123/"
    ],
    "quality": "best",
    "audioOnly": false,
    "cookies": "",
    "maxFileSizeMB": 0,
    "proxyConfiguration": {
        "useApifyProxy": false,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexiie/all-in-one-media-extractor").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 = {
    "urls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "https://www.tiktok.com/@khaby.lame/video/7000000000000000000",
        "https://www.instagram.com/p/ABC123/",
    ],
    "quality": "best",
    "audioOnly": False,
    "cookies": "",
    "maxFileSizeMB": 0,
    "proxyConfiguration": {
        "useApifyProxy": False,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("lexiie/all-in-one-media-extractor").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 '{
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "https://www.tiktok.com/@khaby.lame/video/7000000000000000000",
    "https://www.instagram.com/p/ABC123/"
  ],
  "quality": "best",
  "audioOnly": false,
  "cookies": "",
  "maxFileSizeMB": 0,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call lexiie/all-in-one-media-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexiie/all-in-one-media-extractor"
        }
    }
}

```

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/GdXcUau5zytXfvdvS/builds/mIlzgnbrgulTaHtLN/openapi.json
