https://github.com/phamhiep2506/music-player
https://music-player-pink.vercel.app
Based module ZingMp3API. Thank whoant 😘
npm i zingmp3-api-full
const {
getSong,
getDetailPlaylist,
getHome,
getTop100,
getChartHome,
getNewReleaseChart,
getInfoSong,
getArtist,
getLyric,
search,
getListMV,
getCategoryMV,
getVideo
} = require("zingmp3-api-full")
or
const ZingMp3 = require("zingmp3-api-full")
How to get song ID? you can read my post.
Example:
=> ID: ZOACFBBU
getSong("ZOACFBBU").then((data) => {
console.log(data)
})
or
ZingMp3.getSong("ZOACFBBU").then((data) => {
console.log(data)
})
getDetailPlaylist("ZWZB969E").then((data) => {
console.log(data)
})
param {page} : 1, 2, 3, 4...
getHome("1").then((data) => {
console.log(data)
})
getTop100().then((data) => {
console.log(data)
})
getChartHome().then((data) => {
console.log(data)
})
getNewReleaseChart().then((data) => {
console.log(data)
})
getInfoSong("ZOACFBBU").then((data) => {
console.log(data)
})
param {name} : sontungmtp
getArtist("sontungmtp").then((data) => {
console.log(data)
})
getLyric("ZOACFBBU").then((data) => {
console.log(data)
})
search("sontungmtp").then((data) => {
console.log(data)
})
param {id, page, count}
getListMV("IWZ9Z08I", "1", "15").then((data) => {
console.log(data)
})
param {id}
getCategoryMV("IWZ9Z08I").then((data) => {
console.log(data)
})
param {id}
getVideo("ZWEW9WI8").then((data) => {
console.log(data)
})