Online

Youtube DownloaderAPI

Embed powerful, customizable widgets into your website with just a few lines of code. No API keys required.

Available Widgets
7
Integration Time
2 min
Pricing
Free

Why Choose Our Widgets?

Built for developers, designed for users

🎨

Fully Customizable

Dark and light modes with customizable colors, gradients, and sizes

Lightning Fast

Optimized performance with zero impact on your page load speed

📱

100% Responsive

Works perfectly on all devices from mobile to desktop

🔧

Easy Integration

Simple iframe embed - works with any website or platform

✂️

Trim & Edit Audio

Built-in audio trimming lets users cut and save exactly the part they want

🎵

Playlist Support

Full YouTube playlist detection - automatically loads all tracks for batch conversion

Widget Types

Choose from 7 different widget styles to match your needs

🎯

Single Button

Simple single download button

API Endpoint

/widget/single-button/{TYPE}/{ID}[/{MODE}]

Parameters

Required
TYPE
mp3 or mp4 - The file format type
ID
YouTube video ID (e.g., zvrMzRVtj1s)
Optional
MODE
dark or light - Widget theme (default: dark)

Embed Code

Copy & Paste
HTML iframe Code
<iframe class="resizingFrame" referrerpolicy="origin-when-cross-origin" src="https://bestapi.cc/widget/single-button/mp3/zvrMzRVtj1s/dark" width="100%" height="100%" allowtransparency="true" scrolling="no" style="border:none"></iframe>

Live Preview

Auto-Resize iframe

Required
1
Add Script to <head> tag

Include the iframe-resizer library in your HTML head section

<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.min.js"></script>
Then
2
Initialize After <iframe> tag

Call iFrameResize() after your iframe element

<script>iFrameResize({ log: false, heightCalculationMethod: 'lowestElement' }, '.resizingFrame')</script>
💡

Pro Tip:

This automatically adjusts the iframe height based on the widget content, providing a seamless experience for your users.

Open for Collaboration

Let's Work Together

We are open to collaborations, API integrations, and strategic partnerships.

If you are interested in working with us, whether for API access, business collaboration, technical integration, or other partnership opportunities, please contact us by email with a brief description of your proposal.

Our team reviews all inquiries carefully and will respond as soon as possible if your request aligns with our platform and goals.