Youtube Converter avatar
Youtube Converter

Pricing

from $50.00 / 1,000 results

Go to Apify Store
Youtube Converter

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

Andrei Pantazi

Maintained by Community

Actor stats

0

Bookmarked

23

Total users

5

Monthly active users

4 days ago

Last modified

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

FieldTypeDescription
healthCheckbooleanEnable health-check mode (false by default , set false if not)
videoUrlstringYouTube video URL
formatstringmp4 or mp3
qualitystringbest, 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.


The easiest and safest way is to use a browser extension.

Step-by-step (Google Chrome):

  1. Install the extension
    here👉 https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc

Chrome extensions menu


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

Chrome extensions menu


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

Chrome extensions menu


  1. Copy the cookies
  • Click the “Copy” button

Chrome extensions menu


  1. 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)

FieldTypeDescription
cookiesTextstringYouTube cookies (Netscape format)
cookiesBase64stringBase64-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
}