Explore and Integrate

Video Downloader API

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

Card API

Card API free
Documentation

Enhance your website by integrating the Loader.to Card iframe API, which simplifies the process of offering audio and video downloads and conversions to your users. This robust API is not only efficient but also allows monetization through ad redirections.

Parameters

The API works through a set of parameters that can be configured to meet your specific needs:

Parameters Description
url The YouTube URL you want to download
adUrl Your AD URL - 25% of all downloads will be redirected to your AD URL
css Link to your custom CSS for the download button! Style the button any way you want!

Integrate the Card API

Insert this Code onto your Website:

<iframe id="cardApiIframe" scrolling="no" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border: none" src="https://p.oceansaver.in/api/card2/?url=https://www.youtube.com/watch?v=OUHVRWdVQCI&adUrl=https://myAdurl.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>

Example

Widget API

Widget API free
Documentation

Enhance your website by integrating the Loader.to Card iframe API, which simplifies the process of offering audio and video downloads and conversions to your users. This robust API is not only efficient but also allows monetization through ad redirections.

Parameters

The API works through a set of parameters that can be configured to meet your specific needs:

Parameters Description
url The YouTube URL you want to download
adUrl Your AD URL - 25% of all downloads will be redirected to your AD URL
css Link to your custom CSS for the download button! Style the button any way you want!

Integrate the Card API

Insert this Code onto your Website:

<iframe id="widgetApiIframe" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border: none" src="https://p.oceansaver.in/api/widget?adUrl=https://myAdurl.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>

Example

Button API

Button API free
Documentation

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. Below is a detailed guide on using this feature.

Prerequisites

  • A Website: This guide presumes you have a functional website ready for integration.
  • Basic HTML Understanding: Knowing how to place code snippets within your site's structure will be crucial.

Parameters

Parameters Description
url The YouTube URL you wish to make downloadable.
adUrl Your AD URL - 25% of all downloads will be redirected to your AD URL
css Link to your custom CSS for the download button! Style the button any way you want!

Steps to Integrate the Button API

  1. Familiarize with the API Endpoint

    The primary API endpoint for this button feature is:

    https://p.oceansaver.in/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.oceansaver.in/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.

  3. Customize the Button

    The API provides customization settings for:

    • color: This determines the button's color (e.g., #FF0000).
    • text: This modifies the text shown on the button (e.g., Download Video).

    Incorporate these into the API URL as shown:

    
                                
                                
                            
  4. Test the Integration

    After the integration, ensure:

    • Your web page showcases the button appropriately.
    • Pressing the button starts the video's download procedure.
  5. Further Style Adjustments (If Needed)

    Use CSS to further modify the iframe or adjust its positioning to fit your site's design.
    The Button API provides a hassle-free method for site visitors to download YouTube content. Incorporating this tool elevates your platform's value, but it's essential to acknowledge copyright laws and adhere to terms of service when leveraging such integrations.

Formats

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

Example

Rest API

Rest API paid
Documentation

🎉 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.

Check us out on RapidAPI
Download Endpoint

HTTP Method:

GET

URL:

https://p.oceansaver.in/ajax/download.php

Query Parameters:

Parameters Description
format
The file format to download. (required)
url
The encoded URL of the video. (required)
apikey
Your API key. (required)
add_info
Include additional information in response. Set to 1 to enable.
audio_quality
Audio quality in kbps (e.g., 128).
allow_extended_duration
Enable extended duration downloads for videos exceeding base limits. Set to 1 to enable. (Premium feature)

Request Example:

curl --location 'https://p.oceansaver.in/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'

Format Options:

Format Description Format Value Price per Download Base Duration Limit
mp3 MP3 $0.00015 120 minutes
m4a M4A $0.00020 120 minutes
webm_audio WEBM Audio $0.00015 120 minutes
aac AAC $0.00020 120 minutes
flac FLAC $0.00030 120 minutes
opus OPUS $0.00015 120 minutes
ogg OGG $0.00015 120 minutes
wav WAV $0.00030 120 minutes
mp2 MP2 $0.00015 120 minutes
144 MP4 144p $0.00010 120 minutes
240 MP4 240p $0.00010 120 minutes
360 MP4 360p $0.00010 120 minutes
480 MP4 480p $0.00010 120 minutes
720 MP4 720p $0.00010 120 minutes
1080 MP4 1080p $0.00015 90 minutes
1440 MP4 1440p $0.00020 60 minutes
4k MP4 4K $0.00025 15 minutes
8k MP4 8K $0.00030 15 minutes

Pricing Calculator:

Format

Quantity

Response:

Returns a JSON object containing the download link and other metadata.

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

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.
Progress Endpoint

HTTP Method:

GET

URL:

https://p.oceansaver.in/ajax/progress

Query Parameters:

Parameters Description
id
The unique ID for the download. (required)

Request Example:

curl --location 'https://p.oceansaver.in/ajax/progress?id=YOUR_JOB_ID'

Response:

Returns a JSON object containing the progress percentage and download URL if available.

Response Properties:

Parameters Description
progress
Progress of the download in percentage. (0 to 1000; 1000 = 100%)
download_url
The URL to download the file. (optional)
success
Indicates if the operation was successful. 1 for success, 0 for failure.
text
Status of the Download in text.

Response Example:

{
    "success": 1,
    "progress": 1000,
    "download_url": "https://shane45.oceansaver.in/pacific/?riPnIjzRoXKtgjjksZmlvBQ",
    "text": "Finished",
    "message": "If you want your application to use our API contact us: [email protected] or visit https://video-download-api.com/"
}
Extended Duration Downloads Premium

Extended Duration Downloads allow API users to download YouTube videos longer than the standard base limits with transparent tiered pricing based on video length. The pricing system uses format-specific base duration limits - each format has a different "free" duration before extended pricing applies.

Format-Specific Base Duration Limits:

Format Category Formats Included Base Duration Limit
4K/8K 4K, 8K 15 minutes
1440p 1440p 60 minutes
1080p 1080p 90 minutes
Other 720p, 480p, 360p, 240p, 144p, all audio formats 120 minutes

How Pricing Works:

Simple Pricing Structure:

  • First base duration: 1x price
  • Each additional base duration: +2x price

Example: For a 4K video (15 min base), the price increases by 2x for each additional 15-minute block

Duration-Based Pricing Tiers:

Price multiplier increases by 2x for each additional base duration block

Duration Range Price Multiplier Calculation
1st base duration 1x Base price × 1
2nd base duration 3x Base price × 3
3rd base duration 5x Base price × 5
4th base duration 7x Base price × 7
5th base duration 9x Base price × 9
Each additional +2x Continue adding 2x

How to Use Extended Duration:

  1. Enable the Feature: Contact support to enable Extended Duration Downloads for your API key
  2. Add Parameter: Include allow_extended_duration=1 in your request
  3. Check Response: The response will include pricing details in the extended_duration object

Pricing Examples by Format Category:

4K/8K Formats (15 min base)

Video Duration Excess Multiplier 4K Price 8K Price
10 minutes 0 min 1x $0.00025 $0.00030
60 minutes 45 min 3x $0.00075 $0.00090
120 minutes 105 min 5x $0.00125 $0.00150

1440p Format (60 min base)

Video Duration Excess Multiplier Price
45 minutes 0 min 1x $0.00020
90 minutes 30 min 3x $0.00060
180 minutes 120 min 5x $0.00100

1080p Format (90 min base)

Video Duration Excess Multiplier Price
60 minutes 0 min 1x $0.00015
120 minutes 30 min 3x $0.00045
240 minutes 150 min 5x $0.00075

Other Formats (120 min base) - 720p, Audio, etc.

Duration Excess Multiplier 720p ($0.00010) MP3 ($0.00015) FLAC ($0.00030)
90 minutes 0 min 1x $0.00010 $0.00015 $0.00030
180 minutes 60 min 3x $0.00030 $0.00045 $0.00090
300 minutes 180 min 5x $0.00050 $0.00075 $0.00150

Important Notes:

  • Currently supports YouTube videos only
  • No hard duration limit - pricing scales automatically
  • Insufficient balance will prevent download initiation
  • Feature only activates when explicitly requested with allow_extended_duration=1
  • Works with all supported formats (audio and video)
  • Pricing is calculated based on the EXCESS duration beyond each format's base limit
Templates

Explore
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!

Image
Image
Image
Image