Youtube Converter
Pricing
from $50.00 / 1,000 results
Youtube Converter
Download YouTube videos or extract audio using a reliable yt-dlp–based actor. Supports MP4 and MP3 output, quality selection, retries, and optional cookies for authenticated content. Designed for automation, APIs, and production workflows on Apify.
Pricing
from $50.00 / 1,000 results
Rating
0.0
(0)
Developer

Andrei Pantazi
Actor stats
0
Bookmarked
23
Total users
5
Monthly active users
4 days ago
Last modified
Categories
Share
🎬 YouTube Converter (MP4 / MP3)
A reliable Apify Actor for downloading YouTube videos or extracting audio. It does not require proxies, as we use our own cookies. Built for automation, APIs, and production workflows.
✅ MP4 & MP3 output
✅ Quality selection
✅ Optional cookies for gated content
✅ Retries & resilient downloads
✅ Apify Store–friendly health checks
📥 Input
Required / common fields
| Field | Type | Description |
|---|---|---|
healthCheck | boolean | Enable health-check mode (false by default , set false if not) |
videoUrl | string | YouTube video URL |
format | string | mp4 or mp3 |
quality | string | best, 1080, 720, 480 (MP4 only) |
🚀 Features
- 🎥 Download single YouTube videos
- 🎵 Extract audio as MP3
- 🎚 Select video quality (
best,1080,720,480) - 🔐 Optional YouTube cookies for:
- Age-restricted videos
- Login-required content
- Bot-protected streams
- 🔁 Automatic retries & robust error handling
- 🧪 Health-check mode for Apify Store auto-tests
🍪 How to Export YouTube Cookies (Chrome) important!
Some YouTube videos require authentication (login, age verification, bot protection).
To download these videos, you must provide YouTube cookies.
(I strongly recommend using cookies as 90% of the videos are gated)
This Actor supports cookies in Netscape format.
✅ Recommended Method (Chrome Extension)
The easiest and safest way is to use a browser extension.
Step-by-step (Google Chrome):
- Install the extension
here👉 https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc

- Open YouTube
- Go to https://www.youtube.com
- Make sure you are logged in
- In the top-right corner, click the puzzle icon (Extensions)

- Use the Chrome extension
- Click the “Get cookies.txt” extension icon

- Copy the cookies
- Click the “Copy” button

- Paste cookies into the Actor
- Open the Actor input
- Paste the entire content into:
- YouTube cookies (Netscape format)
✅ Done — authenticated downloads will now work.
🔐 Security Notes
- Cookies are never logged
- Cookies are used only during the run
- Cookies are not stored permanently
- You can revoke cookies anytime by logging out of YouTube
⚠️ Do NOT share cookies publicly — they grant access to your account.
🧪 Troubleshooting
Still blocked?
- Make sure you are logged in to YouTube
- Re-export cookies after logging in
- Try a lower video quality (480p / 720p)
- Avoid private or deleted videos
❓ Do cookies from one video work for another?
Yes.
Cookies are account-based, not video-based.
You can:
- Export cookies once
- Use them for any YouTube video
- Until you log out or cookies expire
🧪 Health Check Mode (Apify Store)
This Actor supports a special health-check mode used by Apify Store. When actual download is expected, this should be set to FALSE
When enabled:
- 🚫 No video is downloaded
- 🔐 No cookies are required
- ⚡ A lightweight result is returned instantly
This ensures:
- ✅ Stable daily store tests
- ✅ No unnecessary bandwidth usage
🍪 Cookies (optional)
| Field | Type | Description |
|---|---|---|
cookiesText | string | YouTube cookies (Netscape format) |
cookiesBase64 | string | Base64-encoded cookies file |
🔒 Cookies are never logged and are used only during the run.
📤 Output
📊 Dataset result
Each successful run produces one dataset item:
{"ok": true,"videoUrl": "https://www.youtube.com/watch?v=...","format": "mp4","quality": "480","fileName": "Video Title [id].mp4","fileSizeBytes": 23817291,"storedAs": "OUTPUT_FILE","cookiesUsed": true}