# YouTube Shorts Downloader (`deepmine/youtube-shorts-downloader`) Actor

YouTube Shorts Downloader saves Short links, channel Shorts tabs and video links as MP4 with sound, up to 720p by default. Billed by the second with a 60-second minimum per file. A 30-second Short costs about $0.016 at 720p or $0.008 up to 480p.

- **URL**: https://apify.com/deepmine/youtube-shorts-downloader.md
- **Developed by:** [DeepMine](https://apify.com/deepmine) (community)
- **Categories:** Videos, Social media, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.13 / 1,000 480p video seconds

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

**YouTube Shorts Downloader** saves YouTube Shorts as **MP4 files with sound**, in the best quality up to 720p.
Paste Short links, or a channel's Shorts tab to get its newest Shorts, and click Start: every file is saved with a
download link, the title, channel and duration. Billing is per second, with a 60-second minimum. **A 30-second Short costs about $0.016 at 720p**, or $0.008 up to 480p.

No account, no cookies and no browser extension: you only need the links.

### What you get

- **MP4 video with sound** (H.264 + AAC) in the best quality up to 720p, which plays on every phone, computer and
  editor. MP4 480p, 360p and audio only (M4A) are there too.
- **Shorts, whole channels and plain videos.** A channel's Shorts tab (`youtube.com/@name/shorts`) adds its newest
  Shorts first; normal video links and bare video ids work as well.
- **One row per file** with a direct download link, ready for a spreadsheet, a script or an automation.

### How to use it

1. Paste Short links or a channel's Shorts tab link into **YouTube Shorts URLs**.
2. Keep the format at **MP4 best up to 720p**, or pick MP4 480p, MP4 360p or Audio only.
3. Click **Start**. When the run ends, open the **Output** tab and click a file link to download it.

If YouTube doesn't offer a Short at 720p, you get the tallest height it has, and the row's `qualityNote` says why.

### Input example

```json
{
  "urls": [
    "https://www.youtube.com/shorts/PxMEoQ9TXLs",
    "https://www.youtube.com/@MrBeast/shorts"
  ],
  "format": "video_720p",
  "maxVideos": 20
}
```

| Field | What it does |
| --- | --- |
| `urls` | Short links, channel Shorts tabs, video links or bare video ids. |
| `format` | `video_720p` (best up to 720p, the default), `video_480p`, `video_360p` or `audio_m4a`. |
| `maxVideos` | Stop after this many Shorts in all, channels included (default 50). |

### Output example

One row looks like this:

```json
{
  "videoId": "PxMEoQ9TXLs",
  "title": "Philly Cheesesteak @ Jim's on South Street",
  "channelName": "Stay Eatin' Bruh",
  "videoUrl": "https://www.youtube.com/watch?v=PxMEoQ9TXLs",
  "durationSeconds": 12,
  "duration": "0:12",
  "format": "video_720p",
  "quality": "720p",
  "qualityNote": null,
  "container": "mp4",
  "fileUrl": "https://api.apify.com/v2/key-value-stores/<store id>/records/PxMEoQ9TXLs-video-720p.mp4",
  "fileKey": "PxMEoQ9TXLs-video-720p.mp4",
  "fileStorage": "Run key-value store",
  "chargedSeconds": 60
}
```

Open the `fileUrl` in each dataset row to download your file. Files stay in the run’s key-value store
for your plan’s retention period.
The `fileStorage` column tells you where they were saved. The run summary lists files saved and failed and seconds charged.

### Pricing

You pay by the second, at the quality you actually get, and every file counts at least one minute. Most Shorts
are under a minute, so one Short costs one minute:

| What is saved | Per minute | 100 Shorts under a minute |
| --- | --- | --- |
| MP4 up to 480p | $0.008 | $0.80 |
| MP4 at 720p | $0.016 | $1.60 |
| Audio only (M4A) | $0.0045 | $0.45 |

A longer clip pays for each second past the first minute: a 1:30 video at 720p is about $0.024.

If you ask for 720p but YouTube only has 480p, you pay the lower price. Missing, private, removed and failed Shorts
are never charged, and the dataset rows are free. The run checks your spending limit before each file, so it never
goes over it.

### Good to know

- **A Short isn't found:** links to private, removed or non-existent videos get the line "Video not found or
  unavailable" in the summary and cost nothing.
- **Nothing could be downloaded:** YouTube sometimes refuses every proxy IP a run has, most often on plans with only
  a few shared proxy IPs. The run then saves nothing, charges nothing and says so; try again later.
- **Longer videos:** to save long videos, playlists or 720p lectures, use our YouTube Video Downloader.

### FAQ

**Do I need a YouTube account or cookies?** No. Paste public links and run.

**Can I download all Shorts of a channel?** Yes, paste the channel's Shorts tab link (`youtube.com/@name/shorts`)
and set `maxVideos` to how many of its newest Shorts you want.

**Can I use it from my own code?** Yes. Start runs through the Apify API or one of the Apify client libraries, then
read the dataset rows and download each `fileUrl`.

# Actor input Schema

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

Short links, a channel's Shorts tab (youtube.com/@name/shorts: its newest Shorts first), plain video links or bare video ids.

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

MP4 with sound (H.264 + AAC, plays everywhere) in the best quality up to 720p, MP4 480p or 360p, or the sound only as M4A. A Short that isn't offered at the chosen height comes at the tallest height it has.

## `maxVideos` (type: `integer`):

Stop after this many Shorts in all. A channel's Shorts tab adds its newest Shorts up to this number.

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

Apify datacenter proxy is the default and the cheapest.

## Actor input object example

```json
{
  "urls": [
    "https://www.youtube.com/shorts/PxMEoQ9TXLs"
  ],
  "format": "video_720p",
  "maxVideos": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "urls": [
        "https://www.youtube.com/shorts/PxMEoQ9TXLs"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/youtube-shorts-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 = { "urls": ["https://www.youtube.com/shorts/PxMEoQ9TXLs"] }

# Run the Actor and wait for it to finish
run = client.actor("deepmine/youtube-shorts-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 '{
  "urls": [
    "https://www.youtube.com/shorts/PxMEoQ9TXLs"
  ]
}' |
apify call deepmine/youtube-shorts-downloader --silent --output-dataset

```

## MCP server setup

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