Skip to content
//YouTube Video Downloader example\\

Download audio as MP3 with subtitles, 1 video

Audio-only file plus the subtitle track.

Updated October 21, 2026

Input

The input this example runs YouTube Video Downloader with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Video linksvideos
https://www.youtube.com/watch?v=kJQP7kiw5Fk
Maximum videosmaxVideos
10
Preferred qualitypreferredQuality
720p
Preferred formatpreferredFormat
mp3
Save the filestoreInKVStore
Yes
Name the file withfilenameTemplateParts
title
SubtitlestranscriptionAndSubtitle
Download captions when the video has them
.json
{
  "videos": [
    {
      "url": "https://www.youtube.com/watch?v=kJQP7kiw5Fk"
    }
  ],
  "maxVideos": 10,
  "preferredFormat": "mp3",
  "transcriptionAndSubtitle": "ALWAYS_SUBTITLES",
  "preferredQuality": "720p",
  "storeInKVStore": true,
  "filenameTemplateParts": [
    "title"
  ]
}

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes. The advantage lasts forever.

No credit card. No setup calls.