# YouTube Video Downloader (`jistudio/youtube-video-downloader`) Actor

⚡ From $1.40/1K — Zero-Cookie YouTube Video & Audio Downloader (4K60 / 1080p / MP4 / M4A / Opus): Handles SABR & PO-Token blocks via official Android InnerTube, uploads verified playable MP4/M4A directly to Apify Storage (zero HTTP 403), and returns all 30/30 stream URLs + storyboards.

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

## Pricing

from $1.40 / 1,000 standard dataset results

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

## YouTube Video Downloader — Zero Cookies · No Login · MCP Ready

> ⚡ From from $1.40 / 1K — Zero-Cookie YouTube Video & Audio Downloader (4K60 / 1080p / MP4 / M4A / Opus): handles SABR & PO-Token blocks via official Android InnerTube, uploads verified playable MP4/M4A directly to Apify Storage (zero HTTP 403), and returns all 30/30 stream URLs + storyboards.

### Key Capabilities

- **handles SABR & PO-Token Restrictions**: Unlocks 20–30 direct streams up to 4K 2160p/60fps & Opus/M4A audio without cookies or proxies.
- **Permanent Cross-IP Download Links**: Downloads verified playable MP4/M4A inside Apify Cloud and saves to Apify Key-Value Store (`downloadUrl`) — eliminating IP-locked HTTP 403 errors.
- **Full Media Metadata**: Exact view count, duration, storyboard sprite grids, AI provenance, and available captions.

### Why Developers & AI Agents Choose `youtube-video-downloader`

- **Zero Cookies & Zero Login**: Works out of the box with zero browser sessions, zero account bans, and zero captcha loops.
- **Built for AI Agents & MCP**: Native Model Context Protocol (MCP) compatibility for Claude, Cursor, LangChain, n8n, Make.com, and OpenAI Agents.
- **Ultra-Fast Direct Mobile API**: Sub-second extraction without headless Chromium overhead.
- **Transparent Pay-Per-Event Pricing**: Start from **$2.00 / 1,000 (from $1.40 with Store discounts) standard results** (`$0.005` Actor start + optional tiered deep/intel add-ons with up to 50% Diamond discount).

### Popular Use Cases

- **Automated Video Archiving & AI Training Pipelines**: Download clean MP4/M4A files programmatically without `yt-dlp` IP bans (`OPEN_SOURCE` friendly).
- **Podcast & Audio Extraction**: Batch-extract clean M4A/Opus audio for Whisper transcription and media workflows.

### Sample Quickstart Input

```json
{
  "mode": "video_download",
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "downloadFormat": "muxed_mp4"
}
```

***

### How to Use YouTube Video Downloader

#### Step-by-Step in Apify Console

1. Open **YouTube Video Downloader** (`jistudio/youtube-video-downloader`) in Apify Console.
2. Adjust the prefilled input parameters (or keep the defaults to test immediately).
3. Click **Start** — runs typically complete in **5 to 25 seconds** using only **512 MB** memory.
4. Inspect results in the **Output** tab and download as **JSON, CSV, Excel, or XML**.

#### Programmatic API & SDK Integration

##### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run_input = {
  "mode": "video_download",
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "downloadFormat": "muxed_mp4"
}

run = client.actor("jistudio/youtube-video-downloader").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Extracted {len(items)} items")
```

##### JavaScript / Node.js (`apify-client`)

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });

const run = await client.actor('jistudio/youtube-video-downloader').call({
  "mode": "video_download",
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "downloadFormat": "muxed_mp4"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} items`);
```

### Input Parameters Reference

All inputs match this Actor's live schema (`input_schema.json`) with **zero login cookies required**:

| Parameter | Type | Default | Description |
| :--- | :---: | :---: | :--- |
| `mode` | `string` | `"video_download"` | Select the YouTube extraction mode to run. |
| `videoUrls` | `array` | `["https://www.youtube.com/watch?...` | Paste one or more YouTube URLs (youtube.com/watch?v=..., youtu.be/..., youtube.com/shorts/..., music.youtube.com/watc... |
| `keywords` | `array` | `["python web scraping tutorial"]` | Keywords to search on YouTube or YouTube Music (e.g. 'python web scraping tutorial', 'Blinding Lights The Weeknd'). |
| `downloadFormat` | `string` | `"muxed_mp4"` | Choose which stream to download into Apify Key-Value Store (eliminates IP-locked 403 errors so you can download direc... |
| `maxDownloadSizeMB` | `integer` | `50` | Safety limit per downloaded media file saved to Apify Key-Value Store (default 50 MB). |
| `preferredLanguage` | `string` | `"en"` | Preferred caption track language (e.g. 'en', 'es', 'de', 'fr', 'ja', 'vi', 'auto'). Falls back to first available cap... |
| `country` | `string` | `"US"` | Country context for YouTube search & regional catalog (e.g. US, GB, DE, JP, VN). |
| `maxResults` | `integer` | `10` | Maximum number of videos / tracks / search results to return. |
| `enrichDetails` | `boolean` | `false` | When enabled in Search mode, enriches top results with exact numeric view counts, duration, keywords, and available c... |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Optional Apify Proxy or custom proxy URL. Used automatically if YouTube triggers a datacenter IP bot check ('Sign in ... |

#### Quick-Start JSON Input

```json
{
  "mode": "video_download",
  "videoUrls": [
    "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  ],
  "downloadFormat": "muxed_mp4"
}
```

### Output Fields Reference

Normalized dataset records written to the `overview` view:

| Field | Label | Format |
| :--- | :--- | :---: |
| `mode` | Mode | `text` |
| `videoId` | Video ID | `text` |
| `title` | Title | `text` |
| `author` | Channel / Artist | `text` |
| `viewCount` | Views | `number` |
| `lengthSeconds` | Duration (s) | `number` |
| `downloadUrl` | Direct Download URL | `link` |
| `downloadedFileSizeMB` | Size (MB) | `number` |
| `streamsCount` | Streams | `number` |
| `transcriptWordCount` | Transcript Words | `number` |
| `url` | YouTube URL | `link` |

### How Much Does It Cost to Run YouTube Video Downloader?

This Actor uses transparent **Pay-Per-Event (PPE)** pricing with **no hidden proxy fees**:

| Event | Price | Example Cost (1,000 Items) |
| :--- | :---: | :---: |
| **Actor Start** (`apify-actor-start`) | `$0.005` / run | `$0.005` |
| **Standard Dataset Result** (`apify-default-dataset-item`) | `$0.002` (`from $1.40 / 1K`) | `$2.00` (`$1.40` Gold+) |
| **Total for 1,000 Standard Results** | — | **`$2.005` standard (`$1.405` Gold+)** |

#### Subscription Tier Discounts

Paid Apify tiers (**Bronze, Silver, Gold, Platinum, Diamond**) automatically receive discounted add-on pricing for deep detail, media, review, or analytics lookups.

### Performance & Architecture

- **Direct HTTP Execution**: Skips headless browser overhead for fast, predictable runs at **512 MB** default memory.
- **Limited Permissions Security**: Runs strictly under Apify's **Limited Permissions** model.
- **MCP & AI Agent Ready**: Works out of the box with Claude Desktop, Cursor, n8n, Make, Zapier, and Apify MCP (`https://mcp.apify.com`).

### FAQ

#### Do I need cookies, login credentials, or residential proxies?

No. This Actor queries public endpoints directly with zero login cookies and zero headless browser startup overhead.

#### What export formats are supported?

Download structured results as JSON, CSV, Excel (`.xlsx`), XML, or stream directly via Apify API, webhooks, and MCP.

#### How fast does a typical run finish?

Most runs complete in 5 to 25 seconds depending on the number of requested items (`maxItems`).

#### Can I schedule recurring automated runs?

Yes. Attach an Apify Schedule, n8n trigger, or webhook to monitor price changes, new listings, or content updates 24/7.

### More Scrapers by JiStudio

Explore our full suite of direct-protocol, zero-browser data extraction Actors on Apify Store:

| Actor | Target Platform | Best For |
| :--- | :--- | :--- |
| [Shopee Scraper](https://apify.com/jistudio/shopee-scraper) | Shopee (8 Countries) | Exact unrounded sold counts, prices, vouchers, Shopee Live bags |
| [TikTok Shop Scraper](https://apify.com/jistudio/tiktok-shop-scraper) | TikTok & TikTok Shop (22+ Regions) | Trending feeds, HD no-watermark MP4, SKUs, KOL affiliates |
| [TikTok Transcript Scraper](https://apify.com/jistudio/tiktok-transcript-scraper) | TikTok Audio / Captions | Verbatim speech transcripts & WebVTT subtitles for LLM RAG |
| [Lazada Scraper](https://apify.com/jistudio/lazada-scraper) | Lazada (6 SEA Countries) | Search listings, LazMall bestsellers, verified buyer reviews |
| [Goofish Xianyu Scraper](https://apify.com/jistudio/goofish-xianyu-scraper) | Goofish / Xianyu (闲鱼) | China C2C resale arbitrage, seller credit & price comps |
| [AliExpress Scraper](https://apify.com/jistudio/aliexpress-scraper) | AliExpress Global | Dropshipping SKUs, localized shipping, verified buyer reviews |
| [1688 Wholesale Scraper](https://apify.com/jistudio/1688-wholesale-scraper) | 1688.com Factories | Direct Chinese factory pricing, MOQ tiers & SKU matrices |
| [Twitter Scraper](https://apify.com/jistudio/twitter-scraper) | X (Twitter) & Crypto | Single tweets, threads, HD videos & Solana/Base token X-intel |

### Support & Legal Compliance

#### Support & Feature Requests

Have a question, custom requirement, or edge case? Open an issue on the **Issues** tab in Apify Console for prompt assistance.

#### Legal & Ethical Scraping Notice

This Actor accesses only publicly available data visible to logged-out visitors and does not collect private personal data (PII). Ensure your usage complies with applicable laws (including GDPR/CCPA) and target terms.

# Actor input Schema

## `mode` (type: `string`):

Select the YouTube extraction mode to run.

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

Paste one or more YouTube URLs (youtube.com/watch?v=..., youtu.be/..., youtube.com/shorts/..., music.youtube.com/watch?v=...) or 11-character Video IDs.

## `keywords` (type: `array`):

Keywords to search on YouTube or YouTube Music (e.g. 'python web scraping tutorial', 'Blinding Lights The Weeknd').

## `downloadFormat` (type: `string`):

Choose which stream to download into Apify Key-Value Store (eliminates IP-locked 403 errors so you can download directly from any browser or server), or 'urls_only' for instant metadata & stream URLs.

## `maxDownloadSizeMB` (type: `integer`):

Safety limit per downloaded media file saved to Apify Key-Value Store (default 50 MB).

## `preferredLanguage` (type: `string`):

Preferred caption track language (e.g. 'en', 'es', 'de', 'fr', 'ja', 'vi', 'auto'). Falls back to first available caption track if not present.

## `country` (type: `string`):

Country context for YouTube search & regional catalog (e.g. US, GB, DE, JP, VN).

## `maxResults` (type: `integer`):

Maximum number of videos / tracks / search results to return (1 - 5,000, supports automatic pagination).

## `enrichDetails` (type: `boolean`):

When enabled in Search mode, enriches top results with exact numeric view counts, duration, keywords, and available caption languages.

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

Optional Apify Proxy or custom proxy URL. Used automatically if YouTube triggers a datacenter IP bot check ('Sign in to confirm you're not a bot'). Apify Proxy (default) or Residential proxy achieves ~100% success across all videos & VEVO music tracks.

## Actor input object example

```json
{
  "mode": "video_download",
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "keywords": [
    "python web scraping tutorial"
  ],
  "downloadFormat": "muxed_mp4",
  "maxDownloadSizeMB": 50,
  "preferredLanguage": "en",
  "country": "US",
  "maxResults": 10,
  "enrichDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "mode": "video_download",
    "videoUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ],
    "keywords": [
        "python web scraping tutorial"
    ],
    "downloadFormat": "muxed_mp4",
    "preferredLanguage": "en",
    "country": "US",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("jistudio/youtube-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 = {
    "mode": "video_download",
    "videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "keywords": ["python web scraping tutorial"],
    "downloadFormat": "muxed_mp4",
    "preferredLanguage": "en",
    "country": "US",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("jistudio/youtube-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 '{
  "mode": "video_download",
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "keywords": [
    "python web scraping tutorial"
  ],
  "downloadFormat": "muxed_mp4",
  "preferredLanguage": "en",
  "country": "US",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call jistudio/youtube-video-downloader --silent --output-dataset

```

## MCP server setup

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