# YouTube Video Downloader Max (`alpha-scraper/youtube-video-downloader-max`) Actor

YouTube Video Downloader Max Search YouTube videos by keyword and extract detailed metadata, including titles, descriptions, views, duration, upload dates, channel information, and direct video, audio, and merged download links for every video. Ideal for video research, content and data collection.

- **URL**: https://apify.com/alpha-scraper/youtube-video-downloader-max.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (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.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

### YouTube Video Downloader Max

**YouTube Video Downloader Max** is an Apify Actor that searches YouTube by keyword and returns detailed video metadata together with direct video, audio and merged download links for every video it finds. You can also paste your own YouTube video URLs to process specific videos.

Researchers, content teams, archivists and developers use YouTube Video Downloader Max to turn YouTube search results into one structured dataset. No YouTube account, login or API key is needed, and every YouTube video becomes one clean row of data.

> **📌 YouTube Video Downloader Max at a glance**
>
> - **Input:** YouTube search keywords and/or YouTube video URLs
> - **Output:** one dataset item per YouTube video, with metadata and download links
> - **Filters:** minimum views, video length, publish date and resolution
> - **Export:** JSON, CSV, Excel, HTML or the Apify API

### 🔹 YouTube Video Downloader Max Key Features

YouTube Video Downloader Max combines YouTube search, metadata extraction and download links in a single run:

- **Keyword search:** every keyword runs its own YouTube search with its own limit.
- **Three kinds of download links:** a video-only link, a separate audio link and a merged video + audio link.
- **Resolution control:** choose from 8K down to 144p. If your choice is unavailable, the closest lower resolution is used.
- **Smart filters:** minimum views, minimum and maximum length, and a publish-date range for YouTube search results.
- **Single URL mode:** add YouTube video URLs and get their details without searching.
- **Metadata-only mode:** turn off link fetching for a much faster run based on YouTube search data.
- **No duplicates:** a video is never returned twice for the same keyword.

> **✅ Why use YouTube Video Downloader Max**
>
> - One YouTube Video Downloader Max run covers many keywords and many YouTube videos
> - Filtered-out videos never count toward your limit, so you still get the number of YouTube videos you asked for
> - Clean, structured YouTube video metadata that is ready for spreadsheets, scripts and APIs

### 📦 What Data You Can Extract with YouTube Video Downloader Max

Each result describes one YouTube video. YouTube Video Downloader Max groups the data like this:

- **Video details:** title, original YouTube URL, thumbnail, channel name, categories and description
- **Statistics:** view count, channel subscribers, duration and duration in words
- **Download links:** video-only, audio-only and merged links, plus requested and provided resolution
- **File information:** total file size and the time the download links expire
- **Status:** availability (for example `public`) and live status (for example `not_live`)

Counts such as views and subscribers are shortened, for example `1.25M` or `480K`.

### 🚀 How to Use YouTube Video Downloader Max

Follow these steps to run YouTube Video Downloader Max in Apify Console:

- Open the Actor and go to the **Input** tab.
- Add one or more **search keywords**, or paste YouTube video links under **Single URLs**.
- Set **Maximum Items per Keyword** and any views, length or date filters.
- Pick a **Video Resolution** and keep **Fetch Download Links** switched on.
- Click **Start**, then open the **Output** tab to view or export the YouTube video data.

You can also start YouTube Video Downloader Max through the Apify API, run it on a schedule, or connect it to other tools with Apify integrations.

### 🔎 How to Get Download Links for YouTube Videos by Keyword

Type a phrase such as `english movie trailer`, choose how many videos you want, and start the run. YouTube Video Downloader Max reads the YouTube search results page after page and skips videos that fail your filters.

YouTube Video Downloader Max keeps going until it has enough qualifying videos or YouTube runs out of results. YouTube usually stops after roughly 130–170 results per keyword, so a very high limit may return fewer videos.

### 🔗 Can You Use YouTube Video Downloader Max With Single Video URLs?

Yes. Add watch links or `youtu.be` share links to **Single URLs**. YouTube Video Downloader Max returns the same kind of record for each link as it does for a search result.

Single URLs are always returned. They are never filtered and never counted toward the keyword limit, so you can mix them with a YouTube keyword search in one run.

### 🎯 How YouTube Video Downloader Max Filters Work

The YouTube Video Downloader Max filters apply to YouTube keyword search results. They help you collect only the YouTube videos that matter.

- **Minimum views:** videos below the number are skipped.
- **Length range:** videos shorter than the minimum or longer than the maximum are skipped. A video that is exactly at the limit is kept.
- **Publish date:** keep videos published on or after one date, before another, or inside a range.
- **Replacement:** a skipped video is replaced by the next YouTube result, so skipped videos never reduce your count.

Live streams have no fixed length, so the length filter never removes them. If the maximum length is shorter than the minimum, or the end date is not later than the start date, the run stops with a clear input error.

### 🧩 YouTube Video Downloader Max Use Cases

- **Video research:** use YouTube Video Downloader Max to collect metadata for YouTube videos on a topic and compare views, length and channels.
- **Trend tracking:** combine minimum views with a date range to find recent YouTube videos that people actually watch.
- **Media review workflows:** YouTube Video Downloader Max gathers video and audio links for videos you are allowed to use.
- **Dataset building:** export clean YouTube video metadata for analysis or reporting.
- **Automation:** schedule YouTube Video Downloader Max for recurring keyword runs and send the YouTube results to your own systems.

> **⚠️ Responsible use**
>
> Download only content you own or have permission to use, and respect YouTube's terms and copyright law.

### ⚙️ Input

Open the **Input** tab and fill in the fields below. YouTube Video Downloader Max needs at least one keyword or one Single URL.

| Field | What it does |
|---|---|
| `keywords` | Search phrases typed as in the YouTube search box. Each keyword runs its own search. |
| `maxItems` | Videos to collect per keyword, from 1 to 200 (default 5). Duplicates and filtered videos do not count. |
| `minViews` | Skips videos with fewer views than this number. |
| `minDuration` / `maxDuration` | Length limits in hours, minutes and seconds. Live streams have no fixed length and are not filtered. |
| `newerThan` / `olderThan` | Publish-date range. Use `YYYY-MM-DD` or an age such as `2 weeks`. |
| `videoResolution` | 8K, 4K, 2K, 1080p, 720p, 480p, 360p, 240p or 144p (default 1080p). The merged link is currently 360p. |
| `fetchDownloadLinks` | On by default. Off gives a faster metadata-only run with `null` link fields. |
| `startUrls` | YouTube video URLs (watch or `youtu.be` links). Always returned, never filtered. |

**Example input:**

```json
{
  "keywords": ["mrbeast challenge", "english movie trailer"],
  "maxItems": 5,
  "minViews": 100000,
  "minDuration": { "hours": 0, "minutes": 1, "seconds": 0 },
  "maxDuration": { "hours": 0, "minutes": 20, "seconds": 0 },
  "newerThan": "2026-01-01",
  "videoResolution": "1080p",
  "fetchDownloadLinks": true,
  "startUrls": [{ "url": "https://www.youtube.com/watch?v=aBcD1eFgH2i" }]
}
```

### 📤 Output

YouTube Video Downloader Max writes one item per YouTube video to the default dataset. Open the **Output** tab to browse it as a table, or download it as JSON, CSV, Excel or HTML.

**Example output:**

```json
{
  "original_url": "https://www.youtube.com/watch?v=aBcD1eFgH2i",
  "requested_resolution": "1080p",
  "provided_resolution": "1080p",
  "title": "Lisbon in 48 Hours: A Travel Guide",
  "duration": "12:34",
  "channel": "Sample Travel Co",
  "duration_format": "12m 34s",
  "thumbnail": "https://i.ytimg.com/vi/aBcD1eFgH2i/maxresdefault.jpg",
  "downloadable_video_link": "https://<server>.googlevideo.com/videoplayback?expire=1792879200&...",
  "downloadable_audio_link": "https://<server>.googlevideo.com/videoplayback?expire=1792879200&...",
  "merge_downloadable_video_link": "https://<server>.googlevideo.com/videoplayback?expire=1792879200&...",
  "url_expires_at": "2026-10-24T22:00:00+00:00",
  "view_count": "1.25M",
  "categories": ["Travel & Events"],
  "description": "Two days in Lisbon: where to eat, what to see...",
  "availability": "public",
  "live_status": "not_live",
  "channel_subscribers": "480K",
  "video_filesize": "145.20MB"
}
```

The table below explains the key YouTube Video Downloader Max output fields:

| Field | Meaning |
|---|---|
| `downloadable_video_link` | Video-only file at the provided resolution |
| `downloadable_audio_link` | Separate audio file in the original language |
| `merge_downloadable_video_link` | One ready-to-play file with picture and sound |
| `requested_resolution` / `provided_resolution` | The resolution you asked for and the one returned |
| `url_expires_at` | When the download links stop working (UTC) |
| `video_filesize` | Combined size of the files behind the video and audio links |
| `availability` / `live_status` | Whether the YouTube video is public and whether it is live |

With `fetchDownloadLinks` off, the download-link fields and the details that need a full lookup (categories, provided resolution, file size and expiry time) are `null`.

### 💰 Pricing

> **💳 How billing works**
>
> - YouTube Video Downloader Max is billed per result: every video delivered to the dataset is one result.
> - The current rate is shown on the Actor's **Pricing** tab on Apify Store.
> - Set a maximum cost per run. The Actor stops delivering results once that limit is reached.

A small first run, such as 5 videos for one keyword, shows what a YouTube Video Downloader Max run costs before you scale up.

### 💡 Tips and Good Practices

- Start YouTube Video Downloader Max with the default of 5 videos per keyword to check the output quickly.
- Download links expire after a few hours, so read `url_expires_at` and use the links soon.
- The video and audio links are separate files. Use the merged link when you need picture and sound together.
- If a video fails, simply run YouTube Video Downloader Max again.
- Use specific keywords and a minimum view count to keep YouTube results relevant.
- Keep YouTube Video Downloader Max filters realistic: very narrow date or length ranges can leave fewer videos than your limit.

### 🙋 Frequently Asked Questions

#### 🔸 What data does YouTube Video Downloader Max return for each video?

Each YouTube Video Downloader Max item contains the title, URL, channel, subscribers, views, duration, thumbnail, categories, description, availability, live status, file size and three download links. The Output section lists every field.

#### 🔸 Can YouTube Video Downloader Max download YouTube videos in 4K or 8K?

With YouTube Video Downloader Max you can request 8K, 4K or any lower resolution. If YouTube does not offer your choice for a video, the closest lower resolution is used, and `provided_resolution` shows what you received.

#### 🔸 How long do the YouTube download links last?

The links expire after a few hours. YouTube Video Downloader Max stores the exact time in `url_expires_at` for every YouTube video.

#### 🔸 Do I need a YouTube API key or login to use YouTube Video Downloader Max?

No. YouTube Video Downloader Max works without a YouTube account, cookies or API key.

#### 🔸 Can I get YouTube video metadata without download links?

Yes. Turn off **Fetch Download Links** in YouTube Video Downloader Max for a faster run that uses the data shown in YouTube search results.

#### 🔸 Can YouTube Video Downloader Max filter YouTube videos by length and date?

Yes. Set a minimum and maximum length, a minimum view count, and a publish-date range. These filters apply to keyword search results.

#### 🔸 Does YouTube Video Downloader Max return Shorts, playlists or channels?

YouTube Video Downloader Max keyword search returns regular YouTube videos. Shorts, playlists and channel cards that appear in YouTube search results are skipped.

#### 🔸 Why are some download links empty?

Links are `null` when **Fetch Download Links** is off. They can also be empty if YouTube refuses a video after several retries. In that case YouTube Video Downloader Max returns the search data only, and a new run usually fixes it.

#### 🔸 Can I run YouTube Video Downloader Max on a schedule or through an API?

Yes. Like any Apify Actor, it can be started from the API, scheduled, and connected to other tools through integrations.

### 📬 Support

- Found a bug or need a feature in YouTube Video Downloader Max? Open an issue from the Actor page on Apify.
- Share a sample input with your question so the problem can be reproduced quickly.
- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

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

One or more keywords or phrases to search on YouTube, typed the way you would type them into the YouTube search box, for example `mrbeast challenge`. Enter a single keyword or as many as you like – each keyword runs its own search and has its own limit (see Maximum Items per Keyword). Leave empty if you only use Single URLs.

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

Maximum number of videos to collect for each search keyword. YouTube returns roughly 15–19 videos per results page and usually stops after about 130–170 results for one keyword, so a higher value may return fewer videos. Duplicate videos within a keyword are skipped, and so are videos rejected by the filters below – neither counts toward this limit. This limit applies to the keyword search only.

## `minViews` (type: `integer`):

Only collect videos that have been watched at least this many times. Videos below the threshold are skipped and do not count toward Maximum Items per Keyword, so the actor keeps going through the search results until it has enough qualifying videos or YouTube runs out of results. Leave empty for no view filter.

## `minDuration` (type: `object`):

Videos shorter than this are skipped. Use any mix of hours, minutes and seconds – for example 1 hour and 30 minutes, or simply 90 minutes. Keep all three boxes at 0 for no minimum. A video that is exactly this long is kept.

## `maxDuration` (type: `object`):

Videos longer than this are skipped. Use any mix of hours, minutes and seconds – for example 45 minutes, or 1 hour and 15 minutes. Keep all three boxes at 0 for no maximum. A video that is exactly this long is kept. If you set both limits, the maximum must not be shorter than the minimum.

## `newerThan` (type: `string`):

Only collect videos published on or after this date. Pick a calendar date (YYYY-MM-DD) or type how far back to go, such as `2 weeks` or `3 months` (meaning that long ago). Leave empty for no start date.

## `olderThan` (type: `string`):

Only collect videos published before this date. Pick a calendar date (YYYY-MM-DD) or type an age such as `1 month` (meaning that long ago). Combine it with 'Published On or After' to get a date range; the end date must be later than the start date. Leave empty for no end date.

## `videoResolution` (type: `string`):

Select the desired video resolution. If the selected resolution is not available for a video, the closest lower one is used (the lowest available one if every stream is higher). Applies to the video-only link; the merged link with sound is currently always 360p.

## `fetchDownloadLinks` (type: `boolean`):

Runs yt-dlp on every video to get the video, audio and merged download links, the resolution, file size, link expiry time, categories and the full description. Turn it off for a much faster, metadata-only run that uses just the data shown in YouTube's search results (title, channel, duration, views, thumbnail, short description): the download-link fields are then returned as `null`, and availability and live status are estimated.

## `startUrls` (type: `array`):

List of one or more YouTube video URLs, one per row – for example `https://www.youtube.com/watch?v=...` or a `https://youtu.be/...` share link. Optional if you use search keywords.

## Actor input object example

```json
{
  "keywords": [
    "mrbeast challenge",
    "english movie trailer"
  ],
  "maxItems": 5,
  "minViews": 100000,
  "minDuration": {
    "hours": 0,
    "minutes": 0,
    "seconds": 0
  },
  "maxDuration": {
    "hours": 0,
    "minutes": 0,
    "seconds": 0
  },
  "newerThan": "2026-01-01",
  "videoResolution": "1080p",
  "fetchDownloadLinks": true,
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=JBy1T5IykkU"
    },
    {
      "url": "https://youtu.be/G5RpJwCJDqc?si=h7DRF_vVVO8IB866"
    }
  ]
}
```

# 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 = {
    "keywords": [
        "mrbeast challenge",
        "english movie trailer"
    ],
    "maxItems": 5,
    "videoResolution": "1080p",
    "startUrls": [
        {
            "url": "https://www.youtube.com/watch?v=JBy1T5IykkU"
        },
        {
            "url": "https://youtu.be/G5RpJwCJDqc?si=h7DRF_vVVO8IB866"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/youtube-video-downloader-max").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 = {
    "keywords": [
        "mrbeast challenge",
        "english movie trailer",
    ],
    "maxItems": 5,
    "videoResolution": "1080p",
    "startUrls": [
        { "url": "https://www.youtube.com/watch?v=JBy1T5IykkU" },
        { "url": "https://youtu.be/G5RpJwCJDqc?si=h7DRF_vVVO8IB866" },
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/youtube-video-downloader-max").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 '{
  "keywords": [
    "mrbeast challenge",
    "english movie trailer"
  ],
  "maxItems": 5,
  "videoResolution": "1080p",
  "startUrls": [
    {
      "url": "https://www.youtube.com/watch?v=JBy1T5IykkU"
    },
    {
      "url": "https://youtu.be/G5RpJwCJDqc?si=h7DRF_vVVO8IB866"
    }
  ]
}' |
apify call alpha-scraper/youtube-video-downloader-max --silent --output-dataset

```

## MCP server setup

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

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/pqEApCeHVbac4Arjy/builds/0jyYuc4ze2ZLHc6Ad/openapi.json
