Youtube downloader

Download Youtube videos into your storage

Decodo Youtube downloader (target: youtube_video) can be used to download and save specified Youtube videos into the s3 compatible storage.


youtube_video

📘

The youtube_video target only supports asynchronous and batch integrations.

📘

Batch youtube_video requests are limited to 100 video per request.

Videos must be up to 3 hours in length in order to be downloadable.

📘

To get access or learn more, please Contact our sales team

Download a YouTube video into an Amazon S3-compatible storage location.

Parameter

Type

Required

Description

Default

Example

target

string

Required to select YouTube download.

youtube_video

query

string

YouTube video ID.

dFu9aKJoqGg

upload_url

string

The URL to a S3-compatible storage location.

https://<key>:<secreat>@<bucket-url>

media

string

Select between video without sound, audio, or audio_video for both.

audio_video

quality

string

Quality of video or audio. Valid options: best, worst, 480, 720, 1080, 1440, 2160.

720

Testing

In order to test the youtube_video target, you may choose to upload straight to your storage provider, or you may upload into a test S3-compatible drive, such as https://app.idrivee2.com/.

S3-compatible providers

Bellow are a number of S3-compatible providers that will work with this target out of the box:

Sample request

curl --request 'POST' \
        --url 'https://scraper-api.decodo.com/v2/task' \
        --header 'Accept: application/json' \
        --header 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ // update with base64encode(username:password)
        --header 'Content-Type: application/json' \
        --data '
    {
      "target": "youtube_video",
      "query": "PFRn5zKJTD8",
      "upload_url": "https://storage_username:storage_password.ie.idrivee2-48.com/youtube"
    }
'