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://api.loader.to/v2/youtube/download/

Query Parameters:

Parameters Description
format
The file format to download. (required)
URL
The encoded URL of the video. (required)
API
Your API key. (required)

Request Example:

curl --location 'https://api.loader.to/v2/youtube/download/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAgprIPEcPk4&format=mp3&apiKey=YOUR_API_KEY'

Format Options:

Format Description Format Value Price per Download
mp3 MP3 $0.00015
m4a M4A $0.00010
webm_audio WEBM Audio $0.00015
aac AAC $0.00015
flac FLAC $0.00015
opus OPUS $0.00015
ogg OGG $0.00015
wav WAV $0.00015
360 MP4 360p $0.00015
480 MP4 480p $0.00015
720 MP4 720p $0.00015
1080 MP4 1080p $0.00020
4k MP4 4K $0.00025
8k MP4 8K $0.00025

Pricing Calculator:

Format

Quantity

Response:

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

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.

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.

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://api.loader.to/v2/progress/

Query Parameters:

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

Request Example:

curl --location 'https://api.loader.to/v2/progress/?jobId=YOUR_JOB_ID&apiKey=YOUR_API_KEY'

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": true,
    "status": "downloading",
    "progress": 50,
    "eta": "00:01:30",
    "downloadUrl": null
}

{
    "success": true,
    "status": "complete",
    "progress": 100,
    "eta": null,
    "downloadUrl": "https://example.com/download/yourfile.mp3"
}
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