Downloader JavaScript

Spotify Downloader

Mendownload lagu di spotify

JA Spotify Downloader.javascript
src > modules > Spotify Downloader.javascript
/**
 * Judul : Spotify Downloader
 * Base URL : https://musicfab.io/
 * Author : Cx99 - t.me/exploit99
 * Deskripsi : Mendownload Spotify Music melalui MusicFab
 * Channel : https://whatsapp.com/channel/0029VbCSF8sA89MopCVOYW06
 */

async function musicFab(spotifyUrl) {
  try {
    if (!spotifyUrl) {
      return {
        status: false,
        message: 'URL Spotify tidak boleh kosong!'
      };
    }

    const response = await fetch('https://musicfab.io/api/spotify', {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'User-Agent': 'Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36',
        'Origin': 'https://musicfab.io',
        'Referer': 'https://musicfab.io/'
      },
      body: JSON.stringify({
        url: spotifyUrl.trim()
      })
    });

    return await response.json();
  } catch (error) {
    return {
      status: false,
      message: error.message
    };
  }
}

module.exports = { musicFab };

(async () => {
  const result = await musicFab('https://open.spotify.com/track/xxxxxxxx');
  console.log(JSON.stringify(result, null, 2));
})();
Kembali ke Home
Home Search Request Owner Login