Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- base : https://y2mate.nu/
- fungsi : buat download musik dari youtube
- update : 2 Juli 2025 - 15:10 WITA
- by : wolep
- */
- const ytmp3cc = async (url) => {
- const r = await fetch("https://e.mnuu.nu/?_=" + Math.random(), {
- "body": JSON.stringify({ url }),
- "method": "POST"
- })
- if (!r.ok) throw Error(`fetch is not ok! ${r.status} ${r.statusText}\n${await r.text() || null}`)
- return await r.json()
- }
- // cara pakai
- const youtubeUrl = "https://youtu.be/Wp3hvaZ-HDo?si=jEphDVXdwgFN0AOD"
- ytmp3cc(youtubeUrl)
- .then(console.log)
- .catch(err => console.log(err.message))
- /* output
- {
- status: 'ok',
- url: 'https://st2.ezsrv.net/download?sig=eyJhbGciOiJ.....kRhm55k?download',
- title: 'THE CHANGCUTERS - Suka Suka (Official Music Video)'
- }
- */
Advertisement