Video Download API

Download and Convert Videos and Audios from many Websites on the Internet using our API. Create your own Downloader Website.

Choose the integration method that best fits your needs

REST API

Paid

Direct REST API for advanced integrations. Build custom download interfaces with full control over the user experience and download process. Perfect for mobile apps and custom applications.

🎉 Now Available on RapidAPI!

We're excited to announce that our API is now also available on RapidAPI platform with additional payment options! The pricing remains the same, but you now have more flexibility in how you want to subscribe and pay.

Download Endpoint

GET /ajax/download.php
Query Parameters
format Required

The file format to download (mp3, 1080, 720, etc.)

url Required

The URL-encoded video URL

apikey Required

Your API key for authentication

add_info Optional

Include additional metadata (set to 1)

audio_quality Optional

Audio quality in kbps (128, 320)

allow_extended_duration Premium

Enable downloads for videos exceeding base duration limits

no_merge Optional

Control stream merging behavior. If set to 1, audio and video streams will not be merged together and users will get a zip file containing all files. Default is 0.

audio_language Optional

Specify the language code for the audio track (YouTube only). If the requested language is not available, the default audio track will be used. Supported codes: af, az, id, ms, bs, ca, cs, da, de, et, en-IN, en-GB, en, es, es-419, es-US, eu, fil, fr, fr-CA, gl, hr, zu, is, it, sw, lv, lt, hu, nl, no, uz, pl, pt-PT, pt, ro, sq, sk, sl, sr-Latn, fi, sv, vi, tr, be, bg, ky, kk, mk, mn, ru, sr, uk, el, hy, iw, ur, ar, fa, ne, mr, hi, as, bn, pa, gu, or, ta, te, kn, ml, si, th, lo, my, ka, am, km, zh-CN, zh-TW, zh-HK, ja, ko

start_time Optional

Start time in seconds for video segment download.

end_time Optional

End time in seconds for video segment download.

Request Examples
cURL Example
curl --location 'https://p.savenow.to/ajax/download.php?format=1080&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DK1Pu75yJUOE&apikey=YOUR_API_KEY&add_info=1&audio_quality=128&allow_extended_duration=1'

Response Example
{
"success": true,
"id": "abc123xyz789",
"content": "PGRpdiBjbGFzcz0iZG93bmxvYWQtY29udGVudCI+Li4uPC9kaXY+",
"info": {
"image": "https://i.ytimg.com/vi/K1Pu75yJUOE/maxresdefault.jpg",
"title": "Amazing Video Title - 4K Quality"
},
"extended_duration": {
"multiplier": 3,
"original_price": 0.00025,
"final_price": 0.00075
}
}
Note on Time Range Downloads: Due to technological challenges, there is no progress available for cut downloads (when using start_time/end_time). The system will provide information that the download has been initialized and the final status of the download (success/failed).

Format Options & Pricing

Audio Formats
MP3
$0.00030
120 min base
M4A
$0.00020
120 min base
FLAC
$0.00030
120 min base
WAV
$0.00030
120 min base
Video Formats
720p MP4
$0.00030
120 min base
1080p MP4
$0.00030
90 min base
1440p MP4
$0.00040
60 min base
4K/8K MP4
$0.00050
15 min base
Base Duration Limits Explained

Each format has a base duration limit included in the standard price. Videos exceeding these limits require the Extended Duration feature with tiered pricing.

Audio Language Examples

The audio_language parameter allows you to download YouTube videos with audio tracks in specific languages (if available).

Download MP3 with Spanish audio:
cURL - Spanish Audio
curl --location 'https://p.savenow.to/ajax/download.php?format=1&url=https%3A%2F%2Fyoutube.com%2Fwatch%3Fv%3Dxxx&audio_language=es&apikey=YOUR_API_KEY'
Download 720p video with French audio:
cURL - French Audio
curl --location 'https://p.savenow.to/ajax/download.php?format=7&url=https%3A%2F%2Fyoutube.com%2Fwatch%3Fv%3Dxxx&audio_language=fr&apikey=YOUR_API_KEY'
Download with German audio:
cURL - German Audio
curl --location 'https://p.savenow.to/ajax/download.php?format=1&url=https%3A%2F%2Fyoutube.com%2Fwatch%3Fv%3Dxxx&audio_language=de&apikey=YOUR_API_KEY'
Important Notes:
  • This parameter only works for YouTube videos
  • If the requested language audio track is not available, the download will automatically use the default audio track
  • The language code should match YouTube's language codes (use base language codes like 'en', 'es', 'fr')
  • The feature works for both audio-only downloads (MP3, M4A, etc.) and video downloads
  • No additional cost for using this parameter
Supported Language Codes:
af az id ms bs ca cs da de et en-IN en-GB en es es-419 es-US eu fil fr fr-CA gl hr zu is it sw lv lt hu nl no uz pl pt-PT pt ro sq sk sl sr-Latn fi sv vi tr be bg ky kk mk mn ru sr uk el hy iw ur ar fa ne mr hi as bn pa gu or ta te kn ml si th lo my ka am km zh-CN zh-TW zh-HK ja ko

Advanced Pricing Calculator

Calculate your costs with Extended Duration Downloads support

Audio Formats 120 min base

Video Formats

1 100K

Extended Duration Downloads

Premium feature for videos longer than base duration

Premium

Price Breakdown

Selected Format: MP3
Base Duration Limit: 120 minutes
Price per download: $0.00030
Quantity: 1,000
Total Cost: $0.3000

Minimum charge: $1.00

Extended Duration

Premium pricing for longer videos

Tiered Pricing

Transparent duration-based costs

Volume Discounts

Better rates at higher volumes

No Hidden Fees

What you see is what you pay

About Extended Duration Downloads

Base Duration Limits
4K/8K Formats: 15 minutes
1440p Format: 60 minutes
1080p Format: 90 minutes
Other Formats: 120 minutes
Pricing Structure
1st base duration: 1x price
2nd base duration: 3x price
3rd base duration: 5x price
Each additional: +2x price

Note: Extended Duration Downloads is a premium feature available only for YouTube videos. Enable the feature above to see pricing for videos longer than the base duration limits.

Response Documentation

Response Properties:
Parameters Description
success A boolean value indicating the success of the download operation. If true, the download was successful; if false, there was an error.
id A unique identifier for the download request. This ID can be used to query the progress of the download using the progress endpoint.
content The Base64 encoded HTML content for the UI representation of the download. This content can be rendered to display the progress and download options to the user.
info An object containing additional information about the downloaded content.
extended_duration An object containing extended duration pricing details. Only present when allow_extended_duration=1 and the video exceeds base duration limits.
Info Object Properties:
Parameters Description
image The URL of an image associated with the downloaded content. This image could be used as a thumbnail or preview for the downloaded content.
title A title or description of the downloaded content. This could provide more context about what the content is, helping users identify their downloads.
Extended Duration Object Properties:
Parameters Description
multiplier The price multiplier applied based on video duration (e.g., 3 for 3x pricing).
original_price The base price for the selected format before multiplier is applied.
final_price The final price after applying the duration multiplier.
Status Codes:
Parameters Description
200 OK Successful response.
400 Bad Request Missing or invalid parameters.
500 Internal Service Error Server error.
Complete Response Example
{
"success": true,
"id": "abc123xyz789",
"content": "PGRpdiBjbGFzcz0iZG93bmxvYWQtY29udGVudCI+Li4uPC9kaXY+",
"info": {
"image": "https://i.ytimg.com/vi/K1Pu75yJUOE/maxresdefault.jpg",
"title": "Amazing Video Title - 4K Quality"
},
"extended_duration": {
"multiplier": 3,
"original_price": 0.00050,
"final_price": 0.00150
}
}
Integration Tips
  • Always check the success property before processing other fields
  • Use the id to track download progress via the progress endpoint
  • The content field contains Base64 encoded HTML - decode before displaying
  • extended_duration object only appears when premium pricing applies

Progress Endpoint

GET /ajax/progress
Parameters
id Required

The unique download ID from the initial request

Response Properties
progress: 0-1000 (1000 = 100%)
success: 1 for success, 0 for failure
download_url: Final download link (when ready)
text: Human-readable status
Example Request
cURL
curl --location 'https://p.savenow.to/ajax/progress?id=YOUR_JOB_ID'
Example Response
{
"success": 1,
"progress": 1000,
"download_url": "https://cdn.example.com/file.mp4",
"text": "Finished"
}

Extended Duration Downloads

Premium

Download YouTube videos longer than standard base limits with transparent tiered pricing based on video length.

How Pricing Works
1st base duration 1x price
2nd base duration 3x price
3rd base duration 5x price
Each additional +2x price
Pricing Example (4K Format)
0-15 min $0.00050 (1x)
15-30 min $0.00150 (3x)
30-45 min $0.00250 (5x)
45-60 min $0.00350 (7x)

Base duration for 4K/8K formats: 15 minutes

Important Notes
  • • Currently supports YouTube videos only
  • • No hard duration limit - pricing scales automatically
  • • Feature activates only when allow_extended_duration=1
  • • Insufficient balance will prevent download initiation

YouTube-Specific Features

Audio Language Selection

Download videos with specific audio languages when available. Perfect for educational content and international media.

audio_language=es

Spanish audio example

Time Range Downloads

Download specific segments using start_time and end_time parameters.

start_time=60&end_time=180

Download from 1 minute to 3 minutes

Stream Control

Control how audio and video streams are merged using the no_merge parameter.

no_merge=1

Separate files in ZIP format

Supported Languages
en es fr de ja +50 more

Status Codes & Error Handling

HTTP Status Codes
200 OK Successful response
400 Bad Request Invalid parameters
500 Server Error Internal service error
Best Practices

Poll Progress Wisely

Check progress every 2-3 seconds, not more frequently

Handle Timeouts

Implement proper timeout handling for long downloads

Validate URLs

Ensure URLs are properly encoded before sending

Card API

Free

Complete download interface with progress tracking, format selection, and thumbnail preview. Perfect for embedding a full-featured downloader into your website with monetization capabilities.

Real-time Progress Tracking

Visual progress bar with percentage completion and status updates

Multiple Format Support

Audio (MP3, M4A, FLAC) and video formats (360p to 8K)

Ad Revenue Integration

25% of downloads redirect to your ad URL for monetization

Auto-Resize & Responsive

Automatically adjusts height and works on all devices

Best for:

Websites wanting a complete download solution with built-in monetization. Perfect for content creators, educational platforms, and media websites.

URL Parameters

Parameter Description Required
url The YouTube URL you want to download Yes
adUrl Your AD URL - 25% of downloads redirect here for monetization Optional
css Link to your custom CSS file to style the download interface Optional

Implementation Example

<!-- Basic Card API Integration -->
<iframe 
id="cardApiIframe" 
scrolling="no" 
width="100%" 
height="100%" 
allowtransparency="true" 
style="border: none; border-radius: 12px;"
src="https://p.savenow.to/api/card2/?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&adUrl=https://youradurl.com">
</iframe>

<!-- Put the Library in your <head> tag -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.min.js"></script>

<!-- Put the resizer code after the <iframe> tag -->
<script>
iFrameResize({
log: false
}, "#cardApiIframe")
</script>

<!-- Custom CSS Styling (Optional) -->
<iframe 
id="styledCardApi" 
scrolling="no" 
width="100%" 
height="100%" 
allowtransparency="true" 
style="border: none; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);"
src="https://p.savenow.to/api/card2/?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&adUrl=https://youradurl.com&css=https://yoursite.com/custom-style.css">
</iframe>

Live Demo

This shows how the Card API interface appears to users

Button API

Free

We offer a convenient solution for webmasters looking to add YouTube downloading capability on their platforms. The Button API is straightforward and blends seamlessly into most websites, providing a hassle-free method for site visitors to download YouTube content.

Format-Specific Buttons

Create dedicated buttons for specific formats (MP3, 720p, 1080p, etc.)

Custom Styling & Colors

Apply custom CSS, colors, and styling to match your brand perfectly

Lightweight Integration

Minimal footprint with fast loading times and simple iframe implementation

Built-in Monetization

25% of downloads automatically redirect to your ad URL for revenue generation

Best for:

Existing websites that need quick download functionality without UI overhaul. Perfect for blogs, news sites, social media platforms, and content aggregators looking for seamless integration.

Prerequisites

A working website or web application
Basic knowledge of HTML and CSS
Access to your website's code for iframe embedding
A valid YouTube URL for testing

Steps to Integrate the Button API

1
Familiarize with the API Endpoint

The primary API endpoint for this button feature is:

https://p.savenow.to/api/button/?url=YOUR_YOUTUBE_VIDEO_URL&f=FORMAT_VALUE&color=COLOR_VALUE&linkUrl=AD_URL&css=CSS_URL
2
Place the Button on Your Site

Integrate the button by embedding the following iframe code:

<iframe src="https://p.savenow.to/api/button/?url=YOUR_YOUTUBE_VIDEO_URL&f=FORMAT_VALUE&color=COLOR_VALUE&linkUrl=AD_URL&css=CSS_URL" style="width:230px;height:60px;border:0;overflow:hidden;"> </iframe>

Remember to substitute the placeholders (e.g., YOUR_YOUTUBE_VIDEO_URL) with actual values.

URL Parameters

Parameter Description Required
url The YouTube URL you wish to make downloadable Required
adUrl Your AD URL - 25% of downloads redirect here for monetization Optional
css Link to custom CSS file for advanced styling Optional

Implementation Examples

<!-- Single Format Button (MP3) -->
<iframe 
src="https://p.savenow.to/api/button/?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&f=mp3&color=10b981&linkUrl=https://youradurl.com" 
style="width:230px;height:60px;border:0;overflow:hidden;">
</iframe>

<!-- Multiple Format Buttons -->
<div class="download-buttons">
<!-- MP3 Button -->
<iframe 
src="https://p.savenow.to/api/button/?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&f=mp3&color=10b981&linkUrl=https://youradurl.com" 
style="width:120px;height:50px;border:0;margin:5px;">
</iframe>

<!-- 720p Button -->
<iframe 
src="https://p.savenow.to/api/button/?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&f=720&color=3b82f6&linkUrl=https://youradurl.com" 
style="width:120px;height:50px;border:0;margin:5px;">
</iframe>

<!-- 1080p Button -->
<iframe 
src="https://p.savenow.to/api/button/?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&f=1080&color=8b5cf6&linkUrl=https://youradurl.com" 
style="width:120px;height:50px;border:0;margin:5px;">
</iframe>
</div>

<!-- Custom Styled Button with CSS -->
<iframe 
src="https://p.savenow.to/api/button/?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&f=mp3&css=https://yoursite.com/button-style.css&linkUrl=https://youradurl.com" 
style="width:250px;height:70px;border:0;border-radius:12px;box-shadow: 0 4px 6px rgba(0,0,0,0.1);">
</iframe>

Available Formats

Audio Formats
MP3 mp3
M4A m4a
WEBM Audio webm_audio
AAC aac
FLAC flac
OPUS opus
OGG ogg
WAV wav
Video Formats
MP4 360p 360
MP4 480p 480
MP4 720p 720
MP4 1080p 1080
MP4 4K 4k
MP4 8K 8k

Live Demo

Try out the Button API below. Click the button to download the sample YouTube video in MP3 format.

Widget API

Free

Complete widget with URL input field that allows users to paste any YouTube URL. Perfect for creating standalone downloader tools with built-in monetization capabilities.

URL Input Interface

Built-in input field where users can paste YouTube URLs

Auto-Detection

Automatically detects video information and available formats

Auto-Resize

Automatically adjusts to content and responsive design

Revenue Generation

25% of downloads redirect to your ad URL for monetization

Best for:

Websites wanting a complete downloader tool where users input their own URLs. Perfect for standalone downloader sites, tool websites, and apps.

URL Parameters

Parameter Description Required
url The YouTube URL you want to download Yes
adUrl Your AD URL - 25% of downloads redirect here for monetization Optional
css Link to your custom CSS file to style the widget interface Optional

Implementation Example

<!-- Basic Widget API Integration -->
<iframe 
id="widgetApiIframe" 
width="100%" 
height="100%" 
allowtransparency="true" 
scrolling="no" 
style="border: none; border-radius: 12px;"
src="https://p.savenow.to/api/widget?adUrl=https://youradurl.com">
</iframe>

<!-- Put the Library in your <head> tag -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.min.js"></script>

<!-- Put the resizer code after the <iframe> tag -->
<script>
iFrameResize({
log: false
}, "#widgetApiIframe")
</script>

<!-- Custom Styled Widget -->
<div class="widget-container" style="max-width: 600px; margin: 0 auto;">
<iframe 
id="customWidgetApi" 
width="100%" 
height="100%" 
allowtransparency="true" 
scrolling="no" 
style="border: none; border-radius: 15px; box-shadow: 0 8px 25px rgba(0,0,0,0.15);"
src="https://p.savenow.to/api/widget?adUrl=https://youradurl.com&css=https://yoursite.com/widget-style.css">
</iframe>
</div>

<script>
iFrameResize({
log: false,
heightCalculationMethod: 'taggedElement'
}, "#customWidgetApi")
</script>

Widget Preview

This shows how the Widget API interface appears to users

Templates

Free

Explore our free templates designed specifically for YouTube downloader websites! Get started easily with different frameworks like React, Laravel, Vue, and JavaScript. These templates make it simple to build a fully functional downloader, providing a sleek and efficient way for users to save YouTube content in various formats. Our templates have got you covered—completely free and ready to customize!

loader.to
YouTube Video Downloader 4K Video Downloader YouTube to MP3 YouTube Playlist Downloader YouTube to WAV YouTube 1080p Downloader APIs

YouTube Video
Downloader

Try the unique tool for quick online-free downloads from YouTube. Transform your offline video repository with this fast and efficient downloader.

MP4 (720p)
WEBSITE ANALYTICS & TRAFFIC
SUPERIOR ANALYTICS PLATFORM