arrow-down-to-lineGet 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.

circle-check
triangle-exclamation

API Request

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

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
  }
}
circle-info

Download & Merge audio and video from YouTube

You need to add the following field in the body:

circle-info

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)

circle-check

cURL

JSON Results

circle-info

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

circle-check
circle-info

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

triangle-exclamation
triangle-exclamation

Other language examples

Fetch in JavaScript

Python

C#

Last updated