# Youtube Video Audio Downloader (`apple_yang/youtube-video-audio-downloader`) Actor

Youtube Video Downloader API for downloading videos and extracting audio from public content. Get HD video, audio, and metadata for AI, automation, and data workflows. Fast, reliable, and built for developers.

- **URL**: https://apify.com/apple\_yang/youtube-video-audio-downloader.md
- **Developed by:** [APISmith](https://apify.com/apple_yang) (community)
- **Categories:** AI, Social media, Videos
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## 📺 Youtube Video & Audio Downloader API

A lightweight and production-ready API that lets you **extract direct video and audio URLs** from public Youtube video links, along with rich metadata — built for developers, data teams, and AI agents.

---

### 📌 Overview

The **Youtube Video & Audio Downloader API** allows you to submit one or multiple Youtube video URLs and receive:

- 🎥 **Direct downloadable video URL**
- 🎧 **High-quality audio-only URL**
- 📊 **Structured metadata** (title, duration, engagement metrics, creator info, etc.)

This API is designed with **stability, clarity, and automation** in mind, making it easy to integrate into data pipelines, media tools, and AI-driven systems.

> ⚠️ This API supports **public Youtube videos only**.

---

### 🎁 What You Can Get From This API

For each video URL, the API returns:

- ✅ Direct **video playback URL**
- ✅ Video title
- ✅ Video duration (seconds)
- ✅ Engagement metrics (likes, views)
- ✅ Creator nickname & avatar
- ✅ Creation timestamp
- ✅ Per-URL error message (safe for batch jobs)

All responses are returned in **clean, structured JSON**, optimized for programmatic use.

---

### 🧩 Typical Use Cases

💡 This API is ideal for:

- 📥 **Video & audio downloading tools**
- 📊 **Train audio classification systems**
- 🧠 **Create multimodal datasets**
- 🔁 **Batch processing of Youtube video URLs**

Suitable for both experimentation and production workloads.

---

### 📥 Input Parameters

#### (1) Input Format

| Field      | Type           | Required | Description |
|-----------|----------------|----------|-------------|
| videoUrls | Array\<string> | Yes      | A list of public Youtube video URLs |

---

#### (2) Input Example

```json
{
  "videoUrls": ["https://m.youtube.com/watch?v=iwC-WvSwm1I"]
}
````

***

### 📤 Output Parameters

#### (1) Output Format Description

| Field            | Type   | Description |
|------------------|--------|-------------|
| url              | string | Normalized Youtube video URL |
| videoId          | string | Video Id |
| title            | string | Video title |
| videoUrl         | string | Direct video playback URL |
| audioUrl         | string | Direct audio-only file URL |
| shortDescription | string | Video description |
| thumbnail        | string | Video thumbnail |
| duration         | number | Video duration (seconds) |
| viewCount        | number | Number of views |
| likeCount        | number | Number of likes |
| author           | string | Creator nickname |
| avatarUri        | string | Creator avatar image URL |
| createTime       | number | Video creation timestamp |
| publishDate      | string | API response timestamp (ISO format) |
| category         | string | Video category |
| errMsg           | string | Error message (empty if success) |

***

#### (2) Output Example

```json

[
  {
    "url": "https://m.youtube.com/watch?v=iwC-WvSwm1I",
    "videoId": "iwC-WvSwm1I",
    "title": "📲Vantage App -  обзор нового суперприложения!",
    "channelId": "UCeQpv1_gx2b80rnqxp8eaYQ",
    "shortDescription": "Что если трейдинг, пассивный доход, Copy Trading и карта для расходов будут в одном приложении?\n\nВ этом видео разбираю новый Vantage App — платформу, которая может серьёзно изменить рынок в 2026.\n\nРазберём:\n✅ CFD трейдинг\n✅ Earn\n✅ Copy Trading\n✅ Сравнение с конкурентами\n\nVantage  - https://vantagemarkets.onelink.me/eGEJ/kp8f7ec7\nLinkedin: @Vantage https://www.linkedin.com/company/vantagemarkets/\nINS: @vantagemarkets https://www.instagram.com/vantagemarkets\nFacebook: @Vantage https://www.facebook.com/vantagemarkets.glb\nTikTok: @vantagemarkets_global https://www.tiktok.com/@vantagemarkets_global\nYoutube: @vantagemarkets https://www.youtube.com/@vantagemarkets\nX: @vantagemkts https://x.com/vantagemkts\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n ✅Please  Subscribe   📲 Telegram channel ▶  https://t.me/+m8fVhCrOEDcwZTUy\n                                         📲 TikTok ▶ https://bit.ly/3syAq8G\n                                         📲 X ( TWITTER ) ▶ https://x.com/7RWcrypto\n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬\n ✅For cooperation     🔊 Рlease contact us directly at email : maximus71999@gmail.com\n                                        🔊 Telegram : https://t.me/RW719 или @RW719 \n▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬        \n  ⛔ Видео создано для ознакомления и не является призывом к каким-либо действиям. Автор не  несет ответственности за любые убытки или потери, связанные с любыми продуктами или услугами, упомянутыми в видео.\n\n#RWcrypto\n#VantageAllinOne #VantageApp #TradingSimplified #VantageTrader #VantageFollower #VantageEarner #VantageSpender",
    "videoUrl": "https://rr4---sn-hp57kn6y.googlevideo.com/videoplayback?expire=1778336574&ei=3u7-abLPDJb4sfIP-_ap2AM&ip=23.150.36.122&id=o-AP0BJHoGdGu1nnFjHn8eSRpzCQpIHVHwb7hq07DpDG9e&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=377&met=1778314974%2C&mh=hj&mm=31%2C29&mn=sn-hp57kn6y%2Csn-hp57yne7&ms=au%2Crdu&mv=m&mvi=4&pl=24&rms=au%2Cau&bui=AbKmrwpqt-l-Dp07ignUwGJ_KO_GoPF_Ite4gU-zcyF7SsSBgEng_fX3t1Yva3F4TOaUrmvlW9zhjfNv&spc=96Xrv1jHUtKuIKWe-8BHuhoYuJshWr-Ipnz9AH46KXoByoFDWhY1t0kDJV0OmMcx&vprv=1&svpuc=1&mime=video%2Fmp4&rqh=1&gir=yes&clen=8581569&ratebypass=yes&dur=142.779&lmt=1777754096748740&mt=1778314622&fvip=2&fexp=51565116%2C51565681&c=ANDROID&txp=5319224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AHEqNM4wRAIgImncPUmRQZfdZPNWcev6NpLtFtfO-43t2Ud_bZsdrrMCIApjtEt0_KlXKWZJff7w43rMTjUCGb0YBH95bCSBtt5x&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms&lsig=APaTxxMwRgIhAKX-PrniuHdHvReSFbSb2py0_9ArD4alWcdRlYVKWFVwAiEAwPHKiJfucHr9ZPTwIcAfx33GFZfG77jo7qFcUOQy2zQ%3D",
    "publishDate": 1777719143000,
    "thumbnail": "https://i.ytimg.com/vi/iwC-WvSwm1I/hq720.jpg?sqp=-oaymwEhCK4FEIIDSFryq4qpAxMIARUAAAAAGAElAADIQj0AgKJD&rs=AOn4CLA7ZeI6tQdGa8jfKYGEH9KVTSMgmA",
    "author": "RW Crypto Insights | Trading, Analysis, Web3",
    "viewCount": 15947,
    "likeCount": 595,
    "duration": 143,
    "category": "Entertainment",
    "avatarUri": "https://yt3.ggpht.com/M30-wuVKwcZta2TRrioAllsk1xYSxvkWc5cXMDcEYZFEsPU27i5Dl_hs_s5EtZoOYPPTSQX0=s176-c-k-c0x00ffffff-no-rj",
    "errMsg": "",
    "timestamp": "2026-05-09T08:22:55.259Z"
  }
]

```

***

### ⭐ Why This API Is Different

🚀 **Built for automation, not manual scraping**

- 🤖 **AI Agent Friendly**\
  Stable fields, predictable structure, and batch-safe responses.

- 🎯 **URL-only, no noise**\
  Focused on one thing: extracting media from Youtube video URLs — no search, no ambiguity.

- 📦 **Batch-first design**\
  Each URL is processed independently with its own error status.

- 🛠️ **Production-grade reliability**\
  Built by a data-focused team experienced in large-scale video data extraction.

- 🌏 **Deep understanding of Chinese platforms**\
  Optimized specifically for Youtube’s media delivery and metadata structure.

***

### 📝 Notes

- Only **public Youtube videos** are supported
- Private, deleted, or restricted videos may fail
- Returned media URLs are intended for **programmatic access**
- Please ensure compliance with Youtube’s terms and local regulations when using downloaded content

***

### 🆘 Support

Need help or have questions?

📧 **Email:** support@apismith.online

# Actor input Schema

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

The URLs of the youtube you want to get the data from.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ]
}
```

# Actor output Schema

## `results` (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 = {
    "videoUrls": [
        "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apple_yang/youtube-video-audio-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 = { "videoUrls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"] }

# Run the Actor and wait for it to finish
run = client.actor("apple_yang/youtube-video-audio-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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=dQw4w9WgXcQ"
  ]
}' |
apify call apple_yang/youtube-video-audio-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=apple_yang/youtube-video-audio-downloader",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Youtube Video Audio Downloader",
        "description": "Youtube Video Downloader API for downloading videos and extracting audio from public content. Get HD video, audio, and metadata for AI, automation, and data workflows. Fast, reliable, and built for developers.",
        "version": "0.0",
        "x-build-id": "eyciqfU4aYuBitAf4"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/apple_yang~youtube-video-audio-downloader/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-apple_yang-youtube-video-audio-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/apple_yang~youtube-video-audio-downloader/runs": {
            "post": {
                "operationId": "runs-sync-apple_yang-youtube-video-audio-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/apple_yang~youtube-video-audio-downloader/run-sync": {
            "post": {
                "operationId": "run-sync-apple_yang-youtube-video-audio-downloader",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "videoUrls"
                ],
                "properties": {
                    "videoUrls": {
                        "title": "The URLs of the youtube",
                        "type": "array",
                        "description": "The URLs of the youtube you want to get the data from.",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
