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