Get YouTube Download Link

Merge video and audio from YouTube

Overview

The difference between Get Direct Link and Download and Merge is that the video will be downloaded, audio and video will be merged and then the share link will be created

Proxy is required to get the list of download links.

API Request

Endpoint: https://api.apify.com/v2/acts/wilcode~all-social-media-video-downloader/runs?token=<YOUR_API_TOKEN>

Method: POST

Headers:

{
  "Content-Type": "application/json"
}

Request Body:

{
  "url": "https://www.youtube.com/watch?v=HCjNJDNzw8Y",
  "proxySettings": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "CA"
  },
  "mergeYoutube": {
    "quality": 720
  }
}

Download & Merge audio and video from YouTube

You need to add the following field in the body:

quality (144, 240, 360, 480, 720, 1080, 1440, 2160) is the quality of the video you want to download

The tool only downloads videos with quality equal to or lower than the specified quality

(if the entered quality is not available)

cURL

JSON Results

The list of download links and resolutions will be listed in the formats attribute.

The download url is the file saved in your Storage (Apify), this link will be automatically generated

Other language examples

Fetch in JavaScript

Python

C#

Last updated