# YouTube Video Downloader - MP4, MP3 & Subtitles (`parseforge/youtube-video-downloader-scraper`) Actor

Download public YouTube videos to MP4 (video + audio merged) or MP3/M4A with subtitles and metadata. Public download links, export to CSV, Excel, JSON or XML.

- **URL**: https://apify.com/parseforge/youtube-video-downloader-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 1 mb saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

## 🎬 YouTube Video Downloader Scraper

> 🚀 **Export public YouTube videos as MP4, MP3 or M4A files in seconds.** Paste video links, get one merged MP4 (video and sound in one file) or an audio file per video, with a public download link and 24 metadata fields per row.

The YouTube Video Downloader saves public YouTube videos to files you can download, share or pass to the next step of a workflow. Each video becomes one MP4 with video and audio already merged (no silent video, no separate audio track), or an MP3 or M4A audio file. Subtitles can be saved next to the file as .srt. Every file lands in the run's key-value store with a public link, and every row carries the title, channel, duration, views, likes, license, codec, resolution and file size.

Tested on the Apify platform on 15 public Blender films and short videos, from a 19-second clip to a 15-minute film, in MP4 (240p to 1440p), MP3 and M4A: 23 of 25 downloads saved, and the 2 misses came from a subtitle bug that is now fixed. A 3-minute 720p video (18 MB) is ready in under a minute and a 12-minute 720p film (73 MB) in about 3 minutes. Quality goes from 144p to 4K, videos up to 3 hours, up to 1,000 videos per run. Private, members-only, age-restricted, paid and live videos are refused with a clear reason and never charged.

| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| Video editors, educators, researchers, archivists, marketing teams, AI and ML engineers, developers | Offline copies of your own uploads, Creative Commons footage for edits, audio for transcription, dataset building for video models, archiving public lectures |

### 📋 What the YouTube Video Downloader Scraper does

- 🎞️ **MP4 with sound in one file.** The best video stream at or below your quality is merged with the best audio stream. H.264 is preferred so the file plays everywhere.
- 🎧 **MP3 or M4A audio.** M4A keeps the original AAC audio without re-encoding; MP3 is converted at 192 kbps.
- 📐 **Pick the quality** from 144p to 4K (2160p). If a video has nothing that high, the closest lower stream is used and the row says what you got.
- 💬 **Subtitles as .srt** in the languages you list, with an option to fall back to YouTube's automatic captions.
- 🔗 **Public download links** for every file, plus 24 fields of metadata per video.
- 🛡️ **Public videos only.** Private, members-only, age-restricted, sign-in-only, paid or rental videos, live streams and premieres are refused as error rows that are never charged.
- 🧯 **Safety caps** on video length, file size and videos per run, so a run never surprises you.

### 📊 Output

| Field | Description |
|---|---|
| 🖼 imageUrl | Video thumbnail |
| 📌 title | Video title |
| 🆔 videoId | 11-character YouTube video ID |
| 🔗 videoUrl | Canonical watch URL |
| 📥 inputUrl | The link as you entered it |
| 📺 channelName | Channel name |
| 🪪 channelId | Channel ID (UC...) |
| 🔗 channelUrl | Channel URL |
| ⏱️ durationSeconds | Video length in seconds |
| 📅 publishedDate | Upload date (YYYY-MM-DD) |
| 👁️ viewCount | Views at download time |
| 👍 likeCount | Likes, or Not Disclosed when hidden |
| ⚖️ license | Creative Commons or Standard YouTube License |
| 🎞️ format | mp4, m4a or mp3 |
| 📐 quality | Delivered quality (720p, 1080p60, audio) |
| 🖥️ resolution | Width x height, or audio only |
| 🎬 videoCodec | avc1 (H.264), vp09 or av01; N/A for audio |
| 🎧 audioCodec | mp4a (AAC), opus or mp3 |
| 💾 fileSizeBytes | Size of the saved file |
| 📄 fileName | Key of the file in the run's key-value store |
| ⬇️ downloadUrl | Public download link |
| 💬 subtitles | Saved subtitle files: language, isAutoGenerated, url |
| 🕒 scrapedAt | When the file was saved |
| ❌ error | Refusal or failure reason; null on success |

Real rows from a platform run (the last video tops out at 240p, so that is what was saved):

```json
[
  {
    "imageUrl": "https://i.ytimg.com/vi/lqiN98z6Dak/hqdefault.jpg",
    "title": "Glass Half - Blender animated cartoon",
    "videoId": "lqiN98z6Dak",
    "videoUrl": "https://www.youtube.com/watch?v=lqiN98z6Dak",
    "inputUrl": "https://www.youtube.com/watch?v=lqiN98z6Dak",
    "channelName": "Blender",
    "channelId": "UCSMOQeBJ2RAnuFungnQOxLg",
    "channelUrl": "https://www.youtube.com/channel/UCSMOQeBJ2RAnuFungnQOxLg",
    "durationSeconds": 193,
    "publishedDate": "2015-10-30",
    "viewCount": 257900,
    "likeCount": 5202,
    "license": "Creative Commons Attribution license (reuse allowed)",
    "format": "mp4",
    "quality": "720p",
    "resolution": "1280x720",
    "videoCodec": "avc1",
    "audioCodec": "mp4a",
    "fileSizeBytes": 17925967,
    "fileName": "lqiN98z6Dak-720p.mp4",
    "downloadUrl": "https://api.apify.com/v2/key-value-stores/XGmF709DdzcCIeRqB/records/lqiN98z6Dak-720p.mp4?signature=V6fmwJDRjdfj7jarvMo3",
    "subtitles": [],
    "scrapedAt": "2026-09-25T19:54:22.590Z",
    "error": null
  },
  {
    "imageUrl": "https://i.ytimg.com/vi/R6MlUcmOul8/hqdefault.jpg",
    "title": "Tears of Steel - Blender VFX Open Movie",
    "videoId": "R6MlUcmOul8",
    "videoUrl": "https://www.youtube.com/watch?v=R6MlUcmOul8",
    "inputUrl": "https://www.youtube.com/watch?v=R6MlUcmOul8",
    "channelName": "Blender",
    "channelId": "UCSMOQeBJ2RAnuFungnQOxLg",
    "channelUrl": "https://www.youtube.com/channel/UCSMOQeBJ2RAnuFungnQOxLg",
    "durationSeconds": 734,
    "publishedDate": "2012-09-26",
    "viewCount": 2665733,
    "likeCount": 28442,
    "license": "Standard YouTube License",
    "format": "mp4",
    "quality": "720p",
    "resolution": "1280x534",
    "videoCodec": "avc1",
    "audioCodec": "mp4a",
    "fileSizeBytes": 77012261,
    "fileName": "R6MlUcmOul8-720p.mp4",
    "downloadUrl": "https://api.apify.com/v2/key-value-stores/XGmF709DdzcCIeRqB/records/R6MlUcmOul8-720p.mp4?signature=I8Dv69gMT30i2uDWMubh",
    "subtitles": [],
    "scrapedAt": "2026-09-25T19:53:32.698Z",
    "error": null
  },
  {
    "imageUrl": "https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg",
    "title": "Me at the zoo",
    "videoId": "jNQXAC9IVRw",
    "videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "inputUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
    "channelName": "jawed",
    "channelId": "UC4QobU6STFB0P71PMvOGN5A",
    "channelUrl": "https://www.youtube.com/channel/UC4QobU6STFB0P71PMvOGN5A",
    "durationSeconds": 19,
    "publishedDate": "2005-04-24",
    "viewCount": 436663953,
    "likeCount": 19927930,
    "license": "Standard YouTube License",
    "format": "mp4",
    "quality": "240p",
    "resolution": "320x240",
    "videoCodec": "avc1",
    "audioCodec": "mp4a",
    "fileSizeBytes": 744413,
    "fileName": "jNQXAC9IVRw-240p.mp4",
    "downloadUrl": "https://api.apify.com/v2/key-value-stores/XGmF709DdzcCIeRqB/records/jNQXAC9IVRw-240p.mp4?signature=1Iq04zsEvmpFWvitMF7tw",
    "subtitles": [],
    "scrapedAt": "2026-09-25T19:54:37.371Z",
    "error": null
  }
]
```

### ✨ Why choose this Actor

- ✅ **Built for reliability.** YouTube blocks most cloud servers. This Actor reads video pages through residential connections, retries on fresh ones when YouTube asks for a bot check, finds the file routes YouTube accepts, and re-reads the page for fresh links if a transfer is refused. In platform tests 23 of 25 downloads were saved, and the cause of the 2 misses is fixed.
- 🎞️ **One merged file.** No silent 1080p video plus a separate audio file to stitch yourself.
- 🧾 **Clear refusals.** Every video that cannot be saved gets a row with the reason (private, live, too long, too large, unavailable), and you pay nothing for it.
- 📊 **Metadata included.** Views, likes, license, codec and resolution come with every file, ready for CSV, Excel, JSON or XML.

### 📈 How it compares to alternatives

- 🖥️ **Desktop downloaders** need a machine that stays on; this runs in the cloud, on a schedule or from an API call.
- 🔧 **Raw yt-dlp on a cloud server** usually fails with "Sign in to confirm you're not a bot" or 403 errors; this Actor handles the routing for you.
- ⚠️ **Honest ceilings:** one run saves at most 1,000 videos, videos longer than 3 hours are refused, and a single file is capped at 4 GB. Large files need more run memory (the run disk is twice the memory). Transfers run at roughly 0.4 to 1.5 MB/s per video, several videos at a time.

### ⚖️ Acceptable use

This Actor is for videos you own, videos licensed for reuse (for example Creative Commons), and other uses allowed where you live, such as personal offline viewing or research where that is permitted.

- 🔒 It never signs in and takes no cookies or accounts, so only videos anyone can watch without an account are saved.
- 🚫 Private, members-only, age-restricted, paid, rental and Premium-only videos, live streams and premieres are refused.
- 🧷 DRM-protected streams are never downloaded, and no protection is bypassed.
- 📜 You are responsible for respecting copyright, YouTube's Terms of Service and the rights of the people in the videos. Do not re-upload or redistribute content you do not have the rights to.

### 🚀 How to use

1. Create a free Apify account with $5 credit: https://console.apify.com/sign-up?fpr=vmoqkp
2. Open the Actor and paste your YouTube video links (watch, youtu.be, Shorts or embed links, or bare video IDs).
3. Pick the file format (MP4, M4A or MP3) and the quality, and turn on subtitles if you need them.
4. Run it. Open the dataset and click each download link, or export the table to CSV / Excel / JSON / XML.

### 💼 Business use cases

#### 🎓 Education and training

Keep offline copies of your own course videos or Creative Commons lectures for classrooms with poor connectivity.

#### 🎥 Video editing and marketing

Pull your team's published videos, or licensed Creative Commons footage, straight into an editing pipeline.

#### 🧠 AI and research datasets

Collect reusable (Creative Commons) clips or audio for speech, vision and multimodal research, with the license and metadata in every row.

#### 🗄 Archiving and compliance

Archive your brand's own channel, or public statements you are allowed to keep, with the view count and date at capture time.

### 🔌 Automating YouTube Video Downloader Scraper

Schedule runs, trigger them from Make, Zapier or n8n, send a Slack message when files are ready, push links to Google Drive, or read the dataset from Airbyte or GitHub Actions. Each run gives you a dataset of rows and a key-value store of files.

### 🌟 Beyond business use cases

- 🧑‍🎓 **Research:** audio and video for linguistics, media studies or accessibility work, where your license allows it.
- 🏠 **Personal:** offline copies of videos you uploaded yourself.
- 🤝 **Non-profit:** Creative Commons teaching material for offline classrooms.
- 🧪 **Experimentation:** test clips for encoders, players and video models.

### 🤖 Ask an AI assistant about this scraper

Copy this Actor's URL into ChatGPT, Claude or Perplexity and ask how to call it from your code, which quality fits your storage, or how to loop over the download links in your language of choice.

### ❓ Frequently Asked Questions

#### 🔗 Which links work?

Watch links (youtube.com/watch?v=...), short links (youtu.be/...), Shorts, embed links and bare 11-character video IDs. Playlist and channel links are refused: paste the individual video links.
Extra parameters such as `&t=30s` or `&list=...` are ignored, and the same video listed twice is saved once.

#### 🧹 What happens with a wrong input?

Nothing breaks. An empty list, `Max items` set to 0, or entries that are not YouTube video links (text, emoji, other sites, playlists, channels) end the run as succeeded with 0 items and a clear status message; invalid entries are listed in the log and are never charged. Videos that are valid links but cannot be saved (private, unavailable, live, too long...) get a free row with the reason. Fixed-choice fields (quality, format) are still checked by the platform before the run starts.

#### 🚧 What if YouTube blocks the run?

The Actor retries on fresh residential connections in two rounds with a pause between them. If YouTube still asks for a bot check and nothing could be saved, the run ends as failed with a clear message and no per-file or per-MB charges, so you can simply retry later. If some files were already saved, they stay and the rest are skipped without charge.

#### ⏱️ What if a download hangs or my cost limit is reached?

A run with no progress for 2 minutes, or one that reaches its time limit, is stopped cleanly: files already saved stay in your key-value store and the unfinished videos are not charged. Before each download the Actor checks your maximum cost per run and skips files it could not charge in full, with a free `BUDGET_TOO_LOW` row.

#### 🎞️ Do I get one file with video and sound?

Yes. MP4 output merges the best video and audio streams into one file.

#### 📐 What if the video is not available in my quality?

The best stream at or below your choice is used. If none exists, the closest one is used, and the quality and resolution columns show exactly what was saved.

#### 🎧 What is the difference between M4A and MP3?

M4A keeps YouTube's original AAC audio with no quality loss. MP3 is converted at 192 kbps and plays on older devices.

#### 💬 Can I get subtitles?

Yes. Turn on subtitles and list the languages (en, es, pt-BR...). Missing languages are skipped. Automatic captions are used only if you allow them.

#### 🔒 Can it download private, members-only or age-restricted videos?

No. The Actor never signs in, so these are refused with a clear reason and not charged. The same goes for paid, rental and Premium-only content, live streams and premieres.

#### 📏 Is there a size or length limit?

Videos longer than your "Max video length" (default 60 minutes, up to 180) and files larger than "Max file size" (default 1,024 MB, up to 4,096) are refused before anything is downloaded. Very large files also need more run memory.

#### ⏱ How long does it take?

In platform tests a 3-minute 720p video took under a minute and a 12-minute 720p film about 3 minutes. Several videos download at the same time.

#### 💸 Am I charged for videos that fail?

No. Refused and failed videos appear as rows with an error message and are never charged.

#### 🔗 How long do the download links work?

The links point to the run's key-value store and follow your account's data retention. Download or copy the files you want to keep.

#### 📦 How many videos can one run handle?

Up to 1,000. Free accounts get 10 per run.

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

Only where you have the right to. See the Acceptable use section: use your own videos, Creative Commons videos, or uses your local law allows.

### 🔌 Integrate with any app

Use the [Apify API](https://docs.apify.com/api/v2), the JavaScript or Python client, webhooks, or ready-made integrations for Make, Zapier, n8n, Slack, Google Drive, Airbyte and more. Every run produces a dataset and a key-value store you can read from any tool.

### 🔗 Recommended Actors

- [YouTube Transcript Scraper](https://apify.com/parseforge/youtube-transcript-scraper): get the text of a video without downloading it.
- [YouTube Comments Scraper](https://apify.com/parseforge/youtube-comments-scraper): collect the comments under a video.
- [YouTube Scraper](https://apify.com/parseforge/youtube-scraper): search results and video metadata at scale.
- [YouTube Channel Scraper](https://apify.com/parseforge/youtube-channel-scraper): channel stats and video lists.
- [YouTube Shorts Scraper](https://apify.com/parseforge/youtube-shorts-scraper): Shorts from any channel.

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for more data tools.

**🆘 Need Help?** [Open our contact form](https://tally.so/r/BzdKgA)

> **⚠️ Disclaimer:** this is an independent tool, not affiliated with YouTube or Google. It only saves publicly available videos at the links you provide; you are responsible for having the rights to download and use them.

# Actor input Schema

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

Public YouTube video links: watch (youtube.com/watch?v=...), short links (youtu.be/...), Shorts (youtube.com/shorts/...), embed links or bare 11-character video IDs. Playlist and channel links are skipped. Invalid entries are skipped and reported in the log; a list with nothing valid ends with 0 items. Only download videos you own or have permission to use.

## `maxItems` (type: `integer`):

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000 (one run downloads at most 1,000 videos; split bigger jobs across runs). 0 means nothing is downloaded.

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

Highest resolution to download. The Actor picks the best stream at or below this height (H.264 preferred for compatibility). If a video has no stream that low, the closest one is used. Ignored for audio-only formats.

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

MP4 = video with sound in one file (video and audio merged, no silent or audio-only surprises). M4A = original AAC audio, no re-encoding. MP3 = audio converted to 192 kbps MP3.

## `downloadSubtitles` (type: `boolean`):

Also save the subtitle tracks listed below as .srt files next to the video.

## `subtitleLanguages` (type: `array`):

Language codes to save when subtitles are on, for example en, es, pt-BR. Languages the video does not have are skipped.

## `includeAutoSubtitles` (type: `boolean`):

Use YouTube's automatic captions when the uploader did not publish subtitles in a requested language.

## `maxDurationMinutes` (type: `integer`):

Longer videos are refused before any download. Default 60, up to 180 (3 hours).

## `maxFileSizeMb` (type: `integer`):

Videos whose estimated file is larger are refused before any download. Default 1,024 MB. Large files also need run memory: the run disk is twice the memory.

## `maxConcurrency` (type: `integer`):

How many videos download in parallel. Kept low on purpose to stay polite to YouTube. Default 2, max 4.

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

Proxy used to read video pages. Residential (US) is the default and the most reliable choice.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=SkVqJ1SGeL0"
  ],
  "maxItems": 10,
  "quality": "720p",
  "format": "mp4",
  "downloadSubtitles": false,
  "subtitleLanguages": [
    "en"
  ],
  "includeAutoSubtitles": false,
  "maxDurationMinutes": 60,
  "maxFileSizeMb": 1024,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Key fields with download links

## `fullData` (type: `string`):

Complete dataset with all 24 fields

## `files` (type: `string`):

Downloaded video, audio and subtitle files in the run key-value store

# 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=SkVqJ1SGeL0"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/youtube-video-downloader-scraper").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=SkVqJ1SGeL0"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/youtube-video-downloader-scraper").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=SkVqJ1SGeL0"
  ],
  "maxItems": 10
}' |
apify call parseforge/youtube-video-downloader-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/youtube-video-downloader-scraper"
        }
    }
}
```

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/3sQAfIbbC9TapNk8A/builds/KcHw1jiYgUbkgbeEt/openapi.json
